Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

Difference between revisions of "Template:Infobox map"

From Quake Wiki

m (test)
m (no good. Might get it working one day.)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
: HELP! I want to hide rows of the table if the information doesn't exist, but I can't get it working. I've tried basically everything on this page: http://en.wikipedia.org/wiki/Wikipedia:Conditional_tables
 +
 
{| class="wikitable" style="float:right; margin:8px"
 
{| class="wikitable" style="float:right; margin:8px"
 
! style="font-size: larger; margin-left: 1em;" |'''{{{title}}}'''
 
! style="font-size: larger; margin-left: 1em;" |'''{{{title}}}'''
Line 6: Line 8:
 
| colspan="2" | [[file:{{{image}}}|thumb|center|320px|alt={{{filename}}} - {{{title}}}]]
 
| colspan="2" | [[file:{{{image}}}|thumb|center|320px|alt={{{filename}}} - {{{title}}}]]
 
|-
 
|-
| width="100px" |'''Filename''' || {{{filename}}}
+
| width="100px" |'''Filename'''
 +
| {{{filename}}}
 
|-
 
|-
 
|'''Author'''
 
|'''Author'''
Line 13: Line 16:
 
| ! valign="top" | '''Supported modes'''
 
| ! valign="top" | '''Supported modes'''
 
|  
 
|  
{{#if: {{{modesp}}} | [[Single-player]]<br>}}
+
{{#if: {{{modesp}}} | [[Single-player]]<br> }}
{{#if: {{{modecoop}}} | [[Coop]]<br>}}
+
{{#if: {{{modecoop}}} | [[Coop]]<br> }}
{{#if: {{{modedm}}} | [[Deathmatch]]}}
+
{{#if: {{{modedm}}} | [[Deathmatch]] }}
 
|-
 
|-
| {{#if: {{{modesp}}}
+
| {{#if: {{{monsters}}} | '''[[Monsters]]''' }}
| <tr><td>'''[[Monsters]]'''</td><td>{{{monsters}}}</td></tr><tr><td>'''[[Secrets]]'''</td><td>{{{secrets}}}</td></tr> }}
+
| {{#if: {{{monsters}}} | {{{monsters}}} }}
 
|-
 
|-
| {{#if: {{{cdtrack}}}
+
| {{#if: {{{secrets}}} | '''[[Secrets]]''' }}
| <tr><td>'''[[Soundtrack|CD Track]]'''</td><td>{{{cdtrack}}}</td></tr> }}
+
| {{#if: {{{secrets}}} | {{{secrets}}} }}
 +
|-
 +
| {{#if: {{{cdtrack}}} | '''[[Soundtrack|CD Track]]''' }}
 +
| {{#if: {{{cdtrack}}} | {{{cdtrack}}} }}
 
|}
 
|}
 
|}
 
|}

Latest revision as of 18:51, 29 March 2013

HELP! I want to hide rows of the table if the information doesn't exist, but I can't get it working. I've tried basically everything on this page: http://en.wikipedia.org/wiki/Wikipedia:Conditional_tables
{{{title}}}
[[file:{{{image}}}|thumb|center|320px|alt={{{filename}}} - {{{title}}}]]
Filename {{{filename}}}
Author {{{author}}}
Supported modes

Single-player
Coop
Deathmatch

Monsters {{{monsters}}}
Secrets {{{secrets}}}
CD Track {{{cdtrack}}}