Template:File info: Difference between revisions

m
no edit summary
m (testing out adding "If Sub-game exists" to the screenshots section, so that Adding MCC (Halo 3) will add Category:Halo 3 screenshots alongside Category:MCC screenshots - will revert if this is unsuccessful)
mNo edit summary
(2 intermediate revisions by the same user not shown)
Line 88: Line 88:
|{{#if:{{{game|}}}|{{#switch:{{{type}}}
|{{#if:{{{game|}}}|{{#switch:{{{type}}}
|screenshot={{#ifexist:Category:{{{game}}} screenshots|
|screenshot={{#ifexist:Category:{{{game}}} screenshots|
{{#ifexist:Category:{{{subgame|{{{game}}}}}} screenshots|[[Category:{{{subgame|{{{game}}}}}} screenshots]]|}}[[Category:{{{game}}} screenshots]]|[[Category:Game screenshots]]}}
[[Category:{{{game}}} screenshots]]|[[Category:Game screenshots]]}}
{{#if:{{{subgame|}}}|{{#ifexist:Category:{{{subgame}}} screenshots|[[Category:{{{subgame}}} screenshots]]}}}}
|achievement={{#ifexist:Category:{{{game}}} achievement images|
|achievement={{#ifexist:Category:{{{game}}} achievement images|
[[Category:{{{game}}} achievement images]]|[[Category:Achievement images]]}}
[[Category:{{{game}}} achievement images]]|[[Category:Achievement images]]}}
Line 252: Line 253:
|}
|}


[[Category:File notices]]
[[Category:File templates]]
[[Category:Documentation templates]]</noinclude>
[[Category:Documentation templates]]</noinclude>