Difference between revisions of "Template:Navbox"

From mtgpq wiki
Jump to: navigation, search
(Created page with "<includeonly>{{#invoke:Navbox|navbox}}</includeonly>")
 
Line 1: Line 1:
<includeonly>{{#invoke:Navbox|navbox}}</includeonly>
+
<includeonly>{| width="100%" class="nowraplinks {{#ifeq:{{lc:{{{subgroup|}}}}}|yes|navbox-subgroup|navbox {{#ifeq:{{{state|}}}|plain||collapsible {{#if:{{{state|}}}|{{{state}}}|autocollapse}}}}}}" cellspacing=0 {{#if:{{{style|}}}|style="{{{style}}}"|}} <!--
 +
 
 +
--><!-- Table header; hidden for sub-groups -->
 +
{{#ifeq:{{lc:{{{subgroup|}}}}}||! colspan=2 class="navbox-title" {{!}} {{#if:{{{name|}}}|<div style="padding-right:{{#ifeq:{{{state|}}}|plain|6|0}}em">{{tnavbar-collapsible|{{{title}}}|{{{name}}}}}</div>|<div style="padding-left:{{#ifeq:{{{state|}}}|plain|0|6}}em">{{{title|}}}</div>}}}}<!--
 +
 
 +
--><!-- Row 1 -->
 +
{{#if:{{{group1|}}}|{{!}}-
 +
{{#if:{{{gtitle1|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{{gtitle1}}}'''
 +
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#if:{{#pos:{{{group1|}}}|subgroup}}|padding:0; border-bottom:0;|}}{{#if:{{{style1|}}}|{{{style1}}}}}" {{!}}
 +
{{{group1}}}<!--
 +
 
 +
--><!-- Row 2 -->
 +
{{#if:{{{group2|}}}|{{!}}-
 +
{{#if:{{{gtitle2|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{{gtitle2}}}'''
 +
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#if:{{#pos:{{{group2|}}}|subgroup}}|padding:0; border-bottom:0;|}}{{#if:{{{style2|}}}|{{{style2}}}}}" {{!}}
 +
{{{group2}}}<!--
 +
 
 +
--><!-- Row 3 -->
 +
{{#if:{{{group3|}}}|{{!}}-
 +
{{#if:{{{gtitle3|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{{gtitle3}}}'''
 +
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#if:{{#pos:{{{group3|}}}|subgroup}}|padding:0; border-bottom:0;|}}{{#if:{{{style3|}}}|{{{style3}}}}}" {{!}}
 +
{{{group3}}}<!--
 +
 
 +
--><!-- Row 4 -->
 +
{{#if:{{{group4|}}}|{{!}}-
 +
{{#if:{{{gtitle4|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{{gtitle4}}}'''
 +
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#if:{{#pos:{{{group4|}}}|subgroup}}|padding:0; border-bottom:0;|}}{{#if:{{{style4|}}}|{{{style4}}}}}" {{!}}
 +
{{{group4}}}<!--
 +
 
 +
--><!-- Row 5 -->
 +
{{#if:{{{group5|}}}|{{!}}-
 +
{{#if:{{{gtitle5|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{{gtitle5}}}'''
 +
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#if:{{#pos:{{{group5|}}}|subgroup}}|padding:0; border-bottom:0;|}}{{#if:{{{style5|}}}|{{{style5}}}}}" {{!}}
 +
{{{group5}}}<!--
 +
 
 +
--><!-- Row 6 -->
 +
{{#if:{{{group6|}}}|{{!}}-
 +
{{#if:{{{gtitle6|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{{gtitle6}}}'''
 +
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#if:{{#pos:{{{group6|}}}|subgroup}}|padding:0; border-bottom:0;|}}{{#if:{{{style6|}}}|{{{style6}}}}}" {{!}}
 +
{{{group6}}}<!--
 +
 
 +
--><!-- Row 7 -->
 +
{{#if:{{{group7|}}}|{{!}}-
 +
{{#if:{{{gtitle7|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{{gtitle7}}}'''
 +
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#if:{{#pos:{{{group7|}}}|subgroup}}|padding:0; border-bottom:0;|}}{{#if:{{{style7|}}}|{{{style7}}}}}" {{!}}
 +
{{{group7}}}<!--
 +
 
 +
--><!-- Row 8 -->
 +
{{#if:{{{group8|}}}|{{!}}-
 +
{{#if:{{{gtitle8|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{{gtitle8}}}'''
 +
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#if:{{#pos:{{{group8|}}}|subgroup}}|padding:0; border-bottom:0;|}}{{#if:{{{style8|}}}|{{{style8}}}}}" {{!}}
 +
{{{group8}}}<!--
 +
 
 +
--><!-- Row 9 -->
 +
{{#if:{{{group9|}}}|{{!}}-
 +
{{#if:{{{gtitle9|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{{gtitle9}}}'''
 +
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#if:{{#pos:{{{group9|}}}|subgroup}}|padding:0; border-bottom:0;|}}{{#if:{{{style9|}}}|{{{style9}}}}}" {{!}}
 +
{{{group9}}}<!--
 +
 
 +
--><!-- Row 10 -->
 +
{{#if:{{{group10|}}}|{{!}}-
 +
{{#if:{{{gtitle10|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{{gtitle10}}}'''
 +
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#if:{{#pos:{{{group10|}}}|subgroup}}|padding:0; border-bottom:0;|}}{{#if:{{{style10|}}}|{{{style10}}}}}" {{!}}
 +
{{{group10}}}<!--
 +
 
 +
--><!-- Row 11 -->
 +
{{#if:{{{group11|}}}|{{!}}-
 +
{{#if:{{{gtitle11|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{{gtitle11}}}'''
 +
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#if:{{#pos:{{{group11|}}}|subgroup}}|padding:0; border-bottom:0;|}}{{#if:{{{style11|}}}|{{{style11}}}}}" {{!}}
 +
{{{group11}}}<!--
 +
 
 +
--><!-- Row 12 -->
 +
{{#if:{{{group12|}}}|{{!}}-
 +
{{#if:{{{gtitle12|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{{gtitle12}}}'''
 +
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#if:{{#pos:{{{group12|}}}|subgroup}}|padding:0; border-bottom:0;|}}{{#if:{{{style12|}}}|{{{style12}}}}}" {{!}}
 +
{{{group12}}}<!--
 +
 
 +
--><!-- Row 13 -->
 +
{{#if:{{{group13|}}}|{{!}}-
 +
{{#if:{{{gtitle13|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{{gtitle13}}}'''
 +
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#if:{{#pos:{{{group13|}}}|subgroup}}|padding:0; border-bottom:0;|}}{{#if:{{{style13|}}}|{{{style13}}}}}" {{!}}
 +
{{{group13}}}<!--
 +
 
 +
--><!-- Row 14 -->
 +
{{#if:{{{group14|}}}|{{!}}-
 +
{{#if:{{{gtitle14|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{{gtitle14}}}'''
 +
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#if:{{#pos:{{{group14|}}}|subgroup}}|padding:0; border-bottom:0;|}}{{#if:{{{style14|}}}|{{{style14}}}}}" {{!}}
 +
{{{group14}}}<!--
 +
 
 +
--><!-- End of table -->
 +
}} }} }} }} }} }} }} }} }} }} }} }} }} }}
 +
|}{{#ifeq:{{lc:{{NAMESPACE}}}}|template|[[Category:Navigational templates|{{PAGENAME}}]]|}}</includeonly>

Revision as of 22:25, 20 July 2018