Difference between revisions of "Template:Infobox philosopher"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
m (typo, reduced padding between label and data)
imported>Sardanaphalus
(bodystyle, #switch rather than #ifeq, added below for footnotes etc)
Line 2: Line 2:
 
| child = {{{child|}}}
 
| child = {{{child|}}}
 
| bodyclass = vcard
 
| bodyclass = vcard
| decat = yes <!--(i.e. remove from categories that track Template:Infobox)-->
+
| bodystyle = {{#if:{{{width|}}}|width:{{{width}}};}}{{{bodystyle|}}}
 
| titleclass = fn
 
| titleclass = fn
| title = {{#ifeq:{{{child|}}}|yes |'''Philosophical career''' |{{{name|<includeonly>{{PAGENAME}}</includeonly>}}} }}
+
| title = {{#switch:{{{child|}}}|true|yes|y='''Philosophical career''' |{{{name|<includeonly>{{PAGENAME}}</includeonly>}}} }}
 
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image_name|{{{image|}}}}}} |size={{{image_size|}}} |sizedefault=frameless |alt={{{alt|}}} }}
 
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image_name|{{{image|}}}}}} |size={{{image_size|}}} |sizedefault=frameless |alt={{{alt|}}} }}
 
| captionstyle = padding-top:0.45em;line-height:1.1em;
 
| captionstyle = padding-top:0.45em;line-height:1.1em;
 
| caption = {{{caption|}}}
 
| caption = {{{caption|}}}
| labelstyle = padding:<!--(based on {{longitem}} linewrap management:)-->0.1em 0.5em<!--(to keep label and data apart)--> 0.1em 0;line-height:1.2em;
+
| labelstyle = padding:0.1em 0.5em<!--(to keep label and data apart)--> 0.1em 0;line-height:1.2em; <!--(modified {{longitem}})-->
| label1 = Full name    |data1=
+
 
