1,087
edits
m (→Example usage: filled out example fields for the display here to show fully) |
Tag: Undo |
||
(33 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<infobox layout="stacked"> | <infobox layout="stacked"> | ||
<title source="title"/> | <title source="title"> | ||
<default><center>{{PAGENAME}}</center></default> | |||
</title> | |||
<image source="image"> | <image source="image"> | ||
<caption source="caption"/> | <caption source="caption"/> | ||
</image> | </image> | ||
<group> | |||
<header>Main information</header> | |||
<data source="name"> | <data source="name"> | ||
<label>Name</label> | <label>Name</label> | ||
</data> | |||
<data source="othernames"> | |||
<label>Other names</label> | |||
</data> | </data> | ||
Line 18: | Line 27: | ||
<label>Birthplace</label> | <label>Birthplace</label> | ||
</data> | </data> | ||
</group> | |||
{{#if:{{{twitter|}}}{{{instagram |}}} | |||
<group> | |||
<header>Social media</header> | |||
{{#if:{{{twitter|}}} | |||
<data> | |||
<default>{{TwitterProfile | |||
|# = {{{twitter}}}}}</default> | |||
</data> | |||
}} | |||
{{#if:{{{instagram|}}} | |||
<data> | <data> | ||
<default> | <default>{{InstagramProfile | ||
|# = {{{instagram}}}}}</default> | |||
</data> | </data> | ||
}} | |||
</group> | |||
}} | |||
</infobox> | </infobox> | ||
<noinclude> | |||
[[Category:Templates]] | |||
[[Category:Infobox templates]] | |||
== Example usage == | == Example usage == | ||
<pre> | <pre> | ||
{{PersonInfobox | {{PersonInfobox | ||
| title= | | title={{PAGENAME}} | ||
| image=image | | image=image | ||
| caption=image caption | | caption=image caption | ||
| name=person name | | name=person name | ||
| date_of_birth=date of birth | | date_of_birth=date of birth (age) | ||
| birthplace=birthplace | | birthplace=birthplace | ||
| twitter=twitter | | twitter=twitter handle (no @ sign) | ||
| instagram=instagram handle | |||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> |
edits