Template:NSN: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
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={{replace|{{{1}}}| |_}} {{Hover title|dotted=no|{{{2|{{{1}}}}}} on NationStates|{{NSColor|{{{2|{{{1}}}}}}}}}}][[Category:Pages using NationStates redirect templates]]<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|{{{2|{{{1}}}}}} on NationStates|{{NSColor|{{{2|{{{1}}}}}}}}}}][[Category:Pages using NationStates redirect templates]]</nowiki>
  <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] nation. 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:Templates linking to NationStates]]
  [[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|Silvadum City}}</nowiki> produces {{NSN|Silvadum City}}
|-
|<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)]]
*[[Template:NSNFlagIcon|NSNFlagIcon (Only flag image)]]
*[[Template:NSNIcon|NSNIcon (Top icon on the page)]]</noinclude>
*[[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: