Difference between revisions of "Template:Flagcountry/core"

From blackwiki
Jump to navigation Jump to search
imported>Urhixidur
(adding datasortkey span (see :fr:Modèle:Pays/callback and :fr:Wikipédia:Demande_d'intervention_sur_une_page_protégée/Archives/18#Modèle:Pays/callback_(d_·_h_·_j_·_↵)))
imported>S.A. Julio
m (→‎top: adjusting for improved method to define custom flag sizes)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
--><span class="flagicon"><!--
 
--><span class="flagicon"><!--
 
-->[[File:{{{flag alias-{{{variant}}}|{{{flag alias}}}}}}|<!--
 
-->[[File:{{{flag alias-{{{variant}}}|{{{flag alias}}}}}}|<!--
-->{{#if:{{{size|}}}|{{{size}}}|23x15px}}|<!--
+
-->{{#if:{{{size|}}}|{{{size}}}|{{{size flag alias-{{{variant}}}|{{#if:{{{variant|}}}|23x15px|{{{size flag alias|23x15px}}}}}}}}}}|<!--
 
-->{{{border-{{{variant}}}|{{{border|border}}}}}} |<!--
 
-->{{{border-{{{variant}}}|{{{border|border}}}}}} |<!--
 
-->alt=|<!--
 
-->alt=|<!--
 
-->link=]]&nbsp;<!--
 
-->link=]]&nbsp;<!--
-->{{#ifeq:{{{size}}}|23x16px|&nbsp;}}<!--
+
-->{{#switch:{{{flag alias}}}|Flag of Switzerland.svg|Flag of the Vatican City.svg=&nbsp;}}<!--
 
-->{{#ifeq:{{{alias}}}|Nepal|&nbsp;&nbsp;}}<!--
 
-->{{#ifeq:{{{alias}}}|Nepal|&nbsp;&nbsp;}}<!--
 
--></span>[[{{{link alias-{{{variant}}}|{{{alias}}}}}}|<!--
 
--></span>[[{{{link alias-{{{variant}}}|{{{alias}}}}}}|<!--
 
-->{{#if:{{{name|}}}|{{{name}}}|{{{shortname alias|{{{alias}}}}}}}}]]<!--
 
-->{{#if:{{{name|}}}|{{{name}}}|{{{shortname alias|{{{alias}}}}}}}}]]<!--
 
--></span><noinclude>{{documentation}}</noinclude>
 
--></span><noinclude>{{documentation}}</noinclude>

Latest revision as of 23:20, 22 October 2019

[[File:{{{flag alias}}}|23x15px|border |alt=|link=]] [[{{{alias}}}|{{{alias}}}]]

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

This template is used internally by Template:Flagcountry. It is not intended to be transcluded directly.

See Wikipedia:WikiProject Flag Template for further information.