Template:Pagecover: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
sims>LostInRiverview
No edit summary
sims>LostInRiverview
No edit summary
Line 1: Line 1:
<!-- These comment tags have been included in the template to aid editors in making changes. Please note that this template is complex and changing code in one portion of it can affect other portions. Please be sure to test your changes before making them to the full template.
<includeonly><center><div style="height:{{#if:{{{height|}}}|{{{height}}}|300}}px; {{#if:{{{width|}}}|width:{{{width|690}}}px; |width:690px; }}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;"><div style="{{#if:|width:690px; |width:690px; }}position:absolute;margin-top:-{{{offset}}}px;">[[File:{{{image}}}|{{#if:{{{width|}}}|{{{width|690}}}px|690px}}|link=|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}]]</div><div style="background-color:white; opacity:0.8; width:{{#if:{{{width|}}}|{{#expr: {{{width|690}}}-20}}|670}}px; position:absolute; align:left; bottom:10px; left:10px; padding:10px 10px 10px 10px; moz-border-radius: 0.5em; -webkit-border-radius: 0.5em; border-radius:0.5em;">
---><includeonly><center><!--
<span style="font-size:30px; float:left;">'''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''</span><span style="font-size:12px;"><div style="float:right;{{#if:{{{width|}}}| float-offset: {{#expr: 690-{{{width|0}}} }}px;|}}">{{#if:{{{pagetype|}}}|{{{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}}}}}}}|}}

"Outer Box" - sets the size of the template that is displayed

---><div style="height:{{#if:{{{height|}}}|{{{height}}}|300}}px; {{#if:{{{width|}}}|width:{{{width|690}}}px; |width:690px; }}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;"><!--

"Inner Box" - Sets the position of the image within the outer box

---><div style="{{#if:|width:690px; |width:690px; }}position:absolute;margin-top:-{{{offset}}}px;"><!--

File, and optional file parameters

--->[[File:{{{image}}}|{{#if:{{{width|}}}|{{{width|690}}}px|690px}}|link=|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}]]</div><!--

"Title bar" - setting the appearance of the portion that covers the image.

---><div style="background-color:white; opacity:0.8; width:{{#if:{{{width|}}}|{{#expr: {{{width|690}}}-20}}|670}}px; position:absolute; align:left; bottom:10px; left:10px; padding:10px 10px 10px 10px; moz-border-radius: 0.5em; -webkit-border-radius: 0.5em; border-radius:0.5em;"><!--

"Title bar" text - these all control what text/items appear on the "title bar," including page name, <pagetype>, and <subtitle> parameters.

---><span style="font-size:30px; float:left;">'''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''</span><span style="font-size:12px;"><div style="float:right;{{#if:{{{width|}}}| float-offset: {{#expr: 690-{{{width|0}}} }}px;|}}">{{#if:{{{pagetype|}}}|{{{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}}}}}}}|}}
</div></span>{{#if:{{{subtitle|}}}|<br/><span style="font-size:12px; float:left;">''{{{subtitle}}}''</span>|}}
</div></span>{{#if:{{{subtitle|}}}|<br/><span style="font-size:12px; float:left;">''{{{subtitle}}}''</span>|}}
</div>
</div>