Template:Infobox mod: Difference between revisions

From SlyMods
Jump to navigation Jump to search
Content added Content deleted
(Added templatedata)
(Updated parameters, moved templatedata to doc)
Line 3: Line 3:
| title= {{{name|{{FULLPAGENAME}}}}}
| title= {{{name|{{FULLPAGENAME}}}}}
| above= Mod
| above= Mod
| image= {{#if: {{{image}}}
| image= {{No image|file={{{image|}}}|width={{{width|360px}}}}}
| {{#ifexist: {{{image}}}
| [[{{{image}}}|{{{width|360px}}}]]
| {{No image|{{{width|360px}}}|link={{{image|}}}}}
}}
| {{No image|{{{width|360px}}}}}
}}
| caption= {{{caption|}}}
| caption= {{{caption|}}}
| label1= {{#if: {{{creator}}}|Creator|}}
| label1= {{#if: {{{creator}}}|Creator|}}
Line 16: Line 10:
| data2= {{{releasedate|}}}
| data2= {{{releasedate|}}}
| label3= Game
| label3= Game
| data3= {{Comma separated entries
| data1= {{Sly other
| {{#ifeq: {{{sly1}}} | y | [[Sly 1]]{{ns0|[[Category:Mods for Sly 1]]}} | }}
| sly1= [[Sly 1|{{Sly 1}}]][[Category:Mods for Sly 1]]
| {{#ifeq: {{{sly2}}} | y | [[Sly 2]]{{ns0|[[Category:Mods for Sly 2]]}} | }}
| sly2= [[Sly 2|{{Sly 2}}]][[Category:Mods for Sly 2]]
| {{#ifeq: {{{sly3}}} | y | [[Sly 3]]{{ns0|[[Category:Mods for Sly 3]]}} | }}
| sly3= [[Sly 3|{{Sly 3}}]][[Category:Mods for Sly 3]]
| {{#ifeq: {{{sly4}}} | y | [[Sly 4]]{{ns0|[[Category:Mods for Sly 4]]}} | }}
| sly4= [[Sly 4|{{Sly 4}}]][[Category:Mods for Sly 4]]
}}
}}
| label4= {{#if: {{{version}}}|Version|}}
| label4= {{#if: {{{version}}}|Version|}}
Line 29: Line 23:
{{Infobox mod
{{Infobox mod
| name= name
| name= name
| image= File:ITM anticrack firewall.png
| image= File:Sly 1 Burning Rubber zoomout.png
| caption= caption
| caption= caption
| creator= creator
| creator= creator
| releasedate= releasedate
| releasedate= releasedate
| sly1= y
| sly2= y
| sly3= y
| version= NTSC-U
| version= NTSC-U
| download= https://example.com
| download= https://example.com
}}
}}
{{Documentation}}
{{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>

Revision as of 04:44, 3 August 2022

name
Mod
caption
Initial Releasereleasedate
VersionNTSC-U
DownloadLink