Difference between revisions of "Template:Navibox"

From GTAMods Wiki
Jump to navigation Jump to search
(Fixed Collapsing)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><table border="1" class="collapsible" width="100%" cellpadding="3" cellspacing="0" style="margin: 1em 1em 1em 0; background: {{{boxbg|#f9f9f9}}}; border: 1px #aaa solid; border-collapse: collapse;" ><!-- Header --><tr style="background: {{{headerbg|}}}"><th colspan="2">{{{box-header|}}}</th></tr><!-- Groups -->{{#if:{{{group-title1|}}}|<tr><td width="110px" style="background:{{{groupbg|}}}; font-size:80%; text-align:right">{{{group-title1|}}}</td><td style="background:{{{linksbg1|}}}; font-size:80%">{{{group-links1|}}}</td></tr>|}}{{#if:{{{group-title2|}}}|<tr><td width="110px" style="background:{{{groupbg|}}}; font-size:80%; text-align:right">{{{group-title2|}}}</td><td style="background:{{{linksbg2|}}}; font-size:80%">{{{group-links2|}}}</td></tr>|}}
+
<includeonly><table border="2" class="nowraplinks mw-collapsible {{#if:{{{state|}}}|{{{state|}}}}}" width="100%" cellpadding="3" cellspacing="0" style="margin: 1em 1em 1em 0; background: {{{boxbg|#f9f9f9}}}; border: 3px white solid; border-collapse: collapse;" ><!-- Header --><tr style="border: 1px solid white;background: {{{headerbg|}}}"><th colspan="2">{{#if:{{{template|}}}|<div style="float:left; margin-left:0.5em"><span style="font-size:75%;" title="View this template">[[Template:{{{template|}}}|v]]</span>&nbsp;&middot;&nbsp;<span style="font-size:75%;" title="Discussion about this template">[[Template talk:{{{template|}}}|d]]</span>&nbsp;&middot;&nbsp;<span style="font-size:75%;" class="plainlinks" title="Edit this template">[{{fullurl:{{ns:10}}:{{{template|}}}|action=edit}} e]</span></div>}}{{{box-header|}}}</th></tr><!-- Groups -->{{#if:{{{group-title1|}}}|<tr><td width="110px" style="border: 1px solid white;background:{{{groupbg|}}}; font-size:90%; text-align:right">{{{group-title1|}}}</td><td style="border: 1px solid white;background:{{{linksbg1|}}}; font-size:90%">{{{group-links1|}}}</td></tr>|}}{{#if:{{{group-title2|}}}|<tr><td width="110px" style="border: 1px solid white;background:{{{groupbg|}}}; font-size:90%; text-align:right">{{{group-title2|}}}</td><td style="border: 1px solid white;background:{{{linksbg2|}}}; font-size:90%">{{{group-links2|}}}</td></tr>|}}{{#if:{{{group-title3|}}}|<tr><td width="110px" style="border: 1px solid white;background:{{{groupbg|}}}; font-size:90%; text-align:right">{{{group-title3|}}}</td><td style="border: 1px solid white;background:{{{linksbg3|}}}; font-size:90%">{{{group-links3|}}}</td></tr>|}}{{#if:{{{group-title4|}}}|<tr><td width="110px" style="border: 1px solid white;background:{{{groupbg|}}}; font-size:90%; text-align:right">{{{group-title4|}}}</td><td style="border: 1px solid white;background:{{{linksbg4|}}}; font-size:90%">{{{group-links4|}}}</td></tr>|}}{{#if:{{{group-title5|}}}|<tr><td width="110px" style="border: 1px solid white;background:{{{groupbg|}}}; font-size:90%; text-align:right">{{{group-title5|}}}</td><td style="border: 1px solid white;background:{{{linksbg5|}}}; font-size:90%">{{{group-links5|}}}</td></tr>|}}{{#if:{{{group-title6|}}}|<tr><td width="110px" style="border: 1px solid white;background:{{{groupbg|}}}; font-size:90%; text-align:right">{{{group-title6|}}}</td><td style="border: 1px solid white;background:{{{linksbg6|}}}; font-size:90%">{{{group-links6|}}}</td></tr>|}}{{#if:{{{group-title7|}}}|<tr><td width="110px" style="border: 1px solid white;background:{{{groupbg|}}}; font-size:90%; text-align:right">{{{group-title7|}}}</td><td style="border: 1px solid white;background:{{{linksbg7|}}}; font-size:90%">{{{group-links7|}}}</td></tr>|}}{{#if:{{{group-title8|}}}|<tr><td width="110px" style="border: 1px solid white;background:{{{groupbg|}}}; font-size:90%; text-align:right">{{{group-title8|}}}</td><td style="border: 1px solid white;background:{{{linksbg8|}}}; font-size:90%">{{{group-links8|}}}</td></tr>|}}{{#if:{{{group-title9|}}}|<tr><td width="110px" style="border: 1px solid white;background:{{{groupbg|}}}; font-size:90%; text-align:right">{{{group-title9|}}}</td><td style="border: 1px solid white;background:{{{linksbg9|}}}; font-size:90%">{{{group-links9|}}}</td></tr>|}}{{#if:{{{group-title10|}}}|<tr><td width="110px" style="border: 1px solid white;background:{{{groupbg|}}}; font-size:90%; text-align:right">{{{group-title10|}}}</td><td style="border: 1px solid white;background:{{{linksbg10|}}}; font-size:90%">{{{group-links10|}}}</td></tr>|}}</table></includeonly><noinclude>A basic template for navigation boxes. They are collapsible and will appear expanded by default.
{{#if:{{{group-title3|}}}|<tr><td width="110px" style="background:{{{groupbg|}}}; font-size:80%; text-align:right">{{{group-title3|}}}</td><td style="background:{{{linksbg3|}}}; font-size:80%">{{{group-links3|}}}</td></tr>|}}{{#if:{{{group-title4|}}}|<tr><td width="110px" style="background:{{{groupbg|}}}; font-size:80%; text-align:right">{{{group-title4|}}}</td><td style="background:{{{linksbg4|}}}; font-size:80%">{{{group-links4|}}}</td></tr>|}}{{#if:{{{group-title5|}}}|<tr><td width="110px" style="background:{{{groupbg|}}}; font-size:80%; text-align:right">{{{group-title5|}}}</td><td style="background:{{{linksbg5|}}}; font-size:80%">{{{group-links5|}}}</td></tr>|}}</table></includeonly><noinclude>Basic template for navigation boxes.</noinclude>
+
 
 +
* [[Template:3-navi|GTA III Navibox]]
 +
* [[Template:VC-navi|GTA VC Navibox]]
 +
* [[Template:SA-navi|GTA SA Navibox]]
 +
* [[Template:LCS-navi|GTA LCS Navibox]]
 +
* [[Template:LCS-navi|GTA VCS Navibox]]
 +
* [[Template:GTA4-navi|GTA IV Navibox]]
 +
* [[Template:GTA5-navi|GTA V Navibox]]
 +
* [[Template:MP-navi|Multiplayer Navibox]]
 +
* [[Template:Savegame-navi|Savegame Navibox]]
 +
 
 +
== See also ==
 +
* [[Template:N]] &ndash; An alternative way to display navigation boxes which is shorter to write and can display multiple from the same line of code, collapsing all except the first by default</noinclude>

Latest revision as of 23:10, 12 January 2021

A basic template for navigation boxes. They are collapsible and will appear expanded by default.

See also

  • Template:N – An alternative way to display navigation boxes which is shorter to write and can display multiple from the same line of code, collapsing all except the first by default