Template:Pagecover/test: Difference between revisions

use code from old Pagecover to recognize both gen and generation
sims>Nikel23
(Modified so {{{gen}}} now accepts value ranges from Vgcode)
(use code from old Pagecover to recognize both gen and generation)
 
(3 intermediate revisions by 3 users not shown)
Line 1:
<templatestyles src="Pagecover/styles.css" /><div class="pagecover" style="{{#if:{{{width|}}}|width:{{{width}}}px;}} {{#if:{{{height|}}}|height:{{{height}}}px;}}">
<div class="pagecover-image" style="{{#if:{{{width|}}}|width:{{{width}}}px;|}} {{#if:{{{offset|}}}|margin-top:-{{{offset}}}px;}}">[[File:{{{image}}}|{{#if:{{{width|}}}|{{{width}}}px|670px}}]]</div>
{{#if:{{{noname|}}}||
<div class="pagecover-header {{#if:{{{align|}}}| {{#ifeq: {{lc:{{{align}}}}} | center | centre | {{{align}}} }} |right}} {{lc: {{MGL | {{Vgcode | {{#if:{{{gen|}}}|{{{gen}}}|{{{generation}}}}} }} }} }}" style="{{#if:{{{width|}}}|width: {{#expr: {{{width}}}-40}}px;}} {{#if:{{{backgroundcolor|}}}|background-color:{{{backgroundcolor}}};}}"><span class="pagecover-name">{{{name|{{PAGENAME}}}}}</span><span class="pagecover-pagetype">{{#if:{{{pagetype<includeonly>|</includeonly>}}}|{{{pagetype}}}|}}{{#if:{{{1|}}}|{{#if:{{{pagetype|}}}|&nbsp;·&nbsp; |}}Featured in: {{Eraicon|{{{1|}}}}} {{#if:{{{2|}}}|{{Eraicon|{{{2}}}}}}} {{#if:{{{3|}}}|{{Eraicon|{{{3}}}}}}} {{#if:{{{4|}}}|{{Eraicon|{{{4}}}}}}} {{#if:{{{5|}}}|{{Eraicon|{{{5}}}}}}} {{#if:{{{6|}}}|{{Eraicon|{{{6}}}}}}} {{#if:{{{7|}}}|{{Eraicon|{{{7}}}}}}} {{#if:{{{8|}}}|{{Eraicon|{{{8}}}}}}}|}}</span>{{#if:{{{subtitle<includeonly>|</includeonly>}}}|<div class="pagecover-subtitle" style="clear:both;">{{{subtitle}}}</div>}}</div>}}</div>