Difference between revisions of "Template:MapItems"

From QWiki
m (Reverted edits by Bps (talk) to last revision by Help)
m (Overwriting old MapItems with this fresh one + adding doc)
Line 1: Line 1:
{| style="clear: none; border:1px solid #aaa; background-color:#f9f9f9; color:black; padding:0.2em; clear:center; font-size:85%; width:100%; margin-top: 12px; float: {{{align|right}}}"
+
<includeonly><div class="table-responsive">
|-
+
{|class="" style="text-align:center;margin-bottom:0px;border:1px solid #ddd;"
| colspan="3" style="text-align:center"| '''Items'''
+
!colspan=4 style="border:1px solid #ddd;background:#eaecf0;border-right:1px solid #aaa;height:30px;"|Powerups
|-
+
!rowspan=3|
| colspan="2" style="background:#b0c4de;text-align:center;"| ''Weapons''
+
!colspan=3 style="background:#eaecf0;border-right:1px solid #aaa;"|Armor
|style="background:#b0c4de;text-align:center;width:50%"| ''Powerups''
+
!rowspan=3| 
|-
+
!colspan=6 style="background:#eaecf0;border-right:1px solid #ddd;"|Weapons
| colspan="2"|Lightning Gun: {{{LG|None}}}
+
|- style="border-top:1px solid #ddd;"
|Mega Health: {{{MH|None}}}
+
!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}}
| colspan="2"|Rocket Launcher: {{{RL|None}}}
+
!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}}
|Quad Damage: {{{Quad|No}}}
+
!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}}
| colspan="2"|Grenade Launcher: {{{GL|None}}}
+
!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}}
|Ring of Shadows: {{{Ring|No}}}
+
!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}}
| colspan="2"|Super Nailgun: {{{SNG|None}}}
+
!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}}
|Pentagram of Protection: {{{Pent|No}}}
+
!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}}
| colspan="2"|Nailgun: {{{NG|None}}}
+
!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="background:#b0c4de;text-align:center;" | ''Armor''
+
!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;"
| colspan="2"|Super Shotgun: {{{SSG|None}}}
+
{{#ifeq: {{{quad|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{quad|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{quad|}}}}}
|Red Armor: {{{RA|None}}}
+
{{#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|}}}}}
| colspan="2" style="background:#b0c4de;text-align:center;" | ''Ammunition''
+
{{#ifeq: {{{hp100|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{hp100|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{hp100|}}}}}
|Yellow Armor: {{{YA|None}}}
+
{{#ifeq: {{{ra|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{ra|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{ra|}}}}}
|-
+
{{#ifeq: {{{ya|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{ya|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{ya|}}}}}
|Pack of 6 Cells: {{{Cells|Unknown}}}
+
{{#ifeq: {{{ga|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{ga|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{ga|}}}}}
|Pack of 12 Cells: {{{Cells_big|Unknown}}}
+
{{#ifeq: {{{lg|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{lg|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{lg|}}}}}
|Green Armor: {{{GA|None}}}
+
{{#ifeq: {{{rl|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{rl|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{rl|}}}}}
|-
+
{{#ifeq: {{{gl|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{gl|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{gl|}}}}}
|Pack of 5 Rockets: {{{Rockets|Unknown}}}
+
{{#ifeq: {{{sng|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{sng|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{sng|}}}}}
|Pack of 10 Rockets: {{{Rockets_big|Unknown}}}
+
{{#ifeq: {{{ng|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{ng|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{ng|}}}}}
|style="background:#b0c4de;text-align:center;" | ''Health''
+
{{#ifeq: {{{ssg|}}} | 0 | {{!}}style="color:#ddd;border-right:1px solid #ddd;" {{!}} {{{ssg|}}} | {{!}}style="color:#444;border-right:1px solid #ddd;" {{!}} {{{ssg|}}}}}
|-
 
|Pack of 25 Flechettes: {{{Nails|Unknown}}}
 
|Pack of 50 Flechettes: {{{Nails_big|Unknown}}}
 
|25 Health: {{{25h|Unknown}}}
 
|-
 
|Pack of 20 Shells: {{{Shells|Unknown}}}
 
|Pack of 40 Shells: {{{Shells_big|Unknown}}}
 
|15 Health: {{{15h|Unknown}}}
 
|-
 
 
|}
 
|}
 +
</div></includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 08:27, 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.