Template:Info/doc: Difference between revisions
Created page with "<templatedata> { "params": { "name": { "label": "Name", "description": "The name of the subject.", "type": "string", "required": true }, "image": { "label": "Image", "description": "An image of the subject.", "type": "wiki-file-name", "required": true }, "caption": { "label": "Caption", "description": "A caption for the image.", "type": "string" }, "game appearances": { "label": "Game appearances", "description": "A l..." |
mNo edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 19: | Line 19: | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "appearances": { | ||
"label": " | "label": "Appearances", | ||
"description": "A list of | "description": "A list of media this subject has appeared in. This is generated using a Lua script by writing a list of abbreviations separated by commas with no spaces.", | ||
"example": "BTD4,BTD5,BTD6", | "example": "BTD4,BTD5,BTD6", | ||
"type": "string", | "type": "string", | ||
| Line 36: | Line 36: | ||
"example": "Shuyang Qin", | "example": "Shuyang Qin", | ||
"type": "content" | "type": "content" | ||
}, | |||
"full name": { | |||
"label": "Full name", | |||
"description": "The subject's full name, if it is different from their more common name.", | |||
"example": "Brutal Floating Behemoth", | |||
"type": "string" | |||
}, | |||
"image size": { | |||
"label": "Image size", | |||
"description": "The size of the image.", | |||
"example": "100px", | |||
"type": "string", | |||
"autovalue": "200px" | |||
} | } | ||
}, | }, | ||
"description": "A generic infobox for articles about subjects in general.", | "description": "A generic infobox for articles about subjects in general.", | ||
"format": "block" | "format": "block", | ||
"paramOrder": [ | |||
"name", | |||
"image", | |||
"image size", | |||
"caption", | |||
"appearances", | |||
"full name", | |||
"other names", | |||
"voice actor" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
==Example usage== | |||
{{info | |||
| name = Striker Jones | |||
| image = BTD6 StrikerJonesPortrait.png | |||
| appearances = BTD6,BP,BTDB2,BCS | |||
| caption = Artwork in ''Bloons TD 6'' and ''Bloons TD Battles 2'' | |||
| full name = Colonel Jones Striker Jones | |||
| voice actor = [[imdb:Stephen Brunton|Stephen Brunton]] | |||
}} | |||
<pre>{{info | |||
| name = Striker Jones | |||
| image = BTD6 StrikerJonesPortrait.png | |||
| appearances = BTD6,BP,BTDB2,BCS | |||
| caption = Artwork in ''Bloons TD 6'' and ''Bloons TD Battles 2'' | |||
| full name = Colonel Jones Striker Jones | |||
| voice actor = [[imdb:Stephen Brunton|Stephen Brunton]] | |||
}}</pre> | |||
<includeonly>[[Category:Infoboxes]]</includeonly><noinclude>[[Category:Documentation]]</noinclude> | <includeonly>[[Category:Infoboxes]]</includeonly><noinclude>[[Category:Documentation]]</noinclude> | ||