Template:Infobox Person/doc: Difference between revisions
Create the doc for person infobox |
m add nickname to examples |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
{{Infobox Person | {{Infobox Person | ||
| name = | | name = | ||
| nickname = | |||
| image = | | image = | ||
| | | position = | ||
}} | }} | ||
</pre> | </pre> | ||
Line 16: | Line 17: | ||
|- | |- | ||
| name || String || <nowiki>{{PAGENAME}}</nowiki> || The person's name | | name || String || <nowiki>{{PAGENAME}}</nowiki> || The person's name | ||
|- | |||
| nickname || String || <nowiki>{{PAGENAME}}</nowiki> || The person's nicknames | |||
|- | |- | ||
| image || String || <nowiki>{{{name}}}.png or {{PAGENAME}}.png</nowiki> || The image to be used, without the File: prefix but with the extension. For example, if you wanted to use an image, it has to be used without the file namespace such as "Mouse_Mugshot.png". If not given, the page will be added to [[:Category:Person lacking infobox images]]. | | image || String || <nowiki>{{{name}}}.png or {{PAGENAME}}.png</nowiki> || The image to be used, without the File: prefix but with the extension. For example, if you wanted to use an image, it has to be used without the file namespace such as "Mouse_Mugshot.png". If not given, the page will be added to [[:Category:Person lacking infobox images]]. | ||
Line 27: | Line 30: | ||
| noCategories = 1 | | noCategories = 1 | ||
| name = Thor | | name = Thor | ||
| nickname = Goblin lord | |||
| image = | | image = | ||
| position = streamer | | position = streamer | ||
Line 35: | Line 39: | ||
| noCategories = 1 | | noCategories = 1 | ||
| name = Thor | | name = Thor | ||
| nickname = Goblin lord | |||
| image = | | image = | ||
| position = streamer | | position = streamer |
Latest revision as of 09:50, 27 February 2025
An infobox for use on Person pages. It stores data to Special:CargoTables/Person.
Usage
{{Infobox Person | name = | nickname = | image = | position = }}
Parameters
Parameter | Data Type | Default Value | Description |
---|---|---|---|
name | String | {{PAGENAME}} | The person's name |
nickname | String | {{PAGENAME}} | The person's nicknames |
image | String | {{{name}}}.png or {{PAGENAME}}.png | The image to be used, without the File: prefix but with the extension. For example, if you wanted to use an image, it has to be used without the file namespace such as "Mouse_Mugshot.png". If not given, the page will be added to Category:Person lacking infobox images. |
position | String | The person's job position. |
Example
Thor | |
---|---|
General details | |
Name | Thor |
Nicknames | Goblin lord |
Position | streamer |
{{Infobox Person | noCategories = 1 | name = Thor | nickname = Goblin lord | image = | position = streamer }}