Template:Featurelist: Difference between revisions

From Halopedia, the Halo wiki

(I juggled the idea of dedicated NPC/AI sections back and forth a lot but I believe this is the best solution.)
(This dual format is the second worst idea I've ever had (luckily it's not being used much). Better solution incoming, soon™)
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#if:{{{secondcolumn|}}}|
<includeonly>{{#if:{{{secondcolumn|}}}|{{col-begin}}
{{col-begin}}
{{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''}}} ===
Line 46: Line 45:
{{{9|{{{content|Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas mattis pretium ullamcorper. Vivamus rutrum luctus interdum. Nulla a bibendum felis. Duis in dolor tortor. Aliquam commodo sem vitae malesuada dictum. Proin dignissim tellus lectus, quis porttitor odio iaculis in. Vivamus interdum ante sed iaculis tempus. Sed in nulla molestie, venenatis ipsum sed, interdum nisi. Maecenas mauris libero, vestibulum nec lectus vel, cursus elementum quam. Nullam id velit quis sapien tincidunt porta ac vel augue. Cras molestie felis ut quam ultrices laoreet. Fusce ut eros mauris.
{{{9|{{{content|Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas mattis pretium ullamcorper. Vivamus rutrum luctus interdum. Nulla a bibendum felis. Duis in dolor tortor. Aliquam commodo sem vitae malesuada dictum. Proin dignissim tellus lectus, quis porttitor odio iaculis in. Vivamus interdum ante sed iaculis tempus. Sed in nulla molestie, venenatis ipsum sed, interdum nisi. Maecenas mauris libero, vestibulum nec lectus vel, cursus elementum quam. Nullam id velit quis sapien tincidunt porta ac vel augue. Cras molestie felis ut quam ultrices laoreet. Fusce ut eros mauris.
}}}}}}</div></div>}}
}}}}}}</div></div>}}
{{#if:{{{secondcolumn|}}}|{{col-end}}}}<noinclude>
{{#switch:{{{secondcolumn|}}}|title-10={{col-2}}|#default=}}{{#if:{{{title-10|}}}|<div class="{{#switch:{{{state|}}}|plain=mw-collapsible|#default=mw-collapsible mw-collapsed}}">
=== {{{title-10|''The life and death of lorem ipsum''}}} ===
<div class="mw-collapsible-content" style="border:1px solid #DDD; padding:0 4px;">
{{{10|{{{content|Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas mattis pretium ullamcorper. Vivamus rutrum luctus interdum. Nulla a bibendum felis. Duis in dolor tortor. Aliquam commodo sem vitae malesuada dictum. Proin dignissim tellus lectus, quis porttitor odio iaculis in. Vivamus interdum ante sed iaculis tempus. Sed in nulla molestie, venenatis ipsum sed, interdum nisi. Maecenas mauris libero, vestibulum nec lectus vel, cursus elementum quam. Nullam id velit quis sapien tincidunt porta ac vel augue. Cras molestie felis ut quam ultrices laoreet. Fusce ut eros mauris.
}}}}}}</div></div>}}
{{#if:{{{secondcolumn|}}}|{{col-end}}}}</includeonly><noinclude>
== About ==
== About ==
This template supports up to nine Level-3 headings (<code>=== TITLE ===</code>). To add more headings (up to nine), simply add in <code>|title-#=</code>. By default, the list is collapsed. To remove this, place in <code>|state=plain</code>.
This template supports up to ten [[mw:Help:Formatting#Level_3|Level 3 headings]] (<code>=== TITLE ===</code>). To add more headings (up to ten), simply add in <code>|title-#=</code>. By default, the list is collapsed (as indicated by the hyperlinked <code><nowiki>[hide]</nowiki></code>. To remove this, place in <code>|state=plain</code>.


<pre>
<pre>
Line 86: Line 90:
}}
}}


==Standard layouts and usage notes==
==Standard layout and usage notes==
The following are the standard layouts to follow when using the template in appearance lists. Note that modifications may sometimes be made to these standard formats if deemed necessary (e.g. sections with no entries may be omitted). Additionally, the template may also be used for other purposes in which these layouts may not apply.
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.
{{Col-begin}}
{{Col-2}}
===Games===
 
*Characters
**''(subsections for different factions if necessary)''
*Species and entities
**''(this section is used to list both enemies and friendly AI character classes; Forerunner constructs are to be listed as well.)''
*Organizations
*Locations
*Events
*Weapons
**''(subsections for each faction + usable and unusable weapons)''
*Vehicles
**''(subsections for each faction + usable and unusable weapons)''
*Technology and equipment
**''(Armor permutations + Armor abilities/Equipment, etc. subsections if applicable)''
 
'''Code:'''
 
<code><nowiki>{{Featurelist|secondcolumn=title-5
|title-1=Characters|
 
|title-2=Species and entities|
 
|title-3=Organizations|
 
|title-4=Locations|
 
|title-5=Events|
 
|title-6=Weapons|
 
|title-7=Vehicles|
 
|title-8=Technology and equipment|
 
}}</nowiki></code>
{{Col-2}}
===Other media===
''This is the standard appearance list layout for all non-game media, e.g. novels, comics, films, in-game [[terminal]]s, etc.''


*Characters
*Characters
Line 142: Line 105:
*Technology and equipment
*Technology and equipment
**''(subsections for different factions if necessary)''
**''(subsections for different factions if necessary)''
*Miscellaneous ''(optional)''


'''Code:'''
;Code:
 
<pre>{{Featurelist|secondcolumn=title-5
<code><nowiki>{{Featurelist|secondcolumn=title-5
|title-1=Characters|
|title-1=Characters|


Line 162: Line 125:
|title-8=Technology and equipment|
|title-8=Technology and equipment|


}}</nowiki></code>
}}</pre>
{{Col-end}}
 
[[Category:Appearance templates]]
[[Category:Appearance templates]]
</noinclude>
</noinclude>

Revision as of 02:31, February 27, 2017

About

This template supports up to ten Level 3 headings (=== TITLE ===). To add more headings (up to ten), 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. 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|

}}