Template:Infobox game mechanic: Difference between revisions

Only show missing image card if a file name was specified
(Fixed categories)
(Only show missing image card if a file name was specified)
 
(17 intermediate revisions by the same user not shown)
Line 1:
<includeonly>{{Infobox
| name=Template:Infobox game mechanic
| title= {{{title|{{FULLPAGENAME}}}}}
| bodystyle= width: {{{width|360px}}}
| title= {{{titlename|{{FULLPAGENAMEPAGENAME}}}}}
| above= Game Mechanic
| image= {{{#if:{{{image|}}}|[[File:No{{Image exists|file={{{image available.svg|180px]]}}}|width={{{width|360px}}}}}}}
| caption= {{{caption|}}}
| label1= Game(s)
| data1= {{#ifeq: {{{sly1}}} | y | [[Sly 1]][[Category:Game mechanics in Sly 1]] | }} <!-- todo: add Sly 2 and Sly 3 options -->
| label2data1= Official{{Sly Nameother
| sly1= [[Sly 1|{{Sly 1}}]][[Category:Game mechanics in Sly 1]]
| data2= {{#ifeq: {{{official}}} | y | Yes | }}{{#ifeq: {{{official}}} | n | No| }}
| sly2= [[Sly 2|{{Sly 2}}]][[Category:Game mechanics in Sly 2]]
| sly3= [[Sly 3|{{Sly 3}}]][[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
}}
[[Category:Game mechanics]]</includeonly><noinclude>
{{Documentation}}
[[Category:SlyMods templates]]
</noinclude>