Template:NSRFlag: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
{| class="wikitable"
<!--{| class="wikitable"
!style="font-size:1.5em; background:#FFBFBF; border:0px"|<span style="color: #AA0000">If your region has a multiword name, use "_" instead of spaces in NS Region Name</span>
!style="font-size:1.5em; background:#FFBFBF; border:0px"|<span style="color: #AA0000">If your region has a multiword name, use "_" instead of spaces in NS Region Name</span>
|}
|}-->
{|class="infobox"
{|class="infobox"
!style="font-family:Arial Unicode MS; font-size:1.3em; background:#803000; text-align:center"|{{White|[https://www.nationstates.net/ {{White|NationStates}}] region link color}}
!style="font-family:Arial Unicode MS; font-size:1.3em; background:#803000; text-align:center"|{{White|[https://www.nationstates.net/ {{White|NationStates}}] region link color}}
Line 14: Line 14:
<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|{{{2|{{{1}}}}}} region on NationStates|[[File:{{{3}}}|23x15px|link=https://www.nationstates.net/region={{{1}}}|border]]}} [https://www.nationstates.net/region={{{1}}} {{Hover title|dotted=no|{{{2|{{{1}}}}}} region on NationStates|{{NSRColor|{{{2|{{{1}}}}}}}}}}][[Category:Pages using NationStates redirect templates]]<noinclude>
</noinclude>{{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]]<noinclude>


  <nowiki>{{Hover title|dotted=no|{{{2|{{{1}}}}}} region on NationStates|[[File:{{{3}}}|23x15px|link=https://www.nationstates.net/region={{{1}}}|border]]}} [https://www.nationstates.net/region={{{1}}} {{Hover title|dotted=no|{{{2|{{{1}}}}}} region on NationStates|{{NSRColor|{{{2|{{{1}}}}}}}}}}][[Category:Pages using NationStates redirect templates]]</nowiki>
  <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>
----
----
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:
Line 27: Line 27:
*<nowiki>{{NSRFlag|Anteria|Антэрия|Flag_of_Anteria.png}}</nowiki> produces {{NSRFlag|Anteria|Антэрия|Flag_of_Anteria.png}}
*<nowiki>{{NSRFlag|Anteria|Антэрия|Flag_of_Anteria.png}}</nowiki> produces {{NSRFlag|Anteria|Антэрия|Flag_of_Anteria.png}}
*<nowiki>{{NSRFlag|Anteria|Anteria|AWAFlag.png}}</nowiki> produces {{NSRFlag|Anteria|Anteria|AWAFlag.png}}
*<nowiki>{{NSRFlag|Anteria|Anteria|AWAFlag.png}}</nowiki> produces {{NSRFlag|Anteria|Anteria|AWAFlag.png}}
*<nowiki>{{NSRFlag|South Pacific|South Pacific|AWAFlag.png}}</nowiki> produces {{NSRFlag|South Pacific|South Pacific|AWAFlag.png}} ''(Link is automatically changed to add the [[wikipedia:Underscore|underscore]])''
*<nowiki>{{NSRFlag|South_Pacific|South_Pacific|AWAFlag.png}}</nowiki> produces {{NSRFlag|South_Pacific|South_Pacific|AWAFlag.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>

Revision as of 18:05, 20 August 2021

NationStates region link color
#803000
<span style="color: #803000"></span>
{{NSRColor|}}

NationStates Region Flag


[[File:{{{3}}}|23x15px|link=https://www.nationstates.net/region={{{1}}}%7Cborder]] {{{1}}}

{{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]]

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

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

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

Example:

  • {{NSRFlag|Anteria|Anteria|Flag_of_Anteria.png}} produces Flag of Anteria.png Anteria
  • {{NSRFlag|Anteria|Антэрия|Flag_of_Anteria.png}} produces Flag of Anteria.png Антэрия
  • {{NSRFlag|Anteria|Anteria|AWAFlag.png}} produces AWAFlag.png Anteria
  • {{NSRFlag|South Pacific|South Pacific|AWAFlag.png}} produces AWAFlag.png South Pacific (Link is automatically changed to add the underscore)
  • {{NSRFlag|South_Pacific|South_Pacific|AWAFlag.png}} produces AWAFlag.png South_Pacific (Name is automatically changed to remove the underscore)

Links: