Difference between revisions of "Template:Infobox philosopher"

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

Revision as of 06:11, 15 June 2014

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

50px 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
Influences
Influenced
[[Category:Infobox templates|Template:Remove first word]]
[[Category:Infobox templates|Template:Remove first word]]Template:Wikidata image
[[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