Template:Infobox game mechanic: Difference between revisions

Only show missing image card if a file name was specified
(Added cat handler, comma separated games list, added example)
(Only show missing image card if a file name was specified)
 
(11 intermediate revisions by the same user not shown)
Line 1:
<includeonly>{{Infobox
| name=Template:Infobox game mechanic
| title= {{{name|{{FULLPAGENAME}}}}}
| bodystyle= width: {{{width|360px}}}
| title= {{{name|{{FULLPAGENAMEPAGENAME}}}}}
| above= Game Mechanic
| image= {{{#if:{{{image|}}}|{{NoImage exists|file={{{image|180px}}}|width={{{width|360px}}}}}}}
| caption= {{{caption|}}}
| label1= Game
| data1= {{CommaSly separated entriesother
| {{#ifeq: {{{sly1}}} | y |= [[Sly 1|{{Sly 1}}]][[Category:Game mechanics in Sly 1]] | }}
| {{#ifeq: {{{sly2}}} | y |= [[Sly 2|{{Sly 2}}]][[Category:Game mechanics in Sly 2]] | }}
| {{#ifeq: {{{sly3}}} | y |= [[Sly 3|{{Sly 3}}]][[Category:Game mechanics in Sly 3]] | }}
| sly4= [[Sly 4|{{Sly 4}}]][[Category:Game mechanics in Sly 4]]
}}
}}
{{Main otherns0|[[Category:Game mechanics]]}}</includeonly><noinclude>
{{WikiSEO helper
{{{{FULLPAGENAME}}
| title={{Main other | {{PAGENAME}} in {{NAMESPACE}} | {{FULLPAGENAME}} }}
| name= name
| description={{Main other|{{PAGENAME}} is a game mechanic in {{Sly other|sly1={{Sly 1}}|sly2={{Sly 2}}|sly3={{Sly 3}}|sly4={{Sly 4}}|other=the Sly Cooper series}}|}}.
| sly1= y
| image={{#if: {{{image|}}} | {{{image}}} |}}
| sly2= y
| keywords= engine, mechanics, game mechanics, logic
| sly3= y
}}</includeonly><noinclude>
{{Infobox game mechanic
| image= File:ITM anticrack firewall.png
| caption= caption
| width= 360px
}}
{{Documentation}}