Template:Infobox game mechanic: Difference between revisions

Only show missing image card if a file name was specified
(Added category helpers)
(Only show missing image card if a file name was specified)
 
(7 intermediate revisions by the same user not shown)
Line 1:
<includeonly>{{Infobox
| name=Template:Infobox game mechanic
| bodystyle= width: {{{width|360px}}}
| title= {{{name|{{FULLPAGENAMEPAGENAME}}}}}
| above= Game Mechanic
| image= {{#if:{{{image|}}}|{{Image exists|file={{{image|}}}|width={{{width|360px}}}}}}}
| {{#ifexist: {{{image}}}
| [[{{{image}}}|{{{width|360px}}}]]
| {{No image|{{{width|360px}}}|link={{{image}}}}}
}}
| {{No image|{{{width|360px}}}}}
}}
| caption= {{{caption|}}}
| label1= Game
| data1= {{CommaSly separated entriesother
| {{#ifeq: {{{sly1}}} | y |= [[Sly 1|{{Sly 1}}]]{{ns0|[[Category:Game mechanics in Sly 1]]}} | }}
| {{#ifeq: {{{sly2}}} | y |= [[Sly 2|{{Sly 2}}]]{{ns0|[[Category:Game mechanics in Sly 2]]}} | }}
| {{#ifeq: {{{sly3}}} | y |= [[Sly 3|{{Sly 3}}]]{{ns0|[[Category:Game mechanics in Sly 3]]}} | }}
| sly4= [[Sly 4|{{Sly 4}}]][[Category:Game mechanics in Sly 4]]
}}
}}
{{ns0|[[Category:Game mechanics]]}}</includeonly><noinclude>
{{WikiSEO helper
| title={{Main other | {{PAGENAME}} in {{NAMESPACE}} | {{FULLPAGENAME}} }}
| 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}}|}}.
| image={{No#if: image|{{{widthimage|360px}}} |link= {{{image}}} |}}
| keywords= engine, mechanics, game mechanics, logic
}}</includeonly><noinclude>
{{Infobox game mechanic
| name= name
| image= File:ITM anticrack firewall.png
| caption= caption
| width= 360px
| sly1= y
| sly2= y
| sly3= y
}}
{{Documentation}}