Template:NSNIcon
(Redirected from Template:NationStatesIcon)
Jump to navigation
Jump to search
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}} | — | |
{{NSNIcon|Silvadum_City}} | — | |
{{NSNIcon|Silvadum City|Papacy of Anteria}} | — | |
{{NSNIcon|Silvadum City}} | Link is automatically changed to add the underscore | |
{{NSNIcon|Silvadum_City}} | Hover title is automatically changed to remove the underscore |