Template:NSN: Difference between revisions
Jump to navigation
Jump to search
m (----) |
mNo edit summary |
||
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<!--{| 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> | |||
|}--> | |||
{|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}}] | !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:5.0em; background:#008000; text-align:center"|{{White|#008000}} | !style="font-family:Arial Unicode MS; font-size:5.0em; background:#008000; text-align:center"|{{White|#008000}} | ||
Line 11: | 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] | 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:==== | ||
{| class="wikitable" style="text-align:center" | |||
!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
[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 |