- 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 (32 revisions imported) |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:info|{{#invoke:EquipmentPage|info|pagename={{PAGENAME}}}}}}{{#vardefine:wikipedia|{{#invoke:EquipmentPage|wikipedia|pagename={{PAGENAME}}}}}}{{#vardefine:buildable|{{#invoke:EquipmentPage|buildable|pagename={{PAGENAME}}}}}}{{#vardefine:improvable|{{#invoke:EquipmentPage|improvable|pagename={{PAGENAME}}}}}}{{EquipmentInfoKai|{{{1|{{PAGENAME}}}}}}}{{EquipmentCategoriesKai|{{{1|{{PAGENAME}}}}}}} | + | <includeonly>{{#vardefine:info|{{#invoke:EquipmentPage|info|pagename={{{1|{{PAGENAME}}}}}}}}}{{#vardefine:wikipedia|{{#invoke:EquipmentPage|wikipedia|pagename={{{1|{{PAGENAME}}}}}}}}}{{#vardefine:buildable|{{#invoke:EquipmentPage|buildable|pagename={{{1|{{PAGENAME}}}}}}}}}{{#vardefine:improvable|{{#invoke:EquipmentPage|improvable|pagename={{{1|{{PAGENAME}}}}}}}}}{{EquipmentInfoKai|{{{1|{{PAGENAME}}}}}}}{{EquipmentCategoriesKai|{{{1|{{PAGENAME}}}}}}} |
<h2>Introduction</h2> | <h2>Introduction</h2> | ||
− | <p>{{#if:{{#var:info}}|{{#var:info}}|{{{ja|? | + | <p lang="ja">{{#if:{{#var:info}}|{{#var:info}}|{{#if:{{{ja|}}}|{{{ja}}}|?}}}}</p> |
− | <p>''{{{en|? | + | <p>''{{#if:{{{en|}}}|{{{en}}}|?}}''</p> |
<h2>Notes</h2> | <h2>Notes</h2> | ||
'''{{#if:{{#var:buildable}}|Buildable|Unbuildable}}''' | '''{{#if:{{#var:buildable}}|Buildable|Unbuildable}}''' | ||
Line 10: | Line 10: | ||
{{#if:{{#var:improvable}}|<h2>Improvement</h2> | {{#if:{{#var:improvable}}|<h2>Improvement</h2> | ||
{{ImprovementTableKai|{{{1|{{PAGENAME}}}}}|categories=true}}}} | {{ImprovementTableKai|{{{1|{{PAGENAME}}}}}|categories=true}}}} | ||
− | {{#ifexist:{{PAGENAME}}/Bonuses|<h2>Bonuses</h2> | + | {{#ifexist:{{{1|{{PAGENAME}}}}}/Bonuses|<h2>Bonuses</h2> |
− | {{:{{PAGENAME}}/Bonuses}}}} | + | [[Category:Equipment with bonuses]] |
+ | {{:{{{1|{{PAGENAME}}}}}/Bonuses}}}} | ||
{{#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>{{clear}}}}}} | {{{trivia}}}{{#if:{{{collapsed|}}}|</div>{{clear}}}}}} | ||
Line 19: | Line 20: | ||
*{{#var:wikipedia}}}}|{{#if:{{{see also|}}}|<h2>See also</h2> | *{{#var:wikipedia}}}}|{{#if:{{{see also|}}}|<h2>See also</h2> | ||
{{{see also}}}}}}} | {{{see also}}}}}}} | ||
− | {{Equipmentlist}}}}</includeonly><noinclude> | + | {{#if:{{{test|}}}|{{Equipmentlist/Test}}|{{Equipmentlist}}}}}}</includeonly><noinclude> |
Layout template for [[:Category:Player equipment|equipment pages]]. | Layout template for [[:Category:Player equipment|equipment pages]]. | ||
Revision as of 13:47, 19 November 2021
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
- Bonuses section, if
/Bonuses
subpage exists. - Trivia section
- See also section: Wikipedia and other links
- Navbox.
Parameters
- [1]: equipment name,
PAGENAME
is 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:
_info
for ja_wikipedia
for Wikipedia link in optional see also section._buildable
for Buildable/Unbuildable note_improvements
for optional improvement section.
Usage
Full page:
{{Equipment |en = |notes = |trivia = |see also = }}
Or only for the header (from infobox to category tree):
{{Equipment |header = true |en = }} ...