NSNIcon on NationStates

Template:NSNIcon: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(11 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>
|}
|}-->
<big><big>N</big></big>ation<big><big>S</big></big>tates <big><big>N</big></big>ation <big><big>Icon</big></big>
<big><big>N</big></big>ation<big><big>S</big></big>tates <big><big>N</big></big>ation <big><big>Icon</big></big>
----
----
</noinclude>{{#tag:indicator|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation={{{1}}}|{{#if:{{{alt|}}}|alt={{{alt}}}}}|{{{2|{{{1}}}}}} on NationStates]]
</noinclude>{{#tag:indicator|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation={{replace|{{{1|{{PAGENAME}}}}}| |_}}|{{#if:{{{alt|}}}|alt={{{alt}}}}}|{{{2|{{replace|{{{1|{{PAGENAME}}}}}|_| }} on NationStates}}}]]|name = {{#if:{{{sortkey|}}}|{{{sortkey}}}-}}{{#if:{{{name|}}}|{{{name}}}|NationStatesIcon|NSLogo.png}}}}[[Category:Pages using NationStates redirect templates]]<noinclude>
|name = {{#if:{{{sortkey|}}}|{{{sortkey}}}-}}{{#if:{{{name|}}}|{{{name}}}|NationStatesIcon|NSLogo.png}}}}<noinclude>
  <nowiki>{{#tag:indicator|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation={{replace|{{{1|{{PAGENAME}}}}}| |_}}|{{#if:{{{alt|}}}|alt={{{alt}}}}}|{{{2|{{replace|{{{1|{{PAGENAME}}}}}|_| }} on NationStates}}}]]|name = {{#if:{{{sortkey|}}}|{{{sortkey}}}-}}{{#if:{{{name|}}}|{{{name}}}|NationStatesIcon|NSLogo.png}}}}[[Category:Pages using NationStates redirect templates]]</nowiki>
  <nowiki>{{#tag:indicator|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation={{{1}}}|{{#if:{{{alt|}}}|alt={{{alt}}}}}|{{{2|{{{1}}}}}} on NationStates]]
[[Category:External link templates]][[Category:Templates linking to NationStates]]
|name = {{#if:{{{sortkey|}}}|{{{sortkey}}}-}}{{#if:{{{name|}}}|{{{name}}}|NationStatesIcon|NSLogo.png}}}}</nowiki>
====Examples:====
===Examples:===
''Note: all the icons would be [[Template:Top icon|on the top of the page]]''
''Note: all the icons would be [[Template:Top icon|on the top of the page]]''
*<nowiki>{{NSNIcon|Zhousheng}}</nowiki> produces {{Hover title|dotted=no|Zhousheng on NationStates|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation=Zhousheng]]}}
{| class="wikitable" style="text-align:center"
*<nowiki>{{NSNIcon|Silvadum_City}}</nowiki> produces {{Hover title|dotted=no|Silvadum_City on NationStates|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation=Silvadum_City]]}}
!Input !!Result !!Note
*<nowiki>{{NSNIcon|Silvadum_City|Silvadum City}}</nowiki> produces {{Hover title|dotted=no|Silvadum City on NationStates|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation=Silvadum_City]]}}
|-
*<nowiki>{{NSNIcon|Silvadum_City|Papacy of Anteria}}</nowiki> produces {{Hover title|dotted=no|Papacy of Anteria on NationStates|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation=Silvadum_City]]}}
|<nowiki>{{NSNIcon}}</nowiki> ||colspan="2"|''Produces the icon redirecting to the nation with the same name as the wikipage name
|-
|<nowiki>{{NSNIcon|Zhousheng}}</nowiki> ||{{Hover title|dotted=no|Zhousheng on NationStates|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation=Zhousheng]]}} ||—
|-
|<nowiki>{{NSNIcon|Silvadum_City}}</nowiki> ||{{Hover title|dotted=no|Silvadum_City on NationStates|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation=Silvadum_City]]}} ||—
|-
|<nowiki>{{NSNIcon|Silvadum City|Papacy of Anteria}}</nowiki> ||{{Hover title|dotted=no|Papacy of Anteria on NationStates|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation=Silvadum_City]]}} ||—
|-
|<nowiki>{{NSNIcon|Silvadum City}}</nowiki> ||{{Hover title|dotted=no|Silvadum City on NationStates|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation=Silvadum_City]]}} ||''Link is automatically changed to add the [[wikipedia:Underscore|underscore]]''
|-
|<nowiki>{{NSNIcon|Silvadum_City}}</nowiki> ||{{Hover title|dotted=no|Silvadum City on NationStates|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation=Silvadum_City]]}} ||''Hover title is automatically changed to remove the [[wikipedia:Underscore|underscore]]''
|}
====Links:====
*[[Template:NSN|NSN (Only text name)]]
*[[Template:NSNFlag|NSNFlag (Text and flag)]]
*[[Template:NSNFlagIcon|NSNFlagIcon (Only flag image)]]
</noinclude>
</noinclude>

Latest revision as of 17:00, 23 November 2021

NationStates Nation Icon


{{#tag:indicator|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation={{replace|{{{1|{{PAGENAME}}}}}| |_}}|{{#if:{{{alt|}}}|alt={{{alt}}}}}|{{{2|{{replace|{{{1|{{PAGENAME}}}}}|_| }} on NationStates}}}]]|name = {{#if:{{{sortkey|}}}|{{{sortkey}}}-}}{{#if:{{{name|}}}|{{{name}}}|NationStatesIcon|NSLogo.png}}}}[[Category:Pages using NationStates redirect templates]]

Examples:

Note: all the icons would be on the top of the page

Input Result Note
{{NSNIcon}} Produces the icon redirecting to the nation with the same name as the wikipage name
{{NSNIcon|Zhousheng}} NSLogo.png
{{NSNIcon|Silvadum_City}} NSLogo.png
{{NSNIcon|Silvadum City|Papacy of Anteria}} NSLogo.png
{{NSNIcon|Silvadum City}} NSLogo.png Link is automatically changed to add the underscore
{{NSNIcon|Silvadum_City}} NSLogo.png Hover title is automatically changed to remove the underscore

Links: