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.) |
mNo edit summary |
||
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 | 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 88: | Line 92: | ||
==Standard layouts and usage notes== | ==Standard layouts 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 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. | ||
{{ | {{col-begin}} | ||
{{ | {{col-2}} | ||
===Games=== | ===Games=== | ||
*Characters | *Characters | ||
**''(subsections for different factions if necessary)'' | **''(subsections for different factions if necessary)'' | ||
Line 106: | Line 109: | ||
**''(Armor permutations + Armor abilities/Equipment, etc. subsections if applicable)'' | **''(Armor permutations + Armor abilities/Equipment, etc. subsections if applicable)'' | ||
;Code: | |||
<pre>{{Featurelist|secondcolumn=title-5 | |||
|title-1=Characters| | |title-1=Characters| | ||
Line 125: | Line 127: | ||
|title-8=Technology and equipment| | |title-8=Technology and equipment| | ||
}}</ | }}</pre> | ||
{{ | {{col-2}} | ||
===Other media=== | ===Other media=== | ||
''This is the standard appearance list layout for all non-game media, e.g. novels, comics, films, in-game [[terminal]]s, etc.'' | ''This is the standard appearance list layout for all non-game media, e.g. novels, comics, films, in-game [[terminal]]s, etc.'' | ||
Line 143: | Line 145: | ||
**''(subsections for different factions if necessary)'' | **''(subsections for different factions if necessary)'' | ||
;Code: | |||
<pre>{{Featurelist|secondcolumn=title-5 | |||
|title-1=Characters| | |title-1=Characters| | ||
Line 162: | Line 163: | ||
|title-8=Technology and equipment| | |title-8=Technology and equipment| | ||
}}</ | }}</pre> | ||
{{Col-end}} | {{Col-end}} | ||
[[Category:Appearance templates]] | [[Category:Appearance templates]] | ||
</noinclude> | </noinclude> |
Revision as of 08:51, October 11, 2016
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
Species
Organizations
|
Vehicles
Equipment and technology
Weapons
|
Standard layouts 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.
Games
{{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| }} |
Other mediaThis is the standard appearance list layout for all non-game media, e.g. novels, comics, films, in-game terminals, etc.
{{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| }} |