Difference between revisions of "Template:N"

From GTAMods Wiki
Jump to navigation Jump to search
(added V navi)
(Added VCS and Fixed Collapsing)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{lc:{{{1|}}}}}|3={{3-navi}}|vc={{VC-navi}}|sa={{SA-navi}}|4={{GTA4-navi}}|iv={{GTA4-navi}}|gta4={{GTA4-navi}}|5={{GTA5-navi}}|v={{GTA5-navi}}|gta5={{GTA5-navi}}}}{{#switch: {{lc:{{{2|}}}}}|3={{3-navi|state=autocollapse}}|vc={{VC-navi|state=autocollapse}}|sa={{SA-navi|state=autocollapse}}|4={{GTA4-navi|state=autocollapse}}|iv={{GTA4-navi|state=autocollapse}}|gta4={{GTA4-navi|state=autocollapse}}|5={{GTA5-navi|state=autocollapse}}|v={{GTA5-navi|state=autocollapse}}|gta5={{GTA5-navi|state=autocollapse}}}}{{#switch: {{lc:{{{3|}}}}}|3={{3-navi|state=autocollapse}}|vc={{VC-navi|state=autocollapse}}|sa={{SA-navi|state=autocollapse}}|4={{GTA4-navi|state=autocollapse}}|iv={{GTA4-navi|state=autocollapse}}|gta4={{GTA4-navi|state=autocollapse}}|5={{GTA5-navi|state=autocollapse}}|v={{GTA5-navi|state=autocollapse}}|gta5={{GTA5-navi|state=autocollapse}}}}{{#switch: {{lc:{{{4|}}}}}|3={{3-navi|state=autocollapse}}|vc={{VC-navi|state=autocollapse}}|sa={{SA-navi|state=autocollapse}}|4={{GTA4-navi|state=autocollapse}}|iv={{GTA4-navi|state=autocollapse}}|gta4={{GTA4-navi|state=autocollapse}}|5={{GTA5-navi|state=autocollapse}}|v={{GTA5-navi|state=autocollapse}}|gta5={{GTA5-navi|state=autocollapse}}}}</includeonly><noinclude>A default template for the navi boxes. It collapses the second navibox if there is one. Examples:
+
<includeonly>{{#switch: {{lc:{{{1|}}}}}|3={{3-navi}}|iii={{3-navi}}|vc={{VC-navi}}|sa={{SA-navi}}|lcs={{LCS-navi}}|vcs={{VCS-navi}}|4={{GTA4-navi}}|iv={{GTA4-navi}}|gta4={{GTA4-navi}}|5={{GTA5-navi}}|v={{GTA5-navi}}|gta5={{GTA5-navi}}|mp={{MP-navi}}|sg={{Savegame-navi}}}}{{#switch: {{lc:{{{2|}}}}}|3={{3-navi|state=mw-collapsed}}|iii={{3-navi|state=mw-collapsed}}|vc={{VC-navi|state=mw-collapsed}}|sa={{SA-navi|state=mw-collapsed}}|lcs={{LCS-navi|state=mw-collapsed}}|vcs={{VCS-navi|state=mw-collapsed}}|4={{GTA4-navi|state=mw-collapsed}}|iv={{GTA4-navi|state=mw-collapsed}}|gta4={{GTA4-navi|state=mw-collapsed}}|5={{GTA5-navi|state=mw-collapsed}}|v={{GTA5-navi|state=mw-collapsed}}|gta5={{GTA5-navi|state=mw-collapsed}}|mp={{MP-navi|state=mw-collapsed}}|sg={{Savegame-navi|state=mw-collapsed}}}}{{#switch: {{lc:{{{3|}}}}}|3={{3-navi|state=mw-collapsed}}|iii={{3-navi|state=mw-collapsed}}|vc={{VC-navi|state=mw-collapsed}}|sa={{SA-navi|state=mw-collapsed}}|lcs={{LCS-navi|state=mw-collapsed}}|vcs={{VCS-navi|state=mw-collapsed}}|4={{GTA4-navi|state=mw-collapsed}}|iv={{GTA4-navi|state=mw-collapsed}}|gta4={{GTA4-navi|state=mw-collapsed}}|5={{GTA5-navi|state=mw-collapsed}}|v={{GTA5-navi|state=mw-collapsed}}|gta5={{GTA5-navi|state=mw-collapsed}}|mp={{MP-navi|state=mw-collapsed}}|sg={{Savegame-navi|state=mw-collapsed}}}}{{#switch: {{lc:{{{4|}}}}}|3={{3-navi|state=mw-collapsed}}|iii={{3-navi|state=mw-collapsed}}|vc={{VC-navi|state=mw-collapsed}}|sa={{SA-navi|state=mw-collapsed}}|lcs={{LCS-navi|state=mw-collapsed}}|vcs={{VCS-navi|state=mw-collapsed}}|4={{GTA4-navi|state=mw-collapsed}}|iv={{GTA4-navi|state=mw-collapsed}}|gta4={{GTA4-navi|state=mw-collapsed}}|5={{GTA5-navi|state=mw-collapsed}}|v={{GTA5-navi|state=mw-collapsed}}|gta5={{GTA5-navi|state=mw-collapsed}}|mp={{MP-navi|state=mw-collapsed}}|sg={{Savegame-navi|state=mw-collapsed}}}}{{#switch: {{lc:{{{5|}}}}}|3={{3-navi|state=mw-collapsed}}|iii={{3-navi|state=mw-collapsed}}|vc={{VC-navi|state=mw-collapsed}}|sa={{SA-navi|state=mw-collapsed}}|lcs={{LCS-navi|state=mw-collapsed}}|vcs={{VCS-navi|state=mw-collapsed}}|4={{GTA4-navi|state=mw-collapsed}}|iv={{GTA4-navi|state=mw-collapsed}}|gta4={{GTA4-navi|state=mw-collapsed}}|5={{GTA5-navi|state=mw-collapsed}}|v={{GTA5-navi|state=mw-collapsed}}|gta5={{GTA5-navi|state=mw-collapsed}}|mp={{MP-navi|state=mw-collapsed}}|sg={{Savegame-navi|state=mw-collapsed}}}}{{#switch: {{lc:{{{6|}}}}}|3={{3-navi|state=mw-collapsed}}|iii={{3-navi|state=mw-collapsed}}|vc={{VC-navi|state=mw-collapsed}}|sa={{SA-navi|state=mw-collapsed}}|lcs={{LCS-navi|state=mw-collapsed}}|vcs={{VCS-navi|state=mw-collapsed}}|4={{GTA4-navi|state=mw-collapsed}}|iv={{GTA4-navi|state=mw-collapsed}}|gta4={{GTA4-navi|state=mw-collapsed}}|5={{GTA5-navi|state=mw-collapsed}}|v={{GTA5-navi|state=mw-collapsed}}|gta5={{GTA5-navi|state=mw-collapsed}}|mp={{MP-navi|state=mw-collapsed}}|sg={{Savegame-navi|state=mw-collapsed}}}}{{#switch: {{lc:{{{7|}}}}}|3={{3-navi|state=mw-collapsed}}|iii={{3-navi|state=mw-collapsed}}|vc={{VC-navi|state=mw-collapsed}}|sa={{SA-navi|state=mw-collapsed}}|lcs={{LCS-navi|state=mw-collapsed}}|vcs={{VCS-navi|state=mw-collapsed}}|4={{GTA4-navi|state=mw-collapsed}}|iv={{GTA4-navi|state=mw-collapsed}}|gta4={{GTA4-navi|state=mw-collapsed}}|5={{GTA5-navi|state=mw-collapsed}}|v={{GTA5-navi|state=mw-collapsed}}|gta5={{GTA5-navi|state=mw-collapsed}}|mp={{MP-navi|state=mw-collapsed}}|sg={{Savegame-navi|state=mw-collapsed}}}}{{#switch: {{lc:{{{8|}}}}}|3={{3-navi|state=mw-collapsed}}|iii={{3-navi|state=mw-collapsed}}|vc={{VC-navi|state=mw-collapsed}}|sa={{SA-navi|state=mw-collapsed}}|lcs={{LCS-navi|state=mw-collapsed}}|vcs={{VCS-navi|state=mw-collapsed}}|4={{GTA4-navi|state=mw-collapsed}}|iv={{GTA4-navi|state=mw-collapsed}}|gta4={{GTA4-navi|state=mw-collapsed}}|5={{GTA5-navi|state=mw-collapsed}}|v={{GTA5-navi|state=mw-collapsed}}|gta5={{GTA5-navi|state=mw-collapsed}}|mp={{MP-navi|state=mw-collapsed}}|sg={{Savegame-navi|state=mw-collapsed}}}}{{#switch: {{lc:{{{9|}}}}}|3={{3-navi|state=mw-collapsed}}|iii={{3-navi|state=mw-collapsed}}|vc={{VC-navi|state=mw-collapsed}}|sa={{SA-navi|state=mw-collapsed}}|lcs={{LCS-navi|state=mw-collapsed}}|vcs={{VCS-navi|state=mw-collapsed}}|4={{GTA4-navi|state=mw-collapsed}}|iv={{GTA4-navi|state=mw-collapsed}}|gta4={{GTA4-navi|state=mw-collapsed}}|5={{GTA5-navi|state=mw-collapsed}}|v={{GTA5-navi|state=mw-collapsed}}|gta5={{GTA5-navi|state=mw-collapsed}}|mp={{MP-navi|state=mw-collapsed}}|sg={{Savegame-navi|state=mw-collapsed}}}}</includeonly><noinclude>A default template for displaying [[Template:Navibox|Naviboxes]] which is shorter to write and can display multiple from the same line of code.
  
* <nowiki>{{N|SA}}</nowiki>
+
{|class="wikitable center-col-1"
* <nowiki>{{N|IV}}</nowiki>
+
!Navibox
* <nowiki>{{N|5}}</nowiki>
+
!Template Syntax
* <nowiki>{{N|4|SA}}</nowiki>
+
|-
* <nowiki>{{N|vc|sa}}</nowiki>
+
|{{Icon|3}} [[Template:3-navi|GTA III]] || <nowiki>{{N|3}} or {{N|III}</nowiki>
* <nowiki>{{N|3|vc|sa}}</nowiki>
+
|-
 +
|{{Icon|VC}} [[Template:VC-navi|GTA VC]] || <nowiki>{{N|VC}}</nowiki>
 +
|-
 +
|{{Icon|SA}} [[Template:SA-navi|GTA SA]] || <nowiki>{{N|SA}}</nowiki>
 +
|-
 +
|{{Icon|LCS}} [[Template:LCS-navi|GTA LCS]] || <nowiki>{{N|LCS}}</nowiki>
 +
|-
 +
|{{Icon|VCS}} [[Template:VCS-navi|GTA VCS]] || <nowiki>{{N|VCS}}</nowiki>
 +
|-
 +
|{{Icon|IV}} [[Template:GTA4-navi|GTA IV]] || <nowiki>{{N|4}} or {{N|IV}} or {{N|GTAIV}}</nowiki>
 +
|-
 +
|{{Icon|V}}  [[Template:GTA5-navi|GTA V]] || <nowiki>{{N|5}} or {{N|V}} or {{N|GTAV}}</nowiki>
 +
|-
 +
|{{Icon}} [[Template:MP-navi|Multiplayer]] || <nowiki>{{N|MP}}</nowiki>
 +
|-
 +
|{{Icon}} [[Template:Savegame-navi|Savegame]] || <nowiki>{{N|SG}}</nowiki>
 +
|}
  
It displays the usual navigation templates, but it is shorter than writing each of them.
+
You can display multiple Naviboxes by using combining the syntax between <code><nowiki>{{N|</nowiki></code> and <code>}}</code>, separated by <code>|</code>. They will display in the order listed and all except the first will be collapsed by default. Examples:
  
== See also ==
+
* <nowiki>{{N|V|IV}}</nowiki>
* [[Template:GTA5-navi]] &ndash; GTA V navigation box
+
* <nowiki>{{N|VCS|LCS}}</nowiki>
* [[Template:GTA4-navi]] &ndash; GTA IV navigation box
+
* <nowiki>{{N|SA|VC|III}}</nowiki>
* [[Template:SA-navi]] &ndash; GTA SA navigation box
+
* <nowiki>{{SG|III}}</nowiki>
* [[Template:VC-navi]] &ndash; GTA VC navigation box
 
* [[Template:3-navi]] &ndash; GTA III navigation box
 
 
</noinclude>
 
</noinclude>

Latest revision as of 23:10, 12 January 2021

A default template for displaying Naviboxes which is shorter to write and can display multiple from the same line of code.

Navibox Template Syntax
GTA III GTA III {{N|3}} or {{N|III}
Vice City GTA VC {{N|VC}}
San Andreas GTA SA {{N|SA}}
Liberty City Stories GTA LCS {{N|LCS}}
Vice City Stories GTA VCS {{N|VCS}}
GTA IV GTA IV {{N|4}} or {{N|IV}} or {{N|GTAIV}}
GTA V GTA V {{N|5}} or {{N|V}} or {{N|GTAV}}
Grand Theft Auto series Multiplayer {{N|MP}}
Grand Theft Auto series Savegame {{N|SG}}

You can display multiple Naviboxes by using combining the syntax between {{N| and }}, separated by |. They will display in the order listed and all except the first will be collapsed by default. Examples:

  • {{N|V|IV}}
  • {{N|VCS|LCS}}
  • {{N|SA|VC|III}}
  • {{SG|III}}