Welcome to Assassin's Creed Wiki! Log in and join the community.
Template:Navbox: Difference between revisions
Jump to navigation
Jump to search
imported>Soranin This is a small attempt to fix what UCP broke, I'm quite ready to undo it if needed, but i can't test this just on my sandbox :/ |
imported>Soranin Will this fix it? |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div></div>|none=|#default=<nowiki/> | {{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div></div>|none=|#default=<nowiki/> | ||
{{{!}} class=" | {{{!}} class="navbox" cellspacing="0" style="{{{bodystyle|}}};{{{style|}}}" | ||
{{!}}- | {{!}}- | ||
{{!}} 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|}}};" <!-- | ||
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 =
}}