Template:WithFlag: Difference between revisions

From EarthMC
Jump to navigation Jump to search
(Created page with "<includeonly>[[File:{{{0}}} Flag.png|30px]] '''[[{{{0}}}]]'''</includeonly> <noinclude> A template that shows a flag next to a link Example: {{WithFlag|La Plata}} </noinclude>")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[File:{{{0}}} Flag.png|30px]] '''[[{{{0}}}]]'''</includeonly>
<includeonly>[[{{#if: {{{2}}}|{{{2}}}|File:{{{1}}} Flag.png}}|30px]] [[{{{1}}}]]</includeonly>
<noinclude>
<noinclude>
A template that shows a flag next to a link
A template that shows a flag next to a link


Example: {{WithFlag|La Plata}}
Example: <code><nowiki>{{WithFlag|La Plata|File:LaPlataFL2020.png}}</nowiki></code> outputs: [[File:LaPlataFL2020.png|30px]] [[La Plata]]
</noinclude>
</noinclude>

Latest revision as of 21:40, 14 May 2022


A template that shows a flag next to a link

Example: {{WithFlag|La Plata|File:LaPlataFL2020.png}} outputs: LaPlataFL2020.png La Plata