Difference between revisions of "Template:N"

From GTAMods Wiki
Jump to navigation Jump to search
m
(Added VCS and Fixed Collapsing)
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{{1}}}<br><br>}}</includeonly><noinclude>A default template for the navi boxes. It does not support auto collapse. 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>{{NavBox|SA}}</nowiki>
+
{|class="wikitable center-col-1"
* <nowiki>{{NavBox|IV}}</nowiki>
+
!Navibox
* <nowiki>{{NavBox|SA|IV}}</nowiki>
+
!Template Syntax
 +
|-
 +
|{{Icon|3}} [[Template:3-navi|GTA III]] || <nowiki>{{N|3}} or {{N|III}</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 nav box 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:GTA4-navi]] &ndash; GTA IV navigation box
+
* <nowiki>{{N|VCS|LCS}}</nowiki>
* [[Template:SA-navi]] &ndash; GTA SA navigation box
+
* <nowiki>{{N|SA|VC|III}}</nowiki>
 +
* <nowiki>{{SG|III}}</nowiki>
 
</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}}