Template:Featurelist: Difference between revisions

From Halopedia, the Halo wiki

m (Reverted edits by Porplemontage (talk) to last revision by Spartacus)
Tag: Rollback
No edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{secondcolumn|}}}|{{col-begin}}
<includeonly>{{#if:{{{secondcolumn|}}}|{{col-begin|class=featurelist}}
{{col-2}}|}}{{#if:{{{title-2|}}}|<div class="{{#switch:{{{state|}}}|plain=mw-collapsible|#default=mw-collapsible mw-collapsed}}">
{{col-2}}|}}{{#if:{{{title-2|}}}|<div class="{{#switch:{{{state|}}}|plain=mw-collapsible|#default=mw-collapsible mw-collapsed}}">
=== {{{title-1|''The life and death of lorem ipsum''}}} ===
=== {{{title-1|''The life and death of lorem ipsum''}}} ===

Revision as of 21:06, March 18, 2019

About

This template supports up to twelve Level 3 headings (=== TITLE ===). To add more headings (up to twelve), simply add in |title-#=. By default, the list is collapsed (as indicated by the hyperlinked [hide]. To remove this, place in |state=plain.

{{Featurelist|secondcolumn=
|title-1=
|
}}


Creating a second column

To create a second column, simply specify which |title-#= will be located on the first row of the second column. For example, if there are four sections and title-4 is on the first row of the second column, then specify the following in the template: |secondcolumn=title-4. Take the following code as an example:

{{Featurelist|secondcolumn=title-4|title-1=Characters|
*Cortana (Data chip only)
*John-117
*Locke
|title-2=Species|
*Forerunner (Technology only)
*Human
*Sangheili
|title-3=Organizations|
*ONI
*UNSC
*Covenant
*Cerberus
|title-4=Vehicles|
*D79-TC Pelican
*UNSC Infinity
|title-5=Equipment and technology|
*Data crystal chip
*MJOLNIR Powered Assault Armor
|title-6=Weapons|
*BR85 Heavy Barrel Service Rifle
*M6H magnum
*MA5D Individual Combat Weapon System
}}


It will create something similar to the following:


Characters

  • Cortana (Data chip only)
  • John-117
  • Locke

Species

  • Forerunner (Technology only)
  • Human
  • Sangheili

Organizations

  • ONI
  • UNSC
  • Covenant
  • Cerberus

Vehicles

  • D79-TC Pelican
  • UNSC Infinity

Equipment and technology

  • Data crystal chip
  • MJOLNIR Powered Assault Armor

Weapons

  • BR85 Heavy Barrel Service Rifle
  • M6H magnum
  • MA5D Individual Combat Weapon System




Standard layout and usage notes

The following is the standard layout to follow when using the template in appearance lists. Note that modifications may sometimes be made to the standard format if deemed necessary (e.g. sections with no entries may be omitted). Additionally, the template may also be used for other purposes in which this particular layout may not apply.

  • Characters
    • (subsections for different factions if necessary)
  • Species
  • Organizations
  • Locations
  • Events
  • Weapons
    • (subsections for different factions if necessary)
  • Vehicles
    • (subsections for different factions if necessary)
  • Technology and equipment
    • (subsections for different factions if necessary)
  • Miscellaneous (optional)
Code
{{Featurelist|secondcolumn=title-5
|title-1=Characters|

|title-2=Species|

|title-3=Organizations|

|title-4=Locations|

|title-5=Events|

|title-6=Weapons|

|title-7=Vehicles|

|title-8=Technology and equipment|

}}