Template:Navbox: Difference between revisions

From Redemption Wiki
Jump to navigation Jump to search
>Default
mNo edit summary
>Terrel8123
No edit summary
 
Line 1: Line 1:
{| style="width:100%; margin-top:1em; border:1px solid #999; font-size:90%; text-align:center;"
<includeonly>{| width="100%" class="nowraplinks {{#ifeq:{{lc:{{{subgroup|}}}}}|yes|navbox-subgroup|navbox {{#ifeq:{{{state|}}}|plain||collapsible {{#if:{{{state|}}}|{{{state}}}|autocollapse}}}}}}" cellspacing=0 style="{{#ifeq:{{lc:{{{collapsible|}}}}}|yes|border:0; margin-top:-2px;|}}{{#if:{{{style|}}}|{{{style}}}|}}" <!--
|-
 
! style="background-color:#3366CC; color:#FFFFFF; padding:0.2em 0.5em;" nowrap="nowrap" | {{{header}}}
--><!-- 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>}}}}<!--
| style="padding:0.2em 0.5em;" | {{{body}}}
 
|}<noinclude>
--><!-- Row 1 -->
{{documentation}}</noinclude>
{{#if:{{{group1|}}}|{{!}}-
{{#if:{{{gtitle1|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} <span style="color:white;">'''{{{gtitle1}}}'''</span>
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#ifeq:{{lc:{{{gtype1|}}}}}|subgroup|padding:0; border-bottom:0;|}}{{#if:{{{style1|}}}|{{{style1}}}}}" {{!}}
{{{group1}}}<!--
 
--><!-- Row 2 -->
{{#if:{{{group2|}}}|{{!}}-
{{#if:{{{gtitle2|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{Color|white|{{{gtitle2}}}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#ifeq:{{lc:{{{gtype2|}}}}}|subgroup|padding:0; border-bottom:0;|}}{{#if:{{{style2|}}}|{{{style2}}}}}" {{!}}
{{{group2}}}<!--
 
--><!-- Row 3 -->
{{#if:{{{group3|}}}|{{!}}-
{{#if:{{{gtitle3|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{Color|white|{{{gtitle3}}}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#ifeq:{{lc:{{{gtype3|}}}}}|subgroup|padding:0; border-bottom:0;|}}{{#if:{{{style3|}}}|{{{style3}}}}}" {{!}}
{{{group3}}}<!--
 
--><!-- Row 4 -->
{{#if:{{{group4|}}}|{{!}}-
{{#if:{{{gtitle4|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{Color|white|{{{gtitle4}}}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#ifeq:{{lc:{{{gtype4|}}}}}|subgroup|padding:0; border-bottom:0;|}}{{#if:{{{style4|}}}|{{{style4}}}}}" {{!}}
{{{group4}}}<!--
 
--><!-- Row 5 -->
{{#if:{{{group5|}}}|{{!}}-
{{#if:{{{gtitle5|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{Color|white|{{{gtitle5}}}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#ifeq:{{lc:{{{gtype5|}}}}}|subgroup|padding:0; border-bottom:0;|}}{{#if:{{{style5|}}}|{{{style5}}}}}" {{!}}
{{{group5}}}<!--
 
--><!-- Row 6 -->
{{#if:{{{group6|}}}|{{!}}-
{{#if:{{{gtitle6|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{Color|white|{{{gtitle6}}}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#ifeq:{{lc:{{{gtype6|}}}}}|subgroup|padding:0; border-bottom:0;|}}{{#if:{{{style6|}}}|{{{style6}}}}}" {{!}}
{{{group6}}}<!--
 
--><!-- Row 7 -->
{{#if:{{{group7|}}}|{{!}}-
{{#if:{{{gtitle7|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{Color|white|{{{gtitle7}}}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#ifeq:{{lc:{{{gtype7|}}}}}|subgroup|padding:0; border-bottom:0;|}}{{#if:{{{style7|}}}|{{{style7}}}}}" {{!}}
{{{group7}}}<!--
 
--><!-- Row 8 -->
{{#if:{{{group8|}}}|{{!}}-
{{#if:{{{gtitle8|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{Color|white|{{{gtitle8}}}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#ifeq:{{lc:{{{gtype8|}}}}}|subgroup|padding:0; border-bottom:0;|}}{{#if:{{{style8|}}}|{{{style8}}}}}" {{!}}
{{{group8}}}<!--
 
--><!-- Row 9 -->
{{#if:{{{group9|}}}|{{!}}-
{{#if:{{{gtitle9|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{Color|white|{{{gtitle9}}}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#ifeq:{{lc:{{{gtype9|}}}}}|subgroup|padding:0; border-bottom:0;|}}{{#if:{{{style9|}}}|{{{style9}}}}}" {{!}}
{{{group9}}}<!--
 
--><!-- Row 10 -->
{{#if:{{{group10|}}}|{{!}}-
{{#if:{{{gtitle10|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{Color|white|{{{gtitle10}}}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#ifeq:{{lc:{{{gtype10|}}}}}|subgroup|padding:0; border-bottom:0;|}}{{#if:{{{style10|}}}|{{{style10}}}}}" {{!}}
{{{group10}}}<!--
 
--><!-- Row 11 -->
{{#if:{{{group11|}}}|{{!}}-
{{#if:{{{gtitle11|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{Color|white|{{{gtitle11}}}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#ifeq:{{lc:{{{gtype11|}}}}}|subgroup|padding:0; border-bottom:0;|}}{{#if:{{{style11|}}}|{{{style11}}}}}" {{!}}
{{{group11}}}<!--
 
--><!-- Row 12 -->
{{#if:{{{group12|}}}|{{!}}-
{{#if:{{{gtitle12|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{Color|white|{{{gtitle12}}}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#ifeq:{{lc:{{{gtype12|}}}}}|subgroup|padding:0; border-bottom:0;|}}{{#if:{{{style12|}}}|{{{style12}}}}}" {{!}}
{{{group12}}}<!--
 
--><!-- Row 13 -->
{{#if:{{{group13|}}}|{{!}}-
{{#if:{{{gtitle13|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{Color|white|{{{gtitle13}}}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#ifeq:{{lc:{{{gtype13|}}}}}|subgroup|padding:0; border-bottom:0;|}}{{#if:{{{style13|}}}|{{{style13}}}}}" {{!}}
{{{group13}}}<!--
 
--><!-- Row 14 -->
{{#if:{{{group14|}}}|{{!}}-
{{#if:{{{gtitle14|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{Color|white|{{{gtitle14}}}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#ifeq:{{lc:{{{gtype14|}}}}}|subgroup|padding:0; border-bottom:0;|}}{{#if:{{{style14|}}}|{{{style14}}}}}" {{!}}
{{{group14}}}<!--
 
--><!-- Row 15 -->
{{#if:{{{group15|}}}|{{!}}-  
{{#if:{{{gtitle15|}}}|{{!}} width="{{{titlewidth|15%}}}" class="navbox-group" {{!}} '''{{Color|white|{{{gtitle15}}}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" style="{{#ifeq:{{lc:{{{gtype15|}}}}}|subgroup|padding:0; border-bottom:0;|}}{{#if:{{{style15|}}}|{{{style15}}}}}" {{!}}
{{{group15}}}<!--
 
--><!-- End of table -->
}} }} }} }} }} }} }} }} }} }} }} }} }} }} }} <!-- Number of closed brackets = Number of rows = 15 --><!--
 
--><!-- Table footer; hidden for sub-groups or if blank -->
{{#ifeq:{{lc:{{{subgroup|}}}}}||{{#if:{{{footer|}}}|{{!}}-
! colspan=2 class="navbox-footer" style="{{#if:{{{fstyle|}}}|{{{fstyle}}}}}" {{!}}
{{{footer}}} }}}}
|}{{#ifeq:{{lc:{{NAMESPACE}}}}|template|[[Category:Navigational templates|{{PAGENAME}}]]|}}{{#ifeq:{{NAMESPACE}}|Template|{{#ifeq:{{BASEPAGENAME}}|Navbox||{{#ifeq:{{lc:{{{subgroup}}}}}|yes||{{#ifeq:{{lc:{{{collapsible}}}}}|yes||{{#ifeq:{{lc:{{{doc}}}}}|no||{{Navbox/doc}}}}}}}}}}}}</includeonly><noinclude>{{/doc}}</noinclude>

Latest revision as of 08:52, 13 June 2015

Description
This template is used to do something.
Syntax
Type {{templatename}} somewhere.
Sample output
{{templatename|foo}} gives...
Template:Templatename