Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Spook Infobox: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<infobox>
<infobox>
<title source="full-name">
<title source="title1">
<default>{{PAGENAME}}</default>
<default>{{PAGENAME}}</default>
</title>
</title>
<image source="portrait">
<image source="portrait">
<caption source="caption1" />
</image>
</image>
<data source="born">
<data source="born">
<label>born</label>
<label>Born</label>
</data>
</data>
<data source="died">
<data source="died">
<label>died</label>
<label>Died</label>
</data>
</data>
<data source="cause_of_death">
<label>Cause of death</label>
</data>
<group>
<header>Personal Details</header>
<data source="residence">
<label>Residence</label>
</data>
<data source="gender">
<label>Gender</label>
</data>
<data source="species">
<label>Species</label>
</data>
<data source="occupation">
<label>Occupation</label>
</data>
<data source="education">
<label>Education</label>
</data>
</group>
<group>
<header>Military Service</header>
<data source="allegiance">
<label>Allegiance</label>
</data>
<data source="battles/wars">
<label>Battles/Wars</label>
</data>
</group>
</infobox>
</infobox>
<noinclude>
<noinclude>
Example usage:<pre>
Example usage:<pre>
{{Biography
{{Test
|full-name=Example
|title1=Example
|portrait=Example
|portrait=Example
|caption1=Example
|born=Example
|born=Example
|died=Example
|died=Example
|cause_of_death=Example
|residence=Example
|gender=Example
|species=Example
|occupation=Example
|education=Example
|allegiance=Example
|battles/wars=Example
}}
}}
</pre>
</pre>
<templatedata>
<templatedata>
{"params":{"title1":{"aliases":["full-name"],"label":"Full name","description":"Placeholder","example":"Placeholder","type":"string"},"image1":{"aliases":["portrait"],"label":"portrait","description":"Placeholder","example":"Placeholder","type":"string"},"label1":{"aliases":["born"],"label":"born","description":"Placeholder","example":"Placeholder","type":"string"},"label2":{"aliases":["died"],"label":"died","description":"Placeholder","example":"Placeholder","type":"string"}},"paramOrder":["title1","image1","label1","label2"]}
{"params":{"title1":{"aliases":["title1"],"label":"Full Name","description":"Placeholder","example":"Placeholder","type":"string"},"image1":{"aliases":["portrait"],"label":"Portrait","description":"Placeholder","example":"Placeholder","type":"wiki-file-name"},"caption1":{"aliases":["caption1"],"label":"Caption for Portrait","description":"Placeholder","example":"Placeholder","type":"string"},"born":{"aliases":["born"],"label":"Born","description":"Month Day, Year","example":"January 15, 1987","type":"string"},"died":{"aliases":["died"],"label":"Died","description":"If still alive, leave blank. Month Day, Year","example":"Placeholder","type":"string"},"cause_of_death":{"aliases":["cause_of_death"],"label":"Cause of death","description":"Placeholder","example":"Placeholder","type":"string"},"residence":{"aliases":["residence"],"label":"Residence","description":"The person's current place of residence.","example":"Byfair","type":"string"},"gender":{"aliases":["gender"],"label":"Gender","description":"Placeholder","example":"Placeholder","type":"string"},"species":{"aliases":["species"],"label":"Species","description":"Placeholder","example":"Placeholder","type":"string"},"occupation":{"aliases":["occupation"],"label":"Occupation","description":"Placeholder","example":"Placeholder","type":"string"},"education":{"aliases":["education"],"label":"Education","description":"Major, minor, PhD, etc.","example":"PhD in Theoretical Physics, Harvard University","type":"string"},"allegiance":{"aliases":["allegiance"],"label":"Allegiance","description":"If the person served in the military, what country or corporation did they pledge allegiance to?","example":"Placeholder","type":"string"},"battles/wars":{"aliases":["battles/wars"],"label":"Battles/Wars","description":"If the person served in the military, what conflicts did they take part in?","example":"Placeholder","type":"string"}},"paramOrder":["title1","image1","caption1","born","died","cause_of_death","residence","gender","species","occupation","education","allegiance","battles/wars"]}
</templatedata></noinclude>
</templatedata></noinclude>

Revision as of 20:49, 28 July 2023

Example usage:

{{Test
|title1=Example
|portrait=Example
|caption1=Example
|born=Example
|died=Example
|cause_of_death=Example
|residence=Example
|gender=Example
|species=Example
|occupation=Example
|education=Example
|allegiance=Example
|battles/wars=Example
}}

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Full Nametitle1 title1

Placeholder

Example
Placeholder
Stringoptional
Portraitimage1 portrait

Placeholder

Example
Placeholder
Fileoptional
Caption for Portraitcaption1 caption1

Placeholder

Example
Placeholder
Stringoptional
Bornborn born

Month Day, Year

Example
January 15, 1987
Stringoptional
Dieddied died

If still alive, leave blank. Month Day, Year

Example
Placeholder
Stringoptional
Cause of deathcause_of_death cause_of_death

Placeholder

Example
Placeholder
Stringoptional
Residenceresidence residence

The person's current place of residence.

Example
Byfair
Stringoptional
Gendergender gender

Placeholder

Example
Placeholder
Stringoptional
Speciesspecies species

Placeholder

Example
Placeholder
Stringoptional
Occupationoccupation occupation

Placeholder

Example
Placeholder
Stringoptional
Educationeducation education

Major, minor, PhD, etc.

Example
PhD in Theoretical Physics, Harvard University
Stringoptional
Allegianceallegiance allegiance

If the person served in the military, what country or corporation did they pledge allegiance to?

Example
Placeholder
Stringoptional
Battles/Warsbattles/wars battles/wars

If the person served in the military, what conflicts did they take part in?

Example
Placeholder
Stringoptional