Template:NSRFlagIcon: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
Line 15: Line 15:
   
   
====Example:====
====Example:====
*<nowiki>{{NSRFlagIcon|Anteria}}</nowiki> produces {{NSRFlagIcon|Anteria}}
{| class="wikitable" style="text-align:center"
*<nowiki>{{NSRFlagIcon|Anteria|Flag_of_Anteria.png}}</nowiki> produces {{NSRFlagIcon|Anteria|Flag_of_Anteria.png}}
!Input !!Result !!Note
*<nowiki>{{NSRFlagIcon|Anteria|AWAFlag.png}}</nowiki> produces {{NSRFlagIcon|Anteria|AWAFlag.png}}
|-
*<nowiki>{{NSRFlagIcon|South Pacific|WorldAssembly.png}}</nowiki> produces {{NSRFlagIcon|South Pacific|WorldAssembly.png}} ''(Link is automatically changed to add the [[wikipedia:Underscore|underscore]])''
|<nowiki>{{NSRFlagIcon|Anteria}}</nowiki> ||{{NSRFlagIcon|Anteria}} ||—
*<nowiki>{{NSRFlagIcon|South_Pacific|WorldAssembly.png}}</nowiki> produces {{NSRFlagIcon|South_Pacific|WorldAssembly.png}} ''(Hover title is automatically changed to remove the [[wikipedia:Underscore|underscore]])''
|-
|<nowiki>{{NSRFlagIcon|Anteria|Flag_of_Anteria.png}}</nowiki> ||{{NSRFlagIcon|Anteria|Flag_of_Anteria.png}} ||—
|-
|<nowiki>{{NSRFlagIcon|Anteria|AWAFlag.png}}</nowiki> ||{{NSRFlagIcon|Anteria|AWAFlag.png}} ||—
|-
|<nowiki>{{NSRFlagIcon|South Pacific|WorldAssembly.png}}</nowiki> ||{{NSRFlagIcon|South Pacific|WorldAssembly.png}} ||''Link is automatically changed to add the [[wikipedia:Underscore|underscore]]''
|-
|<nowiki>{{NSRFlagIcon|South_Pacific|WorldAssembly.png}}</nowiki> ||{{NSRFlagIcon|South_Pacific|WorldAssembly.png}} ||''Hover title is automatically changed to remove the [[wikipedia:Underscore|underscore]]''
|}
====Links:====
====Links:====
*[[Template:NSR|NSR (Only text name)]]
*[[Template:NSR|NSR (Only text name)]]
*[[Template:NSRFlag|NSRFlag (Text and flag)]]</noinclude>
*[[Template:NSRFlag|NSRFlag (Text and flag)]]</noinclude>

Revision as of 21:05, 21 August 2021

Default flag for this template

NationStates Region FlagIcon


Australian Aboriginal Flag.svg

{{Hover title|dotted=no|{{replace|{{{1}}}|_| }} region on NationStates|[[File:{{{2|Australian_Aboriginal_Flag.svg}}}|23x15px|link=https://www.nationstates.net/region={{replace|{{{1}}}| |_}}|border]]}}[[Category:Pages using NationStates redirect templates]]

This template provides the link to NationStates factbook. Its usage is:

{{NSN|NS Region Name|Flag image (Without the "File:")}}

Example:

Input Result Note
{{NSRFlagIcon|Anteria}} Australian Aboriginal Flag.svg
{{NSRFlagIcon|Anteria|Flag_of_Anteria.png}} Flag of Anteria.png
{{NSRFlagIcon|Anteria|AWAFlag.png}} AWAFlag.png
{{NSRFlagIcon|South Pacific|WorldAssembly.png}} WorldAssembly.png Link is automatically changed to add the underscore
{{NSRFlagIcon|South_Pacific|WorldAssembly.png}} WorldAssembly.png Hover title is automatically changed to remove the underscore

Links: