Template:Infobox Person: Difference between revisions
Create the person infobox |
Add nickname to person |
||
Line 11: | Line 11: | ||
{{Infobox section|General details}} | {{Infobox section|General details}} | ||
{{Infobox row|Name|{{{name|{{PAGENAME}}}}}}} | {{Infobox row|Name|{{{name|{{PAGENAME}}}}}}} | ||
{{Infobox row|Nicknames|{{{nickname|{{PAGENAME}}}}}}} | |||
{{Infobox row|Position|{{{position|}}}}} | {{Infobox row|Position|{{{position|}}}}} | ||
{{Infobox end}}{{#if:{{#var:noCategories}}||[[Category:Person]]}}<!-- | {{Infobox end}}{{#if:{{#var:noCategories}}||[[Category:Person]]}}<!-- | ||
Line 17: | Line 18: | ||
{{#cargo_store:_table=Person | {{#cargo_store:_table=Person | ||
| name = {{{name|{{PAGENAME}}}}} | | name = {{{name|{{PAGENAME}}}}} | ||
| nickname = {{{nickname|}}} | |||
| position = {{{position|}}} | | position = {{{position|}}} | ||
}} | }} | ||
Line 23: | Line 25: | ||
{{#cargo_declare:_table=Person | {{#cargo_declare:_table=Person | ||
| name = String | | name = String | ||
| nickname = String | |||
| position = String | | position = String | ||
}} | }} |
Latest revision as of 09:49, 27 February 2025
This template defines the table "Person". This table has not been created yet.
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 }}