Template:NSRFlag: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 12: Line 12:
|style="font-family:Arial Unicode MS; font-size:1.3em; background:#803000; text-align:center"|[[Template:NSRColor|{{White|<nowiki>{{NSRColor|}}</nowiki>}}]]
|style="font-family:Arial Unicode MS; font-size:1.3em; background:#803000; text-align:center"|[[Template:NSRColor|{{White|<nowiki>{{NSRColor|}}</nowiki>}}]]
|}
|}
[[File:Australian_Aboriginal_Flag.svg|300px|thumb|{{Hover title|dotted=no|Australian Aboriginal Flag|[https://en.wikipedia.org/wiki/Australian_Aboriginal_Flag Default flag]}} for this template]]
<big><big>N</big></big>ation<big><big>S</big></big>tates <big><big>R</big></big>egion <big><big>Flag</big></big>
<big><big>N</big></big>ation<big><big>S</big></big>tates <big><big>R</big></big>egion <big><big>Flag</big></big>
----
----
</noinclude>{{Hover title|dotted=no|{{replace|{{{3|{{replace|{{{1}}}|_| }}}}}|_| }} region on NationStates|[[File:{{{2}}}|23x15px|link=https://www.nationstates.net/region={{replace|{{{1}}}| |_}}|border]]}} [https://www.nationstates.net/region={{replace|{{{1}}}| |_}} {{Hover title|dotted=no|{{replace|{{{3|{{replace|{{{1}}}|_| }}}}}|_| }} region on NationStates|{{NSRColor|{{replace|{{{3|{{replace|{{{1}}}|_| }}}}}|_| }}}}}}][[Category:Pages using NationStates redirect templates]]<noinclude>
</noinclude>{{Hover title|dotted=no|{{{4|{{replace|{{{3|{{replace|{{{1}}}|_| }}}}}|_| }} region on NationStates}}}|[[File:{{{2|Australian_Aboriginal_Flag.svg}}}|23x15px|link=https://www.nationstates.net/region={{replace|{{{1}}}| |_}}|border]]}} [https://www.nationstates.net/region={{replace|{{{1}}}| |_}} {{Hover title|dotted=no|{{{4|{{replace|{{{3|{{replace|{{{1}}}|_| }}}}}|_| }} region on NationStates}}}|{{NSRColor|{{replace|{{{3|{{replace|{{{1}}}|_| }}}}}|_| }}}}}}][[Category:Pages using NationStates redirect templates]]<noinclude>


  <nowiki>{{Hover title|dotted=no|{{replace|{{{2|{{replace|{{{1}}}|_| }}}}}|_| }} region on NationStates|[[File:{{{3}}}|23x15px|link=https://www.nationstates.net/region={{replace|{{{1}}}| |_}}|border]]}} [https://www.nationstates.net/region={{replace|{{{1}}}| |_}} {{Hover title|dotted=no|{{replace|{{{2|{{replace|{{{1}}}|_| }}}}}|_| }} region on NationStates|{{NSRColor|{{replace|{{{2|{{replace|{{{1}}}|_| }}}}}|_| }}}}}}][[Category:Pages using NationStates redirect templates]]</nowiki>
  <nowiki>{{Hover title|dotted=no|{{{4|{{replace|{{{3|{{replace|{{{1}}}|_| }}}}}|_| }} region on NationStates}}}|[[File:{{{2|Australian_Aboriginal_Flag.svg}}}|23x15px|link=https://www.nationstates.net/region={{replace|{{{1}}}| |_}}|border]]}} [https://www.nationstates.net/region={{replace|{{{1}}}| |_}} {{Hover title|dotted=no|{{{4|{{replace|{{{3|{{replace|{{{1}}}|_| }}}}}|_| }} region on NationStates}}}|{{NSRColor|{{replace|{{{3|{{replace|{{{1}}}|_| }}}}}|_| }}}}}}][[Category:Pages using NationStates redirect templates]]</nowiki>
----
----
This template provides the link to [https://www.nationstates.net/ NationStates] factbook. Its usage is:
This template provides the link to [https://www.nationstates.net/ NationStates] factbook. Its usage is:
  <nowiki>{{NSN|NS Region Name|Display Name|Flag image}}</nowiki>
  <nowiki>{{NSN|NS Region Name|Flag image|Display Name|Hover title}}</nowiki>
If no Display Name is added, the name shows the NS Region Name
If no Display Name is added, the name shows the NS Region Name
  [[Category:External link templates]][[Category:Templates linking to NationStates]]
  [[Category:External link templates]][[Category:Templates linking to NationStates]]


====Example:====
====Example:====
*<nowiki>{{NSRFlag|Anteria|Flag_of_Anteria.png}}</nowiki> produces {{NSRFlag|Anteria|Flag_of_Anteria.png}}
{| class="wikitable" style="text-align:center"
*<nowiki>{{NSRFlag|Anteria|Flag_of_Anteria.png|Антэрия}}</nowiki> produces {{NSRFlag|Anteria|Flag_of_Anteria.png|Антэрия}}
!Input !!Result !!Note
*<nowiki>{{NSRFlag|Anteria|AWAFlag.png}}</nowiki> produces {{NSRFlag|Anteria|AWAFlag.png}}
|-
*<nowiki>{{NSRFlag|South Pacific|WorldAssembly.png}}</nowiki> produces {{NSRFlag|South Pacific|WorldAssembly.png}} ''(Link is automatically changed to add the [[wikipedia:Underscore|underscore]])''
|<nowiki>{{NSRFlag|Anteria}}</nowiki> ||{{NSRFlag|Anteria}} ||—
*<nowiki>{{NSRFlag|South_Pacific|WorldAssembly.png}}</nowiki> produces {{NSRFlag|South_Pacific|WorldAssembly.png}} ''(Name is automatically changed to remove the [[wikipedia:Underscore|underscore]])''
|-
|<nowiki>{{NSRFlag|Anteria|Flag_of_Anteria.png}}</nowiki> ||{{NSRFlag|Anteria|Flag_of_Anteria.png}} ||—
|-
|<nowiki>{{NSRFlag|Anteria|Flag_of_Anteria.png|Антэрия}}</nowiki> ||{{NSRFlag|Anteria|Flag_of_Anteria.png|Антэрия}} ||—
|-
|<nowiki>{{NSRFlag|Anteria|AWAFlag.png}}</nowiki> ||{{NSRFlag|Anteria|AWAFlag.png}} ||—
|-
|<nowiki>{{NSRFlag|South Pacific|WorldAssembly.png}}</nowiki> ||{{NSRFlag|South Pacific|WorldAssembly.png}} ||''Link is automatically changed to add the [[wikipedia:Underscore|underscore]]''
|-
|<nowiki>{{NSRFlag|South_Pacific|WorldAssembly.png}}</nowiki> ||{{NSRFlag|South_Pacific|WorldAssembly.png}} ||''Name is automatically changed to remove the [[wikipedia:Underscore|underscore]]''
|}
====Links:====
====Links:====
*[[Template:NSR|NSR (Only text name)]]
*[[Template:NSR|NSR (Only text name)]]
*[[Template:NSRFlagIcon|NSRFlagIcon (Only flag image)]]
*[[Template:NSRFlagIcon|NSRFlagIcon (Only flag image)]]
</noinclude>
</noinclude>

Latest revision as of 17:03, 23 November 2021

NationStates region link color
#803000
<span style="color: #803000"></span>
{{NSRColor|}}
Default flag for this template

NationStates Region Flag


Australian Aboriginal Flag.svg {{{1}}}

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

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

{{NSN|NS Region Name|Flag image|Display Name|Hover title}}

If no Display Name is added, the name shows the NS Region Name

Example:

Input Result Note
{{NSRFlag|Anteria}} Australian Aboriginal Flag.svg Anteria
{{NSRFlag|Anteria|Flag_of_Anteria.png}} Flag of Anteria.png Anteria
{{NSRFlag|Anteria|Flag_of_Anteria.png|Антэрия}} Flag of Anteria.png Антэрия
{{NSRFlag|Anteria|AWAFlag.png}} AWAFlag.png Anteria
{{NSRFlag|South Pacific|WorldAssembly.png}} WorldAssembly.png South Pacific Link is automatically changed to add the underscore
{{NSRFlag|South_Pacific|WorldAssembly.png}} WorldAssembly.png South Pacific Name is automatically changed to remove the underscore

Links: