Difference between revisions of "Template:Infobox philosopher"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Sardanaphalus
(labelstyle (linewrapping), less space-hungry code)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
 +
| child = {{{child|}}}
 
| bodyclass = vcard
 
| bodyclass = vcard
| child = {{{child|}}}
+
| decat = yes <!--(i.e. remove from categories that track Template:Infobox)-->
| title = {{#ifeq:{{{child|}}}|yes |'''Philosophical career'''|{{{name|<includeonly>{{PAGENAME}}</includeonly>}}} }}
 
| decat = yes <!-- remove from template:infobox tracking categories -->
 
 
| titleclass = fn
 
| titleclass = fn
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image_name|{{{image|}}}}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}}
+
| title = {{#ifeq:{{{child|}}}|yes |'''Philosophical career''' |{{{name|<includeonly>{{PAGENAME}}</includeonly>}}} }}
 +
| 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|}}}
| label1 = Full name
+
| labelstyle = padding:<!--(based on {{longitem}} linewrap management:)-->0.1em 1.0em<!--(to keep label and data apart)--> 0.1em 0;line-height:1.2em;
| data1 =  
+
| label1 = Full name     |data1=
| label2 = Other names
+
| label2 = Other names   |data2={{{other_names|}}} |class2=nickname
| class2 = nickname
+
| label3 = Born         |data3={{br-separated entries |{{#if:{{{birth_name|}}}|<span>{{{birth_name}}}</span>}} |{{{birth_date|}}} |{{{birth_place|}}} }}
| data2 = {{{other_names|}}}
+
| label4 = Died         |data4={{br-separated entries |{{{death_date|}}} |{{{death_place|}}} |{{{death_cause|}}} }}
| label3 = Born
+
| label5 = Residence     |data5={{{residence|}}}  
| data3 = {{br separated entries|{{#if:{{{birth_name|}}}|<span>{{{birth_name}}}</span>}}|{{{birth_date|}}}|{{{birth_place|}}}}}
+
| label6 = Nationality   |data6={{{nationality|}}}  
| label4 = Died
+
| label7 = Era           |data7={{{era|}}}
| data4 = {{br separated entries|{{{death_date|}}}|{{{death_place|}}}|{{{death_cause|}}}}}
+
| label8 = Region       |data8= {{{region|}}}
| label5 = Residence  
+
| label9 = Religion     |data9={{{religion|}}}
| data5 = {{{residence|}}}  
+
| label10 = [[List of schools of philosophy|School]] |data10={{{school_tradition|}}}
| label6 = Nationality  
+
| label11 = Main&nbsp;interests |data11={{{main_interests|}}}
| data6 = {{{nationality|}}}  
+
| label12 = Books       |data12={{{books|}}}
| label7 = Era
+
| label13 = Alma&nbsp;mater |data13={{{alma_mater|}}}
| data7 = {{{era|}}}
+
| label14 = Institutions |data14={{{institutions|}}}
| label8 = Region
+
| label15 = Notable&nbsp;ideas |data15={{{notable_ideas|}}}
| data8 = {{{region|}}}
+
| data16 = {{#if:{{{influences|}}} |{{Collapsible list |expand={{{expand|}}}|framestyle=border:none;padding:0;|liststyle=text-align:center;|title=Influenced by|1={{{influences}}}}} f}}
| label9 = Religion
+
| data17 = {{#if:{{{influenced|}}} |{{Collapsible list |expand={{{expand|}}}|framestyle=border:none;padding:0;|liststyle=text-align:center; |title=Influenced |1={{{influenced}}} }}
| data9 = {{{religion|}}}
+
}}
| label10 = [[List of schools of philosophy|School]]
+
| label18 = Awards       |data18={{{awards|}}}
| data10 = {{{school_tradition|}}}
+
| label19 = Signature   |data19={{#if:{{{signature|}}} |{{#invoke:InfoboxImage|InfoboxImage |image={{{signature|}}} |size={{{signature_size|}}} |sizedefault=128px |alt={{{signature alt|{{{signature_alt|}}}}}} }} }}
| label11 = Main&nbsp;interests
+
| label20 = Website     |data20={{{website|}}}
| data11 = {{{main_interests|}}}
+
}}<includeonly>[[Category:Infobox philosopher maintenance]]</includeonly><noinclude>
| label12 = Books
+
 
| data12 = {{{books|}}}
+
{{documentation}}
| label13 = Alma mater
+
<!---Add categories and interwikis to the /doc subpage, not here.--->
| data13 = {{{alma_mater|}}}
+
</noinclude>
| label14 = Institutions
 
| data14 = {{{institutions|}}}
 
| label15 = Notable&nbsp;ideas
 
| data15 = {{{notable_ideas|}}}
 
| data16 = {{#if:{{{influences|}}}
 
            | {{Collapsible list
 
              | expand = {{{expand|}}}
 
              | title = Influenced by
 
              | frame_style = border:none; padding:0;
 
              | list_style = text-align:center;
 
              | 1 = {{{influences}}}
 
              }}
 
          }}
 
| data17 = {{#if:{{{influenced|}}}
 
            | {{Collapsible list
 
              | expand = {{{expand|}}}
 
              | title = Influenced
 
              | frame_style = border:none; padding:0;
 
              | list_style = text-align:center;
 
              | 1 = {{{influenced}}}
 
              }}
 
          }}
 
| label18 = Awards
 
| data18 = {{{awards|}}}
 
| label19 = Signature
 
| data19 = {{#if:{{{signature|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|sizedefault=128px|alt={{{signature alt|{{{signature_alt|}}}}}}}} }}
 
| label20 = Website
 
| data20 = {{{website|}}}
 
}}<includeonly>[[Category:Infobox philosopher maintenance]]</includeonly><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here. --></noinclude>
 

Revision as of 14:45, 6 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
f
[[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