Template:NSN: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(14 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 14: Line 14:
<big><big>N</big></big>ation<big><big>S</big></big>tates <big><big>N</big></big>ation
<big><big>N</big></big>ation<big><big>S</big></big>tates <big><big>N</big></big>ation
----
----
</noinclude>[https://www.nationstates.net/nation={{{1}}} {{NSColor|{{{2|{{{1}}}}}}}}]<noinclude>
</noinclude>[https://www.nationstates.net/nation={{replace|{{{1}}}| |_}} {{Hover title|dotted=no|{{{3|{{{2|{{replace|{{{1}}}|_| }}}}} on NationStates}}}|{{NSColor|{{{2|{{replace|{{{1}}}|_| }}}}}}}}}][[Category:Pages using NationStates redirect templates]]<noinclude>
 
<nowiki>[https://www.nationstates.net/nation={{replace|{{{1}}}| |_}} {{Hover title|dotted=no|{{{3|{{{2|{{replace|{{{1}}}|_| }}}}} on NationStates}}}|{{NSColor|{{{2|{{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}}</nowiki>
  <nowiki>{{NSN|NS Nation Name|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>{{NSN|Zhousheng|Zhousheng}}</nowiki> produces {{NSN|Zhousheng|Zhousheng}}
{| class="wikitable" style="text-align:center"
*<nowiki>{{NSN|Zhousheng|Zhoushi Federal Republic}}</nowiki> produces {{NSN|Zhousheng|Zhoushi Federal Republic}}
!Input !!Result !!Note
|-
|<nowiki>{{NSN|Zhousheng|Zhousheng}}</nowiki> ||{{NSN|Zhousheng|Zhousheng}} ||—
|-
|<nowiki>{{NSN|Zhousheng|Zhoushi Federal Republic}}</nowiki> ||{{NSN|Zhousheng|Zhoushi Federal Republic}} ||—
|-
|<nowiki>{{NSN|Silvadum City}}</nowiki> ||{{NSN|Silvadum City}} ||''Link is automatically changed to add the [[wikipedia:Underscore|underscore]]''
|-
|<nowiki>{{NSN|Silvadum_City}}</nowiki> ||{{NSN|Silvadum_City}} ||''Name is automatically changed to remove the [[wikipedia:Underscore|underscore]]''
|}
====Links:====
====Links:====
*[[Template:NSNFlag|NSNFlag (Text and flag)]]
*[[Template:NSNFlag|NSNFlag (Text and flag)]]
*[[Template:NSNFlagIcon|NSNFlagIcon (Only flag image)]]</noinclude>
*[[Template:NSNFlagIcon|NSNFlagIcon (Only flag image)]]
*[[Template:NSNIcon|NSNIcon (Top icon on the page)]]</noinclude>

Latest revision as of 17:04, 23 November 2021

NationStates link color
#008000
<span style="color: #008000"></span>
{{NSColor|}}

NationStates Nation


{{{1}}}

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

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

{{NSN|NS Nation Name|Display Name|Hover title}}

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

Example:

Input Result Note
{{NSN|Zhousheng|Zhousheng}} Zhousheng
{{NSN|Zhousheng|Zhoushi Federal Republic}} Zhoushi Federal Republic
{{NSN|Silvadum City}} Silvadum City Link is automatically changed to add the underscore
{{NSN|Silvadum_City}} Silvadum City Name is automatically changed to remove the underscore

Links: