Template:NSNIcon: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 7: | Line 7: | ||
</noinclude>{{#tag:indicator|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation={{{1|{{PAGENAME}}}}}|{{#if:{{{alt|}}}|alt={{{alt}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}} on NationStates]]|name = {{#if:{{{sortkey|}}}|{{{sortkey}}}-}}{{#if:{{{name|}}}|{{{name}}}|NationStatesIcon|NSLogo.png}}}}<noinclude> | </noinclude>{{#tag:indicator|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation={{{1|{{PAGENAME}}}}}|{{#if:{{{alt|}}}|alt={{{alt}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}} on NationStates]]|name = {{#if:{{{sortkey|}}}|{{{sortkey}}}-}}{{#if:{{{name|}}}|{{{name}}}|NationStatesIcon|NSLogo.png}}}}<noinclude> | ||
<nowiki>{{#tag:indicator|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation={{{1|{{PAGENAME}}}}}|{{#if:{{{alt|}}}|alt={{{alt}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}} on NationStates]]|name = {{#if:{{{sortkey|}}}|{{{sortkey}}}-}}{{#if:{{{name|}}}|{{{name}}}|NationStatesIcon|NSLogo.png}}}}</nowiki> | <nowiki>{{#tag:indicator|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation={{{1|{{PAGENAME}}}}}|{{#if:{{{alt|}}}|alt={{{alt}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}} on NationStates]]|name = {{#if:{{{sortkey|}}}|{{{sortkey}}}-}}{{#if:{{{name|}}}|{{{name}}}|NationStatesIcon|NSLogo.png}}}}</nowiki> | ||
===Examples:=== | [[Category:External link templates]][[Category:Templates linking to NationStates]] | ||
====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}}</nowiki> produces the icon redirecting to the nation with the same name as the wikipage name | *<nowiki>{{NSNIcon}}</nowiki> produces the icon redirecting to the nation with the same name as the wikipage name | ||
Line 14: | Line 15: | ||
*<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|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|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]]}} | ||
====Links:==== | |||
*[[Template:NSN|NSN (Only text name)]] | |||
*[[Template:NSNFlag|NSNFlag (Text and flag)]] | |||
*[[Template:NSNFlagIcon|NSNFlagIcon (Only flag image)]] | |||
</noinclude> | </noinclude> |
Revision as of 09:32, 16 August 2021
If your nation has a multiword name, use "_" instead of spaces in NS Nation Name |
---|
NationStates Nation Icon
{{#tag:indicator|[[File:NSLogo.png|20x20px|link=https://www.nationstates.net/nation={{{1|{{PAGENAME}}}}}|{{#if:{{{alt|}}}|alt={{{alt}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}} on NationStates]]|name = {{#if:{{{sortkey|}}}|{{{sortkey}}}-}}{{#if:{{{name|}}}|{{{name}}}|NationStatesIcon|NSLogo.png}}}}
Examples:
Note: all the icons would be on the top of the page
- {{NSNIcon}} produces the icon redirecting to the nation with the same name as the wikipage name
- {{NSNIcon|Zhousheng}} produces
- {{NSNIcon|Silvadum_City}} produces
- {{NSNIcon|Silvadum_City|Silvadum City}} produces
- {{NSNIcon|Silvadum_City|Papacy of Anteria}} produces