Difference between revisions of "Template:Flagright"

From NSWiki
Jump to: navigation, search
Line 1: Line 1:
{{country data {{{1|}}}|flag/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}|name={{{name|{{{1|}}}}}}}}
+
{{country data {{{1|}}}|flagright/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}|name={{{name|{{{1|}}}}}}}}
 
<noinclude>
 
<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 10:08, 14 January 2020

[[|]] File:Flag placeholder.svg

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

This template works like the {{flag}} template, but displays the flag to the right of the country name.

The template can display every country/territory with a "Country data ..." template, and abbreviations are also possible:

Wikicode Result Notes
{{flagright|Kelssek}} Kelssek  Uses {{Country data Kelssek}} to know which flag to use and which article to link to.

Other parameters include:

Wikicode Result Notes
{{flagright|Liventia|2}} Liventia  The "variant" parameter and second unnamed parameter (they function identically) can be used to display a historical or alternative flag. Possible variants are listed on each country's respective country data template (in this example {{Country data Liventia}}.
{{flagright|Liventia|size=40px}} Liventia  The "size" parameter changes the size of the flag icon (in this example, its width is specified). Default size for flag icons is 23x15px (no more than 23px wide, no more than 15px high), though some entities have a different default size specified in their respective country data template.
{{flagright|Cafundeu|name=Cafundéu}} Cafundéu  The "name" parameter changes the default displayed name to the specified name, while linking to the same article.