Difference between revisions of "Template:MapItems"
From QWiki
m (Added default value 0 to each cell) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {| style=" | + | <includeonly><div class="table-responsive"> |
− | + | {|class="" style="text-align:center;margin-bottom:0px;border:1px solid #ddd;" | |
− | + | !colspan=4 style="border:1px solid #ddd;background:#eaecf0;border-right:1px solid #aaa;height:30px;"|Powerups | |
− | | | + | !rowspan=3| |
− | + | !colspan=3 style="background:#eaecf0;border-right:1px solid #aaa;"|Armor | |
− | + | !rowspan=3| | |
− | | | + | !colspan=6 style="background:#eaecf0;border-right:1px solid #ddd;"|Weapons |
− | + | |- style="border-top:1px solid #ddd;" | |
− | | | + | !style="border-right:1px solid #ddd;background-color:#eaecf0;width:30px;padding:5px 10px 5px 10px;margin:0px;font-weight:normal;"|{{abbr|Quad|Quad Damage}} |
− | | | + | !style="border-right:1px solid #ddd;background-color:#eaecf0;width:30px;padding:5px 10px 5px 10px;margin:0px;font-weight:normal;"|{{abbr|Ring|Ring of invisibility}} |
− | + | !style="border-right:1px solid #ddd;background-color:#eaecf0;width:30px;padding:5px 10px 5px 10px;margin:0px;font-weight:normal;"|{{abbr|Pent|Pentagram of Protection}} | |
− | | | + | !style="border-right:1px solid #ddd;background-color:#eaecf0;width:30px;padding:5px 10px 5px 10px;margin:0px;font-weight:normal;"|{{abbr|MH|Mega Health}} |
− | |- | + | !style="border-right:1px solid #ddd;background-color:#eaecf0;width:30px;padding:5px 10px 5px 10px;margin:0px;font-weight:normal;"|{{abbr|RA|Red Armor}} |
− | | | + | !style="border-right:1px solid #ddd;background-color:#eaecf0;width:30px;padding:5px 10px 5px 10px;margin:0px;font-weight:normal;"|{{abbr|YA|Yellow Armor}} |
− | + | !style="border-right:1px solid #ddd;background-color:#eaecf0;width:30px;padding:5px 10px 5px 10px;margin:0px;font-weight:normal;"|{{abbr|GA|Green Armor}} | |
− | |- | + | !style="border-right:1px solid #ddd;background-color:#eaecf0;width:30px;padding:5px 10px 5px 10px;margin:0px;font-weight:normal;"|{{abbr|LG|Lightning Gun}} |
− | | | + | !style="border-right:1px solid #ddd;background-color:#eaecf0;width:30px;padding:5px 10px 5px 10px;margin:0px;font-weight:normal;"|{{abbr|RL|Rocket Launcher}} |
− | | | + | !style="border-right:1px solid #ddd;background-color:#eaecf0;width:30px;padding:5px 10px 5px 10px;margin:0px;font-weight:normal;"|{{abbr|GL|Grenade Launcher}} |
− | |- | + | !style="border-right:1px solid #ddd;background-color:#eaecf0;width:30px;padding:5px 10px 5px 10px;margin:0px;font-weight:normal;"|{{abbr|SNG|Super Nailgun}} |
− | | | + | !style="border-right:1px solid #ddd;background-color:#eaecf0;width:30px;padding:5px 10px 5px 10px;margin:0px;font-weight:normal;"|{{abbr|NG|Nailgun}} |
− | |style=" | + | !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;" |
− | | | + | {{#if:{{{quad}}}|{{!}}style="color:#444;border-right:1px solid #ddd;" {{!}}{{{quad}}}|{{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}}0}} |
− | | | + | {{#if:{{{ring}}}|{{!}}style="color:#444;border-right:1px solid #ddd;" {{!}}{{{ring}}}|{{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}}0}} |
− | |- | + | {{#if:{{{pent}}}|{{!}}style="color:#444;border-right:1px solid #ddd;" {{!}}{{{pent}}}|{{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}}0}} |
− | | | + | {{#if:{{{hp100}}}|{{!}}style="color:#444;border-right:1px solid #ddd;" {{!}}{{{hp100}}}|{{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}}0}} |
− | + | {{#if:{{{ra}}}|{{!}}style="color:#444;border-right:1px solid #ddd;" {{!}}{{{ra}}}|{{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}}0}} | |
− | |- | + | {{#if:{{{ya}}}|{{!}}style="color:#444;border-right:1px solid #ddd;" {{!}}{{{ya}}}|{{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}}0}} |
− | + | {{#if:{{{ga}}}|{{!}}style="color:#444;border-right:1px solid #ddd;" {{!}}{{{ga}}}|{{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}}0}} | |
− | + | {{#if:{{{lg}}}|{{!}}style="color:#444;border-right:1px solid #ddd;" {{!}}{{{lg}}}|{{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}}0}} | |
− | | | + | {{#if:{{{rl}}}|{{!}}style="color:#444;border-right:1px solid #ddd;" {{!}}{{{rl}}}|{{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}}0}} |
− | |- | + | {{#if:{{{gl}}}|{{!}}style="color:#444;border-right:1px solid #ddd;" {{!}}{{{gl}}}|{{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}}0}} |
− | + | {{#if:{{{sng}}}|{{!}}style="color:#444;border-right:1px solid #ddd;" {{!}}{{{sng}}}|{{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}}0}} | |
− | | | + | {{#if:{{{ng}}}|{{!}}style="color:#444;border-right:1px solid #ddd;" {{!}}{{{ng}}}|{{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}}0}} |
− | |style=" | + | {{#if:{{{ssg}}}|{{!}}style="color:#444;border-right:1px solid #ddd;" {{!}}{{{ssg}}}|{{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}}0}} |
− | |- | ||
− | |||
− | |||
− | | | ||
− | |- | ||
− | |||
− | |||
− | | | ||
− | |- | ||
|} | |} | ||
+ | </div></includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 10:24, 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 | 0 | 2 | 2 | 0 | 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.