Template:Infobox mod: Difference between revisions

Update parameters
(Added templatedata)
(Update parameters)
 
(13 intermediate revisions by the same user not shown)
Line 1:
<includeonly>{{Infobox
| name= Template:Infobox mod
| bodystyle= width: {{{width|360px}}}; max-width: {{{width|500px}} !important;
| titlebodystyle= {{{namestyle|{{FULLPAGENAME}}}}}
| title= {{{title|{{{name|{{FULLPAGENAME}}}}}}}}
| above= Mod
| image= {{#if: {{{image|}}} |{{Image exists|file={{{image|}}}|width={{{width|100%}}}}}}}
| {{#ifexist: {{{image}}}
| [[{{{image}}}|{{{width|360px}}}]]
| {{No image|{{{width|360px}}}|link={{{image|}}}}}
}}
| {{No image|{{{width|360px}}}}}
}}
| caption= {{{caption|}}}
| label1= {{#if: {{{creator}}}|Creator(s)|}}
| data1= {{#if: {{{creator|}}} | {{#ifexist:User:{{{creator}}} | {{Mod author|{{{creator}}}}} | {{{creator|}}} }} |}}
| label2= {{#if: {{{releasedate}}}|Initial Release|}}
| data2= {{{releasedate|}}}
| label3= Game
| data3= {{CommaSly separated entriesother
| {{#ifeq: {{{sly1}}} | y |= [[Sly 1|{{Sly 1}}]]{{ns0|[[Category:Mods for Sly 1]]}} | }}
| {{#ifeq: {{{sly2}}} | y |= [[Sly 2|{{Sly 2}}]]{{ns0|[[Category:Mods for Sly 2]]}} | }}
| {{#ifeq: {{{sly3}}} | y |= [[Sly 3|{{Sly 3}}]]{{ns0|[[Category:Mods for Sly 3]]}} | }}
| {{#ifeq: {{{sly4}}} | y |= [[Sly 4|{{Sly 4}}]]{{ns0|[[Category:Mods for Sly 4]]}} | }}
}}
| label4= {{#if: {{{version}}}|Version|}}
Line 26 ⟶ 21:
| label5= {{#if: {{{download}}}|Download|}}
| data5= {{#if: {{{download}}}|[{{{download}}} Link]|}}
}}{{ns0Article only|[[Category:Mods]]}}</includeonly><noinclude>
{{WikiSEO helper
| title={{Main other | {{PAGENAME}} {{Sly other|sly1=for Sly 1|sly2=for Sly 2|sly3=for Sly 3|sly4=for Sly 4|other=}} | {{FULLPAGENAME}} }}
| description={{Main other | A mod for {{Sly other|sly1={{Sly 1}}|sly2={{Sly 2}}|sly3={{Sly 3}}|sly4={{Sly 4}}|other=the Sly Cooper}}{{#if:{{{version|}}}| &nbsp({{{version}}})|}}{{#if:{{{creator|}}}| &nbspby {{{creator}}}|}}. |}}
| image={{#if:{{{image|}}} | {{{image}}} |}}
| keywords= mod, game mod, mod download, mod info, modification
}}</templatedataincludeonly></noinclude>
{{Infobox mod
| name= name
| image= File:ITMSly anticrack1 firewallBurning Rubber zoomout.png
| caption= caption
| creator= creator
| releasedate= releasedate
| sly1= y
| sly2= y
| sly3= y
| version= NTSC-U
| download= https://example.com
}}
{{Documentation}}
</noinclude>
<templatedata>
{
"params": {
"width": {
"type": "unknown"
},
"name": {
"type": "string",
"description": "The name of the mod (default is the page name)"
},
"image": {
"type": "wiki-file-name"
},
"caption": {
"type": "string",
"label": "image caption"
},
"creator": {
"type": "string",
"aliases": [
"author"
],
"description": "The name of the person who created the mod"
},
"releasedate": {
"example": "January 1, 1969",
"type": "date",
"label": "release date",
"description": "The date the mod was first released"
},
"sly1": {
"example": "y",
"type": "unknown"
},
"sly2": {
"example": "y"
},
"sly3": {
"example": "y"
},
"sly4": {
"example": "y"
},
"version": {
"aliases": [
"build"
],
"description": "The version of the game the mod is for",
"type": "string"
},
"download": {
"label": "download link",
"description": "Download link for the mod",
"type": "url"
}
},
"paramOrder": [
"name",
"image",
"caption",
"width",
"creator",
"releasedate",
"version",
"download",
"sly1",
"sly2",
"sly3",
"sly4"
],
"description": "An infobox for mod infopages."
}
</templatedata></noinclude>