| label2 = Other names  |data2={{{other_names|}}} |class2=nickname
+
| label1=Full name    |data1=<!--?--->
| label3 = Born          |data3={{br-separated entries |{{#if:{{{birth_name|}}}|<span>{{{birth_name}}}</span>}} |{{{birth_date|}}} |{{{birth_place|}}} }}
+
| label2=Other names  |data2={{{other_names|}}} |class2=nickname
| label4 = Died          |data4={{br-separated entries |{{{death_date|}}} |{{{death_place|}}} |{{{death_cause|}}} }}
+
| label3=Born          |data3={{br-separated entries |{{#if:{{{birth_name|}}}|<span>{{{birth_name}}}</span>}} |{{{birth_date|}}} |{{{birth_place|}}} }}
| label5 = Residence    |data5={{{residence|}}}  
+
| label4=Died          |data4={{br-separated entries |{{{death_date|}}} |{{{death_place|}}} |{{{death_cause|}}} }}
| label6 = Nationality  |data6={{{nationality|}}}  
+
| label5=Residence    |data5={{{residence|}}}  
| label7 = Era          |data7={{{era|}}}
+
| label6=Nationality  |data6={{{nationality|}}}  
| label8 = Region        |data8= {{{region|}}}
+
| label7=Era          |data7={{{era|}}}
| label9 = Religion      |data9={{{religion|}}}
+
| label8=Region        |data8={{{region|}}}
| label10 = [[List of schools of philosophy|School]] |data10={{{school_tradition|}}}
+
| label9=Religion      |data9={{{religion|}}}
| label11 = Main&nbsp;interests |data11={{{main_interests|}}}
+
| label10=[[List of schools of philosophy|School]] |data10={{{school_tradition|}}}
| label12 = Books        |data12={{{books|}}}
+
| label11=Main&nbsp;interests |data11={{{main_interests|}}}
| label13 = Alma&nbsp;mater |data13={{{alma_mater|}}}
+
| label12=Books        |data12={{{books|}}}
| label14 = Institutions |data14={{{institutions|}}}
+
| label13=Alma&nbsp;mater |data13={{{alma_mater|}}}
| label15 = Notable&nbsp;ideas |data15={{{notable_ideas|}}}
+
| label14=Institutions |data14={{{institutions|}}}
| data16 = {{#if:{{{influences|}}} |{{Collapsible list |expand={{{expand|}}}|framestyle=border:none;padding:0;|liststyle=text-align:center;|title=Influenced by|1={{{influences}}}}} }}
+
| label15=Notable&nbsp;ideas |data15={{{notable_ideas|}}}
| data17 = {{#if:{{{influenced|}}} |{{Collapsible list |expand={{{expand|}}}|framestyle=border:none;padding:0;|liststyle=text-align:center; |title=Influenced |1={{{influenced}}} }}
+
| data16 = {{#if:{{{influences|}}} |{{collapsible list |expand={{{expand|}}}|framestyle=border:none;padding:0;|liststyle=text-align:center;|title=Influenced by|1={{{influences}}}}} }}
}}
+
| data17 = {{#if:{{{influenced|}}} |{{collapsible list |expand={{{expand|}}}|framestyle=border:none;padding:0;|liststyle=text-align:center;|title=Influenced |1={{{influenced}}}}} }}
| label18 = Awards      |data18={{{awards|}}}
+
| label18=Awards      |data18={{{awards|}}}
| label19 = Signature   |data19={{#if:{{{signature|}}} |{{#invoke:InfoboxImage|InfoboxImage |image={{{signature|}}} |size={{{signature_size|}}} |sizedefault=128px |alt={{{signature alt|{{{signature_alt|}}}}}} }} }}
+
| label19 = Signature
| label20 = Website      |data20={{{website|}}}
+
| data19 = {{#if:{{{signature|}}} |{{#invoke:InfoboxImage|InfoboxImage |image={{{signature|}}} |size={{{signature_size|}}} |sizedefault=128px |alt={{{signature alt|{{{signature_alt|}}}}}} }} }}
 +
| label20=Website      |data20={{{website|}}}
 +
 
 +
| belowclass = {{{belowclass|}}}
 +
| belowstyle = {{{belowstyle|}}}
 +
| below = {{{below|}}}
 +
 
 +
| decat = yes <!--i.e. remove from categories that track Template:Infobox-->
 
}}<includeonly>[[Category:Infobox philosopher maintenance]]</includeonly><noinclude>
 
}}<includeonly>[[Category:Infobox philosopher maintenance]]</includeonly><noinclude>
  

Revision as of 13:25, 17 April 2014

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Template:Uses infobox person

Template:Tracks Wikidata

This template is used to provide biographical information on anyone who might be considered a philosopher. If the philosopher held or holds a political or other public office (e.g. Alan Greenspan), {{Infobox officeholder}} is probably more suitable.

Usage

Template:Parameter names example

{{Infobox philosopher
| honorific_prefix  = 
| name              =  <!-- include middle initial, if not specified in birth_name -->
| native_name       = <!-- add name in the philosopher's language or script if different from the English name -->
| honorific_suffix  = 
| image             =  <!-- filename only, i.e. without the File: (or Image:) prefix or enclosing [[brackets]] --> 
| image_size        = 
| alt               = 
| caption           = 
| other_names       = 
| birth_name        = <!-- only use if different from name -->
| birth_date        = <!-- {{birth date and age|YYYY|MM|DD}} for living persons, {{birth date|YYYY|MM|DD}} for deceased. For living people supply only the year unless the exact date is already WIDELY published, as per [[WP:DOB]]. -->
| birth_place       = 
| death_date        = <!-- {{death date and age|YYYY|MM|DD|YYYY|MM|DD}} (death date then birth date) -->
| death_place       = 
| death_cause       = 
| residence         = 
| nationality       =
| spouse            =
| partner           =
| education         = 
| alma_mater        = 
| notable_works     = <!-- use "notable_works" in place of "books" parameter (deprecated) -->
| awards            = 
| signature         = 
| signature_size    = 
| signature_alt     = 
| era               = 
| region            = 
| school_tradition  = 
| institutions      = 
| thesis_title      = <!--(or  | thesis1_title =  and  | thesis2_title = )-->
| thesis_url        = <!--(or  | thesis1_url  =   and  | thesis2_url  =  )-->
| thesis_year       = <!--(or  | thesis1_year =   and  | thesis2_year =  )-->
| doctoral_advisor  = <!--(or  | doctoral_advisors = )-->
| academic_advisors = 
| doctoral_students = 
| notable_students  = 
| language          = 
| main_interests    = 
| notable_ideas     = 
| influences        = <!-- only add entries which are explained and cited in the body of the article (or cited here)-->
| influenced        = <!-- only add entries which are explained and cited in the body of the article (or cited here)-->
| website           = <!-- {{URL|example.com}} -->
}}

To use this template, copy the text above to the top of a biography article. Note that parameter names are lowercase.

Parameters

All parameters are optional, and if left blank will not appear in the infobox:

Microformat

Template:UF-hcard-person

Embedding

Jane Doe
Borntoday
Infobox philosopher
EraContemporary philosophy
RegionWestern philosophy
SchoolContinental philosophy
Main interestsPolitical theory
Notable ideasHomo faber
[[Category:Infobox templates|Template:Remove first word]]
[[Category:Infobox templates|Template:Remove first word]]Template:Wikidata image End of Infobox person

Alternatively {{infobox philosopher}} may be embedded within {{infobox person}}, using |module in the latter, as shown here. This allows the use of more fields by drawing on both infoboxes. For an example, see Hannah Arendt.

Tracking categories

See also