Difference between revisions of "Template:MapItems"
From QWiki
m (Overwriting old MapItems with this fresh one + adding doc) |
m (Fix) |
||
| Line 21: | Line 21: | ||
!style="border-right:1px solid #ddd;background-color:#eaecf0;width:30px;padding:5px 10px 5px 10px;margin:0px;font-weight:normal;"|{{abbr|SSG|Super Shotgun}} | !style="border-right:1px solid #ddd;background-color:#eaecf0;width:30px;padding:5px 10px 5px 10px;margin:0px;font-weight:normal;"|{{abbr|SSG|Super Shotgun}} | ||
|- style="height:30px;border-bottom:1px solid #ddd;" | |- style="height:30px;border-bottom:1px solid #ddd;" | ||
| − | {{#ifeq: {{{quad|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{quad|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{quad|}}}}} | + | {{#ifeq: {{{quad|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{#if:{{{quad}}}|{{{quad}}}|0}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{quad|}}}}} |
{{#ifeq: {{{ring|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{ring|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{ring|}}}}} | {{#ifeq: {{{ring|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{ring|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{ring|}}}}} | ||
{{#ifeq: {{{pent|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{pent|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{pent|}}}}} | {{#ifeq: {{{pent|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{pent|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{pent|}}}}} | ||
Revision as of 09:10, 20 October 2020
Documentation (view - edit)
This template is used on maps pages to clearly show what items are available.
Example
The code:
{{MapItems
|quad=1
|ring=
|pent=0
|hp100=2
|ra=2
|ya=
|ga=1
|lg=0
|rl=2
|gl=1
|sng=1
|ng=1
|ssg=3
}}
gives us:
| Powerups | Armor | Weapons | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Quad | Ring | Pent | MH | RA | YA | GA | LG | RL | GL | SNG | NG | SSG | ||
| 1 | 0 | 2 | 2 | 1 | 0 | 2 | 1 | 1 | 1 | 3 | ||||
Note
Values can be left empty, or set to 0 - it will still show a gray 0 for easier overflight.