- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Difference between revisions of "Template:Equipment"
Jump to navigation
Jump to search
m |
|||
| Line 12: | Line 12: | ||
{{#if:{{{trivia|}}}|<h2>Trivia</h2>{{#if:{{{collapsed|}}}|<div class="mw-collapsible mw-collapsed">}} | {{#if:{{{trivia|}}}|<h2>Trivia</h2>{{#if:{{{collapsed|}}}|<div class="mw-collapsible mw-collapsed">}} | ||
{{{trivia}}}{{#if:{{{collapsed|}}}|</div>}}}} | {{{trivia}}}{{#if:{{{collapsed|}}}|</div>}}}} | ||
| − | {{#if:{{{see also|}}}|<h2>See also</h2> | + | {{#if:{{#var:wikipedia}}|{{#if:{{{see also|}}}|<h2>See also</h2> |
| − | {{# | + | *[[wikipedia:{{#var:wikipedia}}|{{#var:wikipedia}} (Wikipedia)]] |
| − | {{{see also}}}|{{{see also | + | {{{see also}}} |
| − | {{Equipmentlist}}}}}}</includeonly><noinclude> | + | {{Equipmentlist}}|*[[wikipedia:{{#var:wikipedia}}|{{#var:wikipedia}} (Wikipedia)]] |
| + | {{Equipmentlist}}}}|{{#if:{{{see also|}}}|<h2>See also</h2> | ||
| + | {{{see also}}} | ||
| + | {{Equipmentlist}}}}}}}}</includeonly><noinclude> | ||
Layout template for [[:Category:Player equipment|equipment pages]]. | Layout template for [[:Category:Player equipment|equipment pages]]. | ||
Revision as of 15:59, 27 October 2017
Layout template for equipment pages.
The general layout that can be generated is:
- Infobox
- Automatic categories
- Introduction section: Japanese and English descriptions
- Notes section: Buildable/Unbuildable note, category trees, notes text, section clear
- Improvement section if equipment is improvable
- Trivia section
- See also section: Wikipedia and other links
- Navbox.
Parameters
- [1]: equipment name,
PAGENAMEis used by default. - ja: Japanese description of the equipment, defaults to
_info(api_info) from equipment data module or to?when there is no_info. - en: English description of the equipment, defaults to
?. - notes: text in notes section.
- trivia : text in optional trivia section.
- collapsed: set to have collapsed trivia section (e.g., for long write-ups).
- see also: text in optional see also section.
- header: set to ignore and not generate anything after category tree (notes text and clear, improvement, trivia, see also sections, navbox).
Lua parameters
The following equipment data module fields are used:
_infofor ja_wikipediafor Wikipedia link_buildablefor Buildable/Unbuildable note_improvementsfor optional improvement section.
Usage
Full page:
{{EquipmentPage
|en =
|notes =
|trivia =
|see also =
}}
Or only for the header (from infobox to category tree):
{{EquipmentPage
|header = true
|en =
}}
...