Template:Pagecover/test: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>LostInRiverview No edit summary |
(use code from old Pagecover to recognize both gen and generation) |
||
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<templatestyles src="Pagecover/styles.css" /><div class="pagecover" style="{{#if:{{{width|}}}|width:{{{width}}}px;}} {{#if:{{{height|}}}|height:{{{height}}}px;}}"> |
|||
<includeonly><div style="height:300px; {{#if:{{{width|}}}|width:{{{width|95}}}%; |width:95%; }}position:relative; overflow:hidden; border: 2px solid #E3E3E3; moz-border-radius: 0.75em; -webkit-border-radius: 0.75em; border-radius:0.75em; box-shadow: inset 0 0 7px #666666; -moz-box-shadow: inset 0 0 7px #666666; -webkit-box-shadow: inset 0 0 7px #666666; -o-box-shadow: inset 0 0 7px #666666;">[[File:{{{image}}}|{{#if:{{{width|}}}|{{{width|95}}}%|95%}}|link=|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}]] |
|||
<div class="pagecover-image" style="{{#if:{{{width|}}}|width:{{{width}}}px;|}} {{#if:{{{offset|}}}|margin-top:-{{{offset}}}px;}}">[[File:{{{image}}}|{{#if:{{{width|}}}|{{{width}}}px|670px}}]]</div> |
|||
<div style="background-color:white; opacity:0.8; width:{{#if:{{{width|}}}|{{#expr: {{{width|95}}}-1}}|94}}% position:absolute; bottom:10px; left:10px; padding:10px 10px 0 10px; moz-border-radius: 0.5em; -webkit-border-radius: 0.5em; border-radius:0.5em;"> |
|||
{{#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|}}}| · |}}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> |
||
</div></span>{{#if:{{{subtitle|}}}|<br/><span style="font-size:12px">''{{{subtitle}}}''</span>|}} |
|||
</div> |
|||
</div>{{#ifeq:{{{toc}}}|right|<br clear=all />{{Tocright}}|}}</includeonly> |
Latest revision as of 03:17, 12 April 2019
[[File:{{{image}}}|670px]]
Pagecover/test{{{pagetype}}}
{{{subtitle}}}