Template:Info: Difference between revisions
Jump to navigation
Jump to search
Pymonkibot (talk | contribs) m Text replacement - "info-sub" to "subtable" |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><templatestyles src="Info/style.css"/><div class="info"><!-- | ||
--><div class="head">{{{name}}}</div> | |||
{|class="subtable main centered" | |||
{|class="subtable main centered | |||
|[[File:{{{image}}}|{{{image size|200px}}}]] | |[[File:{{{image}}}|{{{image size|200px}}}]] | ||
|- | |- | ||
{{#if:{{{caption|}}}|{{!}}{{{caption}}}}} | {{#if:{{{caption|}}}|{{!}}{{{caption}}}}} | ||
|} | |} | ||
{|class="subtable" | {|class="subtable" | ||
{{#if:{{{appearances| | {{#if:{{{appearances|}}}| | ||
!colspan="2"{{!}}Appearances | !colspan="2"{{!}}Appearances | ||
{{!}}colspan="3"{{!}}{{#invoke:g|main|{{{appearances| | {{!}}colspan="3"{{!}}{{#invoke:g|main|{{{appearances|}}}}} | ||
}} | }} | ||
|- | |- | ||
| Line 24: | Line 20: | ||
{{#if:{{{voice actor|}}}|!colspan="2"{{!}}Voice actor | {{#if:{{{voice actor|}}}|!colspan="2"{{!}}Voice actor | ||
{{!}}colspan="3"{{!}}{{{voice actor}}}}} | {{!}}colspan="3"{{!}}{{{voice actor}}}}} | ||
|} | |}</div><!-- | ||
| | -->{{#ifeq:{{NAMESPACENUMBER}}|0|{{#seo: | ||
|image={{{image|}}} | |image={{{image|}}} | ||
}}</includeonly><noinclude>{{/doc}}</noinclude> | }}}}</includeonly><noinclude>{{/doc}}</noinclude> | ||
Latest revision as of 09:52, 16 April 2026
A generic infobox for articles about subjects in general.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | The name of the subject. | String | required |
| Image | image | An image of the subject. | File | required |
| Image size | image size | The size of the image.
| String | optional |
| Caption | caption | A caption for the image. | String | optional |
| Appearances | appearances | 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.
| String | required |
| Full name | full name | The subject's full name, if it is different from their more common name.
| String | optional |
| Other names | other names | A list of other names of the subject. | Content | optional |
| Voice actor | voice actor | The subject's voice actor, if it has one. Should be an interwiki link to IMDB if the actor has an IMDB page.
| Content | optional |
Example usage
Striker Jones
| Artwork in Bloons TD 6 and Bloons TD Battles 2 |
| Appearances | Bloons TD 6 Bloons Pop! Bloons TD Battles 2 Bloons Card Storm | |||
|---|---|---|---|---|
| Full name | Colonel Jones Striker Jones | |||
| Voice actor | Stephen Brunton | |||
{{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]]
}}