Welcome to Assassin's Creed Wiki! Log in and join the community.

Template:Navbox: Difference between revisions

From the Assassin's Creed Wiki
Jump to navigation Jump to search
imported>Jasca Ducato
m Colour testing
imported>Soranin
Will this fix it?
 
(7 intermediate revisions by 4 users not shown)
Line 3: Line 3:
{{!}}-
{{!}}-
{{!}} style="padding:0px;" {{!}} }}
{{!}} style="padding:0px;" {{!}} }}
{{{!}} cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|#default=collapsible collapsed {{#if:{{{state|}}}|{{{state|}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|#default=" style="width:100%;background:transparent;}};{{{innerstyle|}}};" <!--
{{{!}} cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|#default=mw-collapsible mw-collapsed {{#if:{{{state|}}}|{{{state|}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|#default=" style="width:100%;background:transparent;}};{{{innerstyle|}}};" <!--




Line 10: Line 10:
{{!}}- {{#if:{{{titlegroup|}}}|<nowiki/>
{{!}}- {{#if:{{{titlegroup|}}}|<nowiki/>
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}" {{!}} {{{titlegroup|}}}
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}" {{!}} {{{titlegroup|}}}
! style="border-top:2px solid #af8612;width:100%;|<nowiki/>
! style="border-top:2px solid #fdfdfd;width:100%;|<nowiki/>
! style="}}{{{basestyle|}}};{{{titlestyle|}}}" colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}} class="navbox-title" {{!}} {{#if:{{#switch:{{{navbar|}}}|plain|off=1}} {{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}| {{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}| {{#ifeq:{{{state|}}}|plain||<div style="float:left; width:6em;text-align:left;">&nbsp;</div>}}}}| <div style="float:left; width:6em;text-align:left;"> {{navbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}} </div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}}} <span style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"> {{{title}}}</span> }}<!--
! style="}}{{{basestyle|}}};{{{titlestyle|}}}" colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}} class="navbox-title" {{!}} {{#if:{{#switch:{{{navbar|}}}|plain|off=1}} {{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}| {{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}| {{#ifeq:{{{state|}}}|plain||<div style="float:left; width:6em;text-align:left;">&nbsp;</div>}}}}| <div style="float:left; width:6em;text-align:left;"> {{navbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}} </div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}}} <span style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"> {{{title}}}</span> }}<!--


Line 209: Line 209:


==Usage==
==Usage==
Template:Navbox is a general purpose navigation template. Colours are fully customisable.
Template:Navbox is a general purpose navigation template. Colors are fully customisable.
<pre>
<pre>
{{Navbox
{{Navbox
Line 224: Line 224:


|group3    =  
|group3    =  
|list3      =
|list3      =  
...
...
|group20    =  
|group20    =  
Line 238: Line 238:
|titlestyle = background: #
|titlestyle = background: #
|groupstyle = background: #
|groupstyle = background: #
|group1    =
|list1      =
{{Navbox subgroup
{{Navbox subgroup
|groupstyle = background: #
|group1    =  
|group1    =  
|list1      =  
|list1      =  


|group2    =  
|group2    =  
|list2      =
|list2      =  
}}
}}
...
...

Latest revision as of 20:08, 22 October 2020

Usage[edit source]

Template:Navbox is a general purpose navigation template. Colors are fully customisable.

{{Navbox
|navbar     = off
|title      = 
|style      = background: transparent;
|titlestyle = background: #
|groupstyle = background: #
|group1     = 
|list1      =

|group2     = 
|list2      = 

|group3     = 
|list3      = 
...
|group20    = 
|list20     = 
}}

If you wish to include subgroups, use the following code

{{Navbox
|navbar     = off
|title      = 
|style      = background: transparent;
|titlestyle = background: #
|groupstyle = background: #
|group1     = 
|list1      = 
{{Navbox subgroup
|groupstyle = background: #
|group1     = 
|list1      = 

|group2     = 
|list2      = 
}}
...
|group20    = 
|list20     = 
}}