Template:NSNFlag: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
Line 25: Line 25:


====Example:====
====Example:====
*<nowiki>{{NSNFlag|Zhousheng}}</nowiki> produces {{NSNFlag|Zhousheng}}
{| class="wikitable" style="text-align:center"
*<nowiki>{{NSNFlag|Zhousheng|ZhoushengFlag.png}}</nowiki> produces {{NSNFlag|Zhousheng|ZhoushengFlag.png}}
!Input !!Result !!Note
*<nowiki>{{NSNFlag|Zhousheng|ZhoushengFlag.png|Zhoushi Federal Republic}}</nowiki> produces {{NSNFlag|Zhousheng|ZhoushengFlag.png|Zhoushi Federal Republic}}
|-
*<nowiki>{{NSNFlag|Zhousheng|ZhoushiCultureFlag.png|Zhoushi people}}</nowiki> produces {{NSNFlag|Zhousheng|ZhoushiCultureFlag.png|Zhoushi people}}
|<nowiki>{{NSNFlag|Zhousheng}}</nowiki> ||{{NSNFlag|Zhousheng}} ||—
*<nowiki>{{NSNFlag|Silvadum City|SilvadumFlag.png}}</nowiki> produces {{NSNFlag|Silvadum City|SilvadumFlag.png}} ''(Link is automatically changed to add the [[wikipedia:Underscore|underscore]])''
|-
*<nowiki>{{NSNFlag|Silvadum_City|SilvadumFlag.png}}</nowiki> produces {{NSNFlag|Silvadum_City|SilvadumFlag.png}} ''(Name is automatically changed to remove the [[wikipedia:Underscore|underscore]])''
|<nowiki>{{NSNFlag|Zhousheng|ZhoushengFlag.png}}</nowiki> ||{{NSNFlag|Zhousheng|ZhoushengFlag.png}} ||—
|-
|<nowiki>{{NSNFlag|Zhousheng|ZhoushengFlag.png|Zhoushi Federal Republic}}</nowiki> ||{{NSNFlag|Zhousheng|ZhoushengFlag.png|Zhoushi Federal Republic}} ||—
|-
|<nowiki>{{NSNFlag|Zhousheng|ZhoushiCultureFlag.png|Zhoushi people}}</nowiki> ||{{NSNFlag|Zhousheng|ZhoushiCultureFlag.png|Zhoushi people}} ||—
|-
|<nowiki>{{NSNFlag|Silvadum City|SilvadumFlag.png}}</nowiki> ||{{NSNFlag|Silvadum City|SilvadumFlag.png}} ||''Link is automatically changed to add the [[wikipedia:Underscore|underscore]]''
|-
|<nowiki>{{NSNFlag|Silvadum_City|SilvadumFlag.png}}</nowiki> ||{{NSNFlag|Silvadum_City|SilvadumFlag.png}} ||''Name is automatically changed to remove the [[wikipedia:Underscore|underscore]]''
|}
====Links:====
====Links:====
*[[Template:NSN|NSN (Only text name)]]
*[[Template:NSN|NSN (Only text name)]]

Revision as of 20:52, 21 August 2021

NationStates link color
#008000
<span style="color: #008000"></span>
{{NSColor|}}
Default flag for this template

NationStates Nation Flag


Australian Aboriginal Flag.svg {{{1}}}

{{Hover title|dotted=no|{{{3|{{replace|{{{1}}}|_| }}}}} on NationStates|[[File:{{{2|Australian_Aboriginal_Flag.svg}}}|23x15px|link=https://www.nationstates.net/nation={{replace|{{{1}}}| |_}}|border]]}} [https://www.nationstates.net/nation={{replace|{{{1}}}| |_}} {{Hover title|dotted=no|{{{3|{{replace|{{{1}}}|_| }}}}} on NationStates|{{NSColor|{{{3|{{replace|{{{1}}}|_| }}}}}}}}}][[Category:Pages using NationStates redirect templates]]

This template provides the link to NationStates nation. Its usage is:

{{NSN|NS Nation Name|Flag image (without "File:")|Display Name}}

If no Display Name is added, the name shows the NS Nation Name

Example:

Input Result Note
{{NSNFlag|Zhousheng}} Australian Aboriginal Flag.svg Zhousheng
{{NSNFlag|Zhousheng|ZhoushengFlag.png}} ZhoushengFlag.png Zhousheng
{{NSNFlag|Zhousheng|ZhoushengFlag.png|Zhoushi Federal Republic}} ZhoushengFlag.png Zhoushi Federal Republic
{{NSNFlag|Zhousheng|ZhoushiCultureFlag.png|Zhoushi people}} ZhoushiCultureFlag.png Zhoushi people
{{NSNFlag|Silvadum City|SilvadumFlag.png}} SilvadumFlag.png Silvadum City Link is automatically changed to add the underscore
{{NSNFlag|Silvadum_City|SilvadumFlag.png}} SilvadumFlag.png Silvadum City Name is automatically changed to remove the underscore

Links: