Template:Navbox: Difference between revisions

From HorizonXI Wiki
(added special layout option where group 1 header does not exist)
(bugfix where edit buttons would display incorrectly)
 
Line 2: Line 2:
{| class="navbox navbox-gutter mw-collapsible horizontal-list alternate-row-shades {{{cssclasses|navbox-default-color}}}" style="border-collapse: separate; border-spacing: 2px; padding: 0; text-align: center;"
{| class="navbox navbox-gutter mw-collapsible horizontal-list alternate-row-shades {{{cssclasses|navbox-default-color}}}" style="border-collapse: separate; border-spacing: 2px; padding: 0; text-align: center;"
|-  
|-  
! colspan="{{#if:{{{group1|}}}|2|1}}" | <span class="navbox-vde plainlinks">[https://horizonffxi.wiki/Template:{{{template}}} v] &bull; [https://horizonffxi.wiki/Template:{{{template}}}?action=edit e]</span>{{{title}}}
! colspan="{{#if:{{{group1|}}}|2|1}}" | <span class="navbox-vde plainlinks">[https://horizonffxi.wiki/Template:{{#replace:{{{template}}}| |_}} v] &bull; [https://horizonffxi.wiki/Template:{{#replace:{{{template}}}| |_}}?action=edit e]</span>{{{title}}}
|- {{#if:{{{cssclasses1|}}}|class="{{{cssclasses1}}}"}}
|- {{#if:{{{cssclasses1|}}}|class="{{{cssclasses1}}}"}}
{{#if:{{{group1|}}} |
{{#if:{{{group1|}}} |

Latest revision as of 19:29, 19 July 2025

Documentation

{{Navbox
| title = 
| template = 
| cssclasses = 
| group1 = 
| list1 =
| cssclasses1 = 
.
.
.
}}
  • title: title of the navbox
  • template: name of the template (for correct edit links on the box)
  • cssclasses: css classes on the box. (Mainly used for colors. Note: the box is a html table, therefore classes that assign colors to table elements is necessary)
  • group1: header of group 1
  • list1: elements of group 1, preferably as a list.
  • cssclasses1: Optional: css classes specifically on the row of group1/list1. (Mainly used for hiding ooe content with the appropriate classes, but can also be used in special cases for e.g. coloring.)
    Use group2...group16 with list2... list16 and cssclasses2... cssclasses16 for up to 16 entries.

Examples

{{Navbox
| title = [[:Category:ENM|ENM Navigation]]
| template = Enms
| cssclasses = bcnm-table
| group1 = Level 30
| list1 =
* [[You Are What You Eat]]
* [[Simulant]]
* [[Playing Host]]
| group2 = Level 40
| list2 =
* [[Fire in the Sky]]
* [[Bad Seed]]
* [[Test Your Mite]]
| group3 = Level 50
| list3 =
* [[Bugard in the Clouds]]
* [[Beloved of the Atlantes]]
* [[Pulling the Plug]]
| group4 = Level 60
| list4 =
* [[Pulling the Strings]]
* [[Automaton Assault]]
| group5 = Level 75
| list5 =
* [[Like the Wind]]
* [[When Hell Freezes Over]]
* [[Sheep in Antlion's Clothing]]
* [[Brothers]]
* [[Follow the White Rabbit]]
* [[Holy Cow]]
* [[Bionic Bug]]
* [[Shell We Dance?]]
* [[Totentanz]]
}}


{{Navbox
| title = [[:Category:Battlefields|Battlefields]]
| template = BattlefieldNavbox
| list1 = 
*[[:Category:BCNM|BCNM]]
*[[:Category:KSNM|KSNM]]
*[[:Category:ENM|ENM]]
*[[:Category:HENM|HENM]]{{changes}}
}}