Template:NSNFlag: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{| class="wikitable"
<!--{| class="wikitable"
!style="font-size:1.5em; background:#FFBFBF; border:0px"|<span style="color: #AA0000">If your nation has a multiword name, use "_" instead of spaces in NS Nation Name</span>
!style="font-size:1.5em; background:#FFBFBF; border:0px"|<span style="color: #AA0000">If your nation has a multiword name, use "_" instead of spaces in NS Nation Name</span>
|}
|}-->
{|class="infobox"
{|class="infobox"
!style="font-family:Arial Unicode MS; font-size:1.3em; background:#008000; text-align:center"|{{White|[https://www.nationstates.net/ {{White|NationStates}}] link color}}
!style="font-family:Arial Unicode MS; font-size:1.3em; background:#008000; text-align:center"|{{White|[https://www.nationstates.net/ {{White|NationStates}}] link color}}
Line 12: Line 12:
|style="font-family:Arial Unicode MS; font-size:1.3em; background:#008000; text-align:center"|[[Template:NSColor|{{White|<nowiki>{{NSColor|}}</nowiki>}}]]
|style="font-family:Arial Unicode MS; font-size:1.3em; background:#008000; text-align:center"|[[Template:NSColor|{{White|<nowiki>{{NSColor|}}</nowiki>}}]]
|}
|}
[[File:Australian_Aboriginal_Flag.svg|300px|thumb|{{Hover title|dotted=no|Australian Aboriginal Flag|[https://en.wikipedia.org/wiki/Australian_Aboriginal_Flag Default flag]}} for this template]]
<big><big>N</big></big>ation<big><big>S</big></big>tates <big><big>N</big></big>ation <big><big>Flag</big></big>
<big><big>N</big></big>ation<big><big>S</big></big>tates <big><big>N</big></big>ation <big><big>Flag</big></big>
----
----
</noinclude>{{Hover title|dotted=no|{{{2|{{{1}}}}}} on NationStates|[[File:{{{3}}}|23x15px|link=https://www.nationstates.net/nation={{{1}}}|border]]}} [https://www.nationstates.net/nation={{{1}}} {{Hover title|dotted=no|{{{2|{{{1}}}}}} on NationStates|{{NSColor|{{{2|{{{1}}}}}}}}}}]<noinclude>
</noinclude>{{Hover title|dotted=no|{{{4|{{{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|{{{4|{{{3|{{replace|{{{1}}}|_| }}}}} on NationStates}}}|{{NSColor|{{{3|{{replace|{{{1}}}|_| }}}}}}}}}][[Category:Pages using NationStates redirect templates]]<noinclude>
 
<nowiki>{{Hover title|dotted=no|{{{4|{{{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|{{{4|{{{3|{{replace|{{{1}}}|_| }}}}} on NationStates}}}|{{NSColor|{{{3|{{replace|{{{1}}}|_| }}}}}}}}}][[Category:Pages using NationStates redirect templates]]</nowiki>
----
----
This template provides the link to [https://www.nationstates.net/ NationStates] factbook. Its usage is:
This template provides the link to [https://www.nationstates.net/ NationStates] nation. Its usage is:
  <nowiki>{{NSN|NS Nation Name|Display Name|Flag image (without "File:")}}</nowiki>
  <nowiki>{{NSN|NS Nation Name|Flag image (without "File:")|Display Name|Hover title}}</nowiki>
If no Display Name is added, the name shows the NS Nation Name
If no Display Name is added, the name shows the NS Nation Name
  [[Category:External link templates]]
  [[Category:External link templates]][[Category:Templates linking to NationStates]]


====Example:====
====Example:====
*<nowiki>{{NSNFlag|Zhousheng|Zhousheng|ZhoushengFlag.png}}</nowiki> produces {{NSNFlag|Zhousheng|Zhousheng|ZhoushengFlag.png}}
{| class="wikitable" style="text-align:center"
*<nowiki>{{NSNFlag|Zhousheng|Zhoushi Federal Republic|ZhoushengFlag.png}}</nowiki> produces {{NSNFlag|Zhousheng|Zhoushi Federal Republic|ZhoushengFlag.png}}
!Input !!Result !!Note
*<nowiki>{{NSNFlag|Zhousheng|Zhousheng|ZhoushiCultureFlag.png}}</nowiki> produces {{NSNFlag|Zhousheng|Zhousheng|ZhoushiCultureFlag.png}}
|-
|<nowiki>{{NSNFlag|Zhousheng}}</nowiki> ||{{NSNFlag|Zhousheng}} ||—
|-
|<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)]]
*[[Template:NSNFlagIcon|NSNFlagIcon (Only flag image)]]
*[[Template:NSNFlagIcon|NSNFlagIcon (Only flag image)]]
*[[Template:NSNIcon|NSNIcon (Top icon on the page)]]
</noinclude>
</noinclude>

Latest revision as of 17:05, 23 November 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|{{{4|{{{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|{{{4|{{{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|Hover title}}

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: