Template:PersonInfobox: Difference between revisions
(social links and removed default behaviour) |
Tag: Undo |
||
(21 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
</image> | </image> | ||
<group | <group> | ||
<header>Main information</header> | <header>Main information</header> | ||
<data source="name"><label>Name</label> | <data source="name"> | ||
<label>Name</label> | |||
</data> | |||
<data source="othernames"> | |||
<label>Other names</label> | |||
</data> | |||
<data source="date_of_birth"><label>Date of birth</label> | <data source="date_of_birth"> | ||
<label>Date of birth</label> | |||
</data> | |||
<data source="birthplace"><label>Birthplace</label> | <data source="birthplace"> | ||
<label>Birthplace</label> | |||
</data> | |||
</group> | </group> | ||
<group | {{#if:{{{twitter|}}}{{{instagram |}}} | ||
<group> | |||
<header>Social media</header> | <header>Social media</header> | ||
{{#if:{{{twitter|}}} | |||
<data> | |||
<default>{{TwitterProfile | |||
|# = {{{twitter}}}}}</default> | |||
</data> | </data> | ||
}} | |||
{{#if:{{{instagram|}}} | |||
<data> | |||
<default>{{InstagramProfile | |||
|# = {{{instagram}}}}}</default> | |||
</data> | </data> | ||
}} | |||
</group> | |||
}} | |||
</infobox> | </infobox> | ||
<noinclude> | |||
[[Category:Templates]] | |||
[[Category:Infobox templates]] | |||
== Example usage == | == Example usage == | ||
<pre> | <pre> |
Latest revision as of 16:30, 26 May 2023
Example usage
{{PersonInfobox | title={{PAGENAME}} | image=image | caption=image caption | name=person name | date_of_birth=date of birth (age) | birthplace=birthplace | twitter=twitter handle (no @ sign) | instagram=instagram handle }}