Template:Navbox: Difference between revisions
From HorizonXI Wiki
No edit summary |
(testing replacing the lua navbox with a mediawiki native navbox design) |
||
| Line 1: | Line 1: | ||
{{#invoke:Navbox|main}}<noinclude> | <includeonly><onlyinclude> | ||
'''Used on [[Global Lua Modules/Navbox]]'''[[Category:Templates]]</noinclude> | {| 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="3" | <span class="navbox-vde plainlinks">[https://horizonffxi.wiki/Template:{{{template}}} v] • [https://horizonffxi.wiki/Template:{{{template}}}?action=edit e]</span>{{{title}}} | |||
|- | |||
! width=100px style="text-align: right; padding-right: 8px; padding-left: 8px;" | {{{group1}}} | |||
| | |||
{{{list1}}} | |||
{{#if: {{{group2|}}}{{{list2|}}}| | |||
<nowiki> </nowiki> | |||
{{!}}- | |||
! style="text-align: right; padding-right: 8px; padding-left: 8px;" {{!}} {{{group2}}} | |||
{{!}} | |||
{{{list2}}} | |||
<!-- | |||
-->{{#if: {{{group3|}}}{{{list3|}}}| | |||
<nowiki> </nowiki> | |||
{{!}}- | |||
! style="text-align: right; padding-right: 8px; padding-left: 8px;" {{!}} {{{group3}}} | |||
{{!}} | |||
{{{list3}}} | |||
<!-- | |||
-->{{#if: {{{group4|}}}{{{list4|}}}| | |||
<nowiki> </nowiki> | |||
{{!}}- | |||
! style="text-align: right; padding-right: 8px; padding-left: 8px;" {{!}} {{{group4}}} | |||
{{!}} | |||
{{{list4}}} | |||
<!-- | |||
-->{{#if: {{{group5|}}}{{{list5|}}}| | |||
<nowiki> </nowiki> | |||
{{!}}- | |||
! style="text-align: right; padding-right: 8px; padding-left: 8px;" {{!}} {{{group5}}} | |||
{{!}} | |||
{{{list5}}} | |||
<!-- | |||
-->{{#if: {{{group6|}}}{{{list6|}}}| | |||
<nowiki> </nowiki> | |||
{{!}}- | |||
! style="text-align: right; padding-right: 8px; padding-left: 8px;" {{!}} {{{group6}}} | |||
{{!}} | |||
{{{list6}}} | |||
<!-- | |||
-->{{#if: {{{group7|}}}{{{list7|}}}| | |||
<nowiki> </nowiki> | |||
{{!}}- | |||
! style="text-align: right; padding-right: 8px; padding-left: 8px;" {{!}} {{{group7}}} | |||
{{!}} | |||
{{{list7}}} | |||
<!-- | |||
-->{{#if: {{{group8|}}}{{{list8|}}}| | |||
<nowiki> </nowiki> | |||
{{!}}- | |||
! style="text-align: right; padding-right: 8px; padding-left: 8px;" {{!}} {{{group8}}} | |||
{{!}} | |||
{{{list8}}} | |||
<!-- | |||
-->{{#if: {{{group9|}}}{{{list9|}}}| | |||
<nowiki> </nowiki> | |||
{{!}}- | |||
! style="text-align: right; padding-right: 8px; padding-left: 8px;" {{!}} {{{group9}}} | |||
{{!}} | |||
{{{list9}}} | |||
<!-- | |||
-->{{#if: {{{group10|}}}{{{list10|}}}| | |||
<nowiki> </nowiki> | |||
{{!}}- | |||
! style="text-align: right; padding-right: 8px; padding-left: 8px;" {{!}} {{{group10}}} | |||
{{!}} | |||
{{{list10}}} | |||
<!-- | |||
-->{{#if: {{{group11|}}}{{{list11|}}}| | |||
<nowiki> </nowiki> | |||
{{!}}- | |||
! style="text-align: right; padding-right: 8px; padding-left: 8px;" {{!}} {{{group11}}} | |||
{{!}} | |||
{{{list11}}} | |||
<!-- | |||
-->{{#if: {{{group12|}}}{{{list12|}}}| | |||
<nowiki> </nowiki> | |||
{{!}}- | |||
! style="text-align: right; padding-right: 8px; padding-left: 8px;" {{!}} {{{group12}}} | |||
{{!}} | |||
{{{list12}}} | |||
<!-- | |||
-->{{#if: {{{group13|}}}{{{list13|}}}| | |||
<nowiki> </nowiki> | |||
{{!}}- | |||
! style="text-align: right; padding-right: 8px; padding-left: 8px;" {{!}} {{{group13}}} | |||
{{!}} | |||
{{{list13}}} | |||
<!-- | |||
-->{{#if: {{{group14|}}}{{{list14|}}}| | |||
<nowiki> </nowiki> | |||
{{!}}- | |||
! style="text-align: right; padding-right: 8px; padding-left: 8px;" {{!}} {{{group14}}} | |||
{{!}} | |||
{{{list14}}} | |||
<!-- | |||
-->{{#if: {{{group15|}}}{{{list15|}}}| | |||
<nowiki> </nowiki> | |||
{{!}}- | |||
! style="text-align: right; padding-right: 8px; padding-left: 8px;" {{!}} {{{group15}}} | |||
{{!}} | |||
{{{list15}}} | |||
<!-- | |||
-->{{#if: {{{group16|}}}{{{list16|}}}| | |||
<nowiki> </nowiki> | |||
{{!}}- | |||
! style="text-align: right; padding-right: 8px; padding-left: 8px;" {{!}} {{{group16}}} | |||
{{!}} | |||
{{{list16}}} | |||
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | |||
|} | |||
</onlyinclude></includeonly> | |||
<!--{{#invoke:Navbox|main}}--><noinclude> | |||
<!--'''Used on [[Global Lua Modules/Navbox]]'''-->[[Category:Templates]]</noinclude> | |||
==Documentation== | |||
<pre> | |||
{{Navbox | |||
| title = | |||
| template = | |||
| cssclasses = | |||
| group1 = | |||
| list1 = | |||
. | |||
. | |||
. | |||
}} | |||
</pre> | |||
*'''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. <br/>Use '''group2'''...'''group16''' with '''list2'''... '''list16''' for up to 16 entries. | |||
===Examples=== | |||
<pre>{{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]] | |||
}} | |||
</pre> | |||
{{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]] | |||
}} | |||
Revision as of 18:17, 14 July 2025
Documentation
{{Navbox
| title =
| template =
| cssclasses =
| group1 =
| list1 =
.
.
.
}}
- 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.
Use group2...group16 with list2... list16 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]]
}}
| ENM Navigation | ||
|---|---|---|
| Level 30 |
| |
| Level 40 |
| |
| Level 50 |
| |
| Level 60 |
| |
| Level 75 | ||
