Template:Infobox game mechanic: Difference between revisions

Only show missing image card if a file name was specified
(Moved templatedata to doc)
(Only show missing image card if a file name was specified)
 
(5 intermediate revisions by the same user not shown)
Line 1:
<includeonly>{{Infobox
| name=Template:Infobox game mechanic
| bodystyle= width: {{{width|360px}}}
| title= {{{name|{{PAGENAME}}}}}
| above= Game Mechanic
| image= {{No #if:{{{image|}}}|{{Image exists|file={{{image|}}}|width={{{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={{#if: {{{image|}}} | {{{image}}} |}}
| keywords= engine, mechanics, game mechanics, logic
}}</includeonly><noinclude>
{{Infobox game mechanic
| image= File:ITM anticrack firewall.png
| caption= caption
| width= 360px
| sly1= y
| sly2= y
| sly3= y
}}
{{Documentation}}