Template:Portal: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>MSGJ
m only specify alt if {{{alt}}} is defined, to allow alternative text to be specified in image subtemplate
meta>MSGJ
sandbox sync: specify default of height 28px unless overridden by {{{size}}}, use html table code, improve code readability
Line 1: Line 1:
<div class="noprint {{#ifeq:{{{left|}}}|yes|tleft|tright}} portal" style="border:solid #aaa 1px;margin:{{#if:{{{margin|}}}|{{{margin|}}}|{{#ifeq:{{{left|}}}|yes|0.5em 0.5em 0.5em 0|0.5em 0 0.5em 0.5em}}}};">
<div class="noprint {{#ifeq:{{{left|}}}|yes|tleft|tright}} portal" style="border:solid #aaa 1px;margin:{{#if:{{{margin|}}}
{| style="background:#f9f9f9; font-size:85%; line-height:110%; max-width:175px; {{#if: {{{boxsize|{{{4|}}}}}} | width:{{{boxsize|{{{4}}}}}}px;}}"
|{{{margin|}}}
| [[Image:{{{image|{{{2|{{#ifexist:Template:Portal/Images/{{ucfirst:{{lc:{{{name|{{{1|{{PAGENAME}} }}} }}} }} }}|{{Portal/Images/{{ucfirst:{{lc:{{{name|{{{1|{{PAGENAME}}}}}}}}}}}}}}|{{Portal/Images/Default}} }} }}} }}}|{{{size|{{{3|32}}}}}}x{{{height|28}}}px{{#ifeq:{{{link|File:}}}|File:||{{!}}link={{{link|}}}}}{{#ifeq:{{{alt|¬}}}|¬||{{!}}alt={{{alt|}}}}}]]
|{{#ifeq:{{{left|}}}|yes
| style="padding:0 0.2em;" | '''''[[Portal:{{{name|{{{1|{{PAGENAME}}}}}}}}|{{{name|{{{1|{{PAGENAME}}}}}}}}{{#ifeq:{{{break|}}}|yes|<br />|&#32;}}portal]]'''''
  |0.5em 0.5em 0.5em 0
|}{{#if:{{{2|}}}|[[Category:Templates with transitional syntax]]}}
  |0.5em 0 0.5em 0.5em
}}
}};">
<table style="background:#f9f9f9; font-size:85%; line-height:110%; max-width:175px; {{#if:{{{boxsize|{{{4|}}}}}}
|width:{{{boxsize|{{{4}}}}}}px;
}}">
<tr><td>[[Image:{{{image|{{{2|{{#ifexist:Template:Portal/Images/{{ucfirst:{{lc:{{{name|{{{1|{{PAGENAME}} }}} }}} }} }}
|{{Portal/Images/{{ucfirst:{{lc:{{{name|{{{1|{{PAGENAME}}}}}}}}}}}}}}
|{{Portal/Images/Default}}
}} }}} }}}|{{#if:{{{size|{{{3|}}}}}}
|{{{size|{{{3|32}}}}}}px
|x{{{height|28}}}px
}}{{#ifeq:{{{link|File:}}}|File:||{{!}}link={{{link|}}}}}{{#ifeq:{{{alt|¬}}}|¬||{{!}}alt={{{alt|}}}}}]]
</td><td style="padding:0 0.2em;">'''''[[Portal:{{{name|{{{1|{{PAGENAME}}}}}}}}|{{{name|{{{1|{{PAGENAME}}}}}}}}{{#ifeq:{{{break|}}}|yes
|<br />
|&#32;
}}portal]]'''''
</td></tr>
</table>{{#if:{{{2|}}}|[[Category:Templates with transitional syntax]]}}
</div><noinclude>
</div><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 10:20, 25 May 2010