Template:PersonInfobox: Difference between revisions

From Shaun Keaveny's Community Garden Radio
Jump to navigation Jump to search
(Created page with "<infobox layout="stacked"> <title source="title"/> <image source="image"> <caption source="caption"/> </image> <data source="name"> <label>Name</label> </data> <data source="date_of_birth"> <label>Date of birth</label> </data> <data source="birthplace"> <label>Birthplace</label> </data> <data> <default>[https://twitter.com/{{{twitter}}} Twitter profile]</default> </data> </infobox> <noinclude> == Example usage == <pre> {{PersonInfobox | title= | ima...")
 
m (Undo revision 3156 by Petewr (talk))
Tag: Undo
 
(34 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>[https://twitter.com/{{{twitter}}} Twitter profile]</default>
   <default>{{InstagramProfile
|# = {{{instagram}}}}}</default>
</data>
</data>
}}
</group>
}}


</infobox>
</infobox>
<noinclude>
[[Category:Templates]]
[[Category:Infobox templates]]


<noinclude>
== Example usage ==
== Example usage ==
<pre>
<pre>
{{PersonInfobox
{{PersonInfobox
   | title=
   | title={{PAGENAME}}
   | image=
   | image=image
   | caption=
   | caption=image caption
   | name=
   | name=person name
   | date_of_birth=
   | date_of_birth=date of birth (age)
   | birthplace=
   | birthplace=birthplace
   | twitter=
   | twitter=twitter handle (no @ sign)
  | instagram=instagram handle
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

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 
}}