Difference between revisions of "Template:Flagc/1"

From blackwiki
Jump to navigation Jump to search
imported>Patrick
(fix the problem with border: add space (otherwise full-size image in table if border=empty string))
imported>Patrick
(allow substitution, with clean result without empty parameters)
Line 1: Line 1:
<span class="flagicon">[[File:{{{flag alias-{{{variant}}}|{{{flag alias}}}}}}|{{#if:{{{size|}}}|{{{size}}}|22x20px}}|{{{border-{{{variant}}}|{{{border|border}}}}}} |alt=flag]]&nbsp;</span>[[{{{alias}}}|{{{name}}}]]<noinclude>{{documentation}}</noinclude>
+
<span class="flagicon">[[File:{{{flag alias-{{{variant}}}|{{{flag alias}}}}}}|{{{{{|safesubst:}}}#if:{{{size|}}}|{{{size}}}|22x20px}}|{{{{{|safesubst:}}}#if:{{{border-{{{variant}}}|{{{border|border}}}}}}|{{{border-{{{variant}}}|{{{border|border}}}}}}{{!}}}}alt=flag]]&nbsp;</span>[[{{{alias}}}|{{{name}}}]]<noinclude>{{documentation}}</noinclude>

Revision as of 16:00, 7 August 2010

[[File:{{{flag alias}}}|22x20px|border|alt=flag]] [[{{{alias}}}|{{{name}}}]]

50px Template documentation[view] [edit] [history] [purge]

This is an auxiliary template for Template:Flagc.