NSNIcon on NationStates

Template:NSNIcon: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 6: Line 6:
----
----
</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>
</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>
  <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={{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>
  [[Category:External link templates]][[Category:Templates linking to NationStates]]
  [[Category:External link templates]][[Category:Templates linking to NationStates]]
====Examples:====
====Examples:====

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: