Difference between revisions of "Template:Mission infobox"
("mission-name" to the head) |
(auto displaytitle) |
||
Line 1: | Line 1: | ||
+ | <!-- | ||
+ | |||
+ | // Automatic display title. | ||
+ | // Its value comes from the "mission-name" parameter (so the same name is shown for the title of the infobox, | ||
+ | // displayed title of the page and the mission name in the table). | ||
+ | |||
+ | -->{{#ifeq:{{{DISPLAYTITLE|{{{displaytitle|}}}}}} | off | ||
+ | | {{ns:0}}<!-- Ignore if 'displaytitle' has been set to 'off'. --> | ||
+ | | {{#if:{{{mission-name|}}} | ||
+ | | {{DISPLAYTITLE:{{{displaytitle|{{{DISPLAYTITLE|{{{mission-name|}}}}}}}}}}} | ||
+ | | {{if lang| non-en = {{DISPLAYTITLE:{{common string|{{BASEPAGENAME}}}}}}| en = {{ns:0}}}}<!-- Ignore if 'mission-name' isn't defined. --> | ||
+ | }} | ||
+ | }} | ||
+ | |||
{| class="infobox" width="300px" | {| class="infobox" width="300px" | ||
! colspan="2" style="background-color:#F3A957;" | {{{mission-name|{{{map-name|{{{NAME|{{{name|{{BASEPAGENAME}}}}}}}}}}}}}} | ! colspan="2" style="background-color:#F3A957;" | {{{mission-name|{{{map-name|{{{NAME|{{{name|{{BASEPAGENAME}}}}}}}}}}}}}} |
Revision as of 09:39, 25 August 2012
Mission infobox | |
---|---|
Basic Information | |
Name | {{{mission-name}}} |
Map | {{{mission-map}}} |
Waves | {{{mission-waves}}} |
Challenge mode | {{{mission-mode}}} |
Difficulty | {{{mission-diff}}} |
Starting money | {{{mission-startingmoney}}} |
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Mission infobox/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: en, pl, ru, zh-hant (add) |
This needs to be redone in a way that's not crappy like mine.