Template:WithFlag: Difference between revisions

From EarthMC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>[[{{#if: {{{2}}}|{{{2}}}|File:{{{1}}} Flag.png}}|30px]] '''[[{{{1}}}]]'''</includeonly>
[[{{#if: {{{2}}}|{{{2}}}|File:{{{1}}} Flag.png}}|30px]] '''[[{{{1}}}]]'''
<noinclude>
<noinclude>
A template that shows a flag next to a link
A template that shows a flag next to a link


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

Revision as of 21:37, 14 May 2022

[[{{{2}}}|30px]] [[{{{1}}}]]

A template that shows a flag next to a link

Example: {{WithFlag|LaPlata|FileLaPlataFL2020.png}} outputs: 30px LaPlata