Difference between revisions of "Template:Infobox laboratory"
imported>Frietjes |
imported>Funandtrvl (fix redirect) |
||
| (23 intermediate revisions by 11 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{ | + | {{Infobox |
| − | | bodyclass = vcard | + | |bodyclass=vcard |
| − | + | |titleclass=fn org | |
| − | | | + | |title=<includeonly>{{{name|{{PAGENAMEBASE}}}}}{{#if:{{{native_name|}}}|<br /><div class=nickname {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</div>}}</includeonly> |
| − | | title = <includeonly | + | |subheader={{#if:{{{other_name|}}}|<div class=nickname>{{{other_name}}}</div>}} |
| − | + | |image={{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|}}}|upright={{{logo_upright|{{{upright|}}}}}}|sizedefault=frameless|alt={{{logo_alt|}}}}} | |
| − | | subheader = {{#if:{{{other_name|}}}|< | + | |caption={{{logo_caption|}}} |
| − | + | |image2={{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|upright={{{image_upright|{{{upright|}}}}}}|sizedefault=frameless|alt={{{alt|}}}}} | |
| − | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|}}}|sizedefault=frameless|alt={{{logo_alt|}}}}} | + | |caption2={{{caption|}}} |
| − | | caption = {{{logo_caption|}}} | + | |labelstyle=padding-right:0.65em<!--(to ensure some gap between (long/unwrapped) labels and data following on the same line)--> |
| − | + | |label1=[[Latin]] | |
| − | | image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}} | + | |data1={{#if:{{{latin_name|}}}|''<div class=nickname>{{{latin_name}}}</div>''}} |
| − | | caption2 = {{{caption|}}} | + | |label2={{longitem|Former name}} |
| − | + | |data2={{{former_name|}}} | |
| − | | label1 = [[Latin]] | + | |class2=nickname |
| − | | data1 = {{#if:{{{latin_name|}}}|''< | + | |label3=[[Motto]] |
| − | + | |data3={{{motto|}}} | |
| − | | label2 = Former name | + | |label4=Established |
| − | | data2 = {{{former_name|}}} | + | |data4={{{established|}}} |
| − | | class2 = nickname | + | |label5={{longitem|Laboratory type}} |
| − | + | |class5=category | |
| − | | label3 = Motto | + | |data5={{{lab_type|}}} |
| − | | data3 = {{{motto|}}} | + | |label6=Research type<!--(not wrappable as otherwise regularly seems to be only wrapped label)--> |
| − | + | |class6=category | |
| − | | label4 = Established | + | |data6={{{type|}}} |
| − | | data4 = {{{established|}}} | + | |label7=[[Budget]] |
| − | + | |data7={{{budget|}}} | |
| − | | label5 = Laboratory type | + | |label8=[[Debt]] |
| − | | class5 = category | + | |data8={{{debt|}}} |
| − | | data5 = {{{lab_type|}}} | + | |label9={{longitem|Field of research}} |
| − | + | |class9=category | |
| − | | label6 = Research type | + | |data9={{{research_field|}}} |
| − | | class6 = category | + | |label10=[[President (corporate title)|President]] |
| − | | data6 = {{{type|}}} | + | |class10=agent |
| − | + | |data10={{{president|}}} | |
| − | | label7 = Budget | + | |label11={{nowrap|[[Vice president#In business |Vice president]]}} |
| − | | data7 = {{{budget|}}} | + | |class11=agent |
| − | + | |data11={{{vice-president|}}} | |
| − | | label8 = Debt | + | |label12=[[Dean (education)|Dean]] |
| − | | data8 = {{{debt|}}} | + | |class12=agent |
| − | + | |data12={{{dean|}}} | |
| − | | label9 = Field of research | + | |label13=[[Director (business)|Director]]{{#if:{{{directors|}}}|s}} |
| − | | class9 = category | + | |class13=agent |
| − | | data9 = {{{research_field|}}} | + | |data13={{#if:{{{directors|}}}|{{{directors}}}|{{{director|}}}}} |
| − | + | |label14={{longitem|{{{head_label}}}}} | |
| − | | label10 = President | + | |class14=agent |
| − | | class10 = agent | + | |data14={{#if:{{{head_label|}}}|{{{head|}}}}} |
| − | | data10 = {{{president|}}} | + | |label15=[[Faculty (division)|Faculty]] |
| − | + | |data15={{{faculty|}}} | |
| − | | label11 = Vice | + | |label16=[[Employment|Staff]] |
| − | | class11 = agent | + | |data16={{{staff|}}} |
| − | | data11 = {{{vice-president|}}} | + | |label17=[[Student]]s |
| − | + | |data17={{{students|}}} | |
| − | | label12 = Dean | + | |label18=[[Alumnus|Alumni]] |
| − | | class12 = agent | + | |data18={{{alumni|}}} |
| − | | data12 = {{{dean|}}} | + | |label19=Address |
| − | + | |class19=label | |
| − | | label13 = Director | + | |data19={{{address|}}} |
| − | | class13 = agent | + | |label20=Location |
| − | | data13 = {{{director|}}} | + | |data20= |
| − | + | {{br separated entries | |
| − | | label14 = {{{head_label}}} | + | |1={{comma separated entries |
| − | | class14 = agent | + | |1={{{city|}}} |
| − | | data14 = {{#if:{{{head_label|}}}|{{{head|}}}}} | + | |2={{#if:{{{state|}}} |{{{state}}} |{{{province|}}} }} |
| − | + | |3={{{country|}}} | |
| − | | label15 = | ||
| − | | data15 = {{{faculty|}}} | ||
| − | |||
| − | | label16 = Staff | ||
| − | | data16 = {{{staff|}}} | ||
| − | |||
| − | | label17 = | ||
| − | | data17 = {{{students|}}} | ||
| − | |||
| − | | label18 = Alumni | ||
| − | | data18 = {{{alumni|}}} | ||
| − | |||
| − | | label19 = Address | ||
| − | | class19 = label | ||
| − | | data19 = {{{address|}}} | ||
| − | |||
| − | | label20 = Location | ||
| − | | data20 = {{br separated entries | ||
| − | | 1 = {{comma separated entries | ||
| − | | 1 = {{{city|}}} | ||
| − | | 2 = {{#if:{{{state|}}}|{{{state}}}|{{{province|}}}}} | ||
| − | | 3 = {{{country|}}} | ||
}} | }} | ||
| − | | 2 = {{{coor|}}} | + | |2={{if empty|{{{coordinates|}}}|{{{coor|}}}}} |
| − | + | }} | |
| − | + | |label21= {{#if: {{{zipcode|}}} | {{longitem|[[ZIP Code|ZIP code]]}} | {{longitem|[[Postal code]]}} }} | |
| − | | label21 = | + | |class21= label |
| − | | class21 = label | + | |data21={{if empty|{{{zipcode|}}}|{{{postalcode|}}}}} |
| − | | data21 = {{{zipcode|}}} | + | |label22=[[Campus]] |
| − | + | |data22={{{campus|}}} | |
| − | | label22 = Campus | + | |label23={{longitem|{{{free_label}}}}} |
| − | | data22 = {{{campus|}}} | + | |data23={{#if:{{{free_label|}}}|{{{free|}}}}} |
| − | + | |label24=Nickname | |
| − | | label23 = {{{free_label}}} | + | |class24=nickname |
| − | | data23 = {{#if:{{{free_label|}}}|{{{free|}}}}} | + | |data24={{{nickname|}}} |
| − | + | |label25=[[Consortium|Affiliations]] | |
| − | | label24 = Nickname | + | |data25={{{affiliations|}}} |
| − | | class24 = nickname | + | |label26={{longitem|Operating agency}} |
| − | | data24 = {{{nickname|}}} | + | |data26={{{operating_agency|}}} |
| − | + | |label27={{longitem|[[List of Nobel laureates|{{allow wrap|Nobel laureates}}]]}} | |
| − | | label25 = Affiliations | + | |data27={{{nobel_laureates|}}} |
| − | | data25 = {{{affiliations|}}} | + | |label28=Website |
| − | + | |data28={{{website|}}} | |
| − | | label26 = Operating agency | + | |data29={{{module|}}} |
| − | | data26 = {{{operating_agency|}}} | + | | header30 = {{#if:{{{location_map|}}} | {{{map_label|Map}}} }} |
| − | + | | data31 = {{#if:{{both|{{{location_map|}}}|{{{coordinates|}}}{{#property:P625}}}}|{{Location map|{{{location_map}}} | |
| − | | label27 = Nobel laureates | + | |alt = {{{map_alt|}}} |
| − | | data27 = {{{nobel_laureates|}}} | + | |coordinates = {{{coordinates|}}} |
| − | + | |float = center | |
| − | | label28 = Website | + | |label = {{if empty| {{{map dot label|}}} | {{{map_dot_label|}}} }} |
| − | | data28 = {{{website|}}} | + | |relief = {{{relief|}}} |
| − | + | |border = infobox | |
| − | | data29 = {{{module|}}} | + | |caption = {{If empty|{{{map_caption|}}}|Location in {{#invoke:Location map|data|{{{location_map}}}|name}}}} |
| − | + | |width = {{{map_size|}}} | |
| − | | belowstyle = text-align:left; font-size:smaller | + | }}}} |
| − | | below = | + | |belowstyle=text-align:left; font-size:smaller |
| − | {{{footnotes|}}} | + | |below={{{footnotes|}}} |
| − | }}<noinclude> | + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox laboratory with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox laboratory]] with unknown parameter "_VALUE_"|ignoreblank=y| address | affiliations | alt | alumni | budget | campus | caption | city | coor | coordinates | country | dean | debt | director | directors | established | faculty | footnotes | former_name | free | free_label | head | head_label | image | image_size | image_upright | lab_type | latin_name | location_map | logo | logo_alt | logo_caption | logo_size | logo_upright | module | motto | name | native_name | native_name_lang | nickname | nobel_laureates | operating_agency | other_name | postalcode| president | province | research_field | staff | state | students | type | upright | vice-president | website | zipcode }}<noinclude> |
| − | {{ | + | {{Documentation}} |
| − | <!-- | + | <!-- Add categories to the /doc subpage, interwikis to Wikidata, not here --> |
</noinclude> | </noinclude> | ||
Latest revision as of 03:34, 21 September 2020
| Location | Script error: No such module "If empty". |
|---|---|
| Script error: No such module "If empty". |
[[Category:Infobox templates|Template:Remove first word]]
| This template uses Lua: |
This {{Infobox laboratory}} closely resembles the related {{Infobox university}}. To see an example of {{Infobox laboratory}} in use, see the section below and / or Lawrence Berkeley National Laboratory.
Usage
Template:Parameter names example
{{Infobox laboratory
| name = <!-- required -->
| native_name =
| native_name_lang =
| other_name =
| logo =
| logo_size =
| logo_upright =
| logo_alt =
| logo_caption =
| image =
| image_size =
| image_upright =
| alt =
| caption =
| latin_name =
| former_name =
| motto =
| established = <!-- required {{start date and age|YYYY|MM|DD|df=y}} -->
| lab_type =
| type = <!-- Research type (basic, applied, classified, unclassified, etc.) -->
| budget =
| debt =
| research_field =
| president =
| vice-president =
| dean =
| director = <!-- or |directors= -->
| head_label =
| head =
| faculty =
| staff =
| students =
| alumni =
| address =
| city = <!-- required, if location to be displayed -->
| state = <!-- or |province= -->
| country =
| coordinates = <!-- {{coord|LAT|LON|type:landmark|display=title,inline}} -->
| location_map = <!-- Use this to put in a location map, e.g. Oxford (central) -->
| zipcode = <!-- or |postalcode= -->
| campus =
| free_label =
| free =
| nickname =
| affiliations =
| operating_agency =
| nobel_laureates = <!-- number and/or names of Nobel laureates associated with the laboratory / institute -->
| website = <!-- {{URL|example.edu}} -->
| footnotes =
}}
Parameters
| Parameter | Explanation |
|---|---|
name |
Common name (defaults to article name if left blank) |
native_name |
Name in the regional language |
other_name |
Any other common names for the laboratory |
latin_name |
Name in Latin |
former_name |
Any former names for the laboratory |
logo |
Logo file name: abc.jpg, xpz.png, 123.gif, etc. |
logo_alt |
Alt text for the logo, for visually impaired readers. One word (such as "logo") is rarely sufficient. See WP:ALT. |
logo_upright |
Scales the logo from its default size by the given factor. Values less than 1 scale the image down (0.9 = 90%) and values greater than 1 scale the image up (1.15 = 115%). |
logo_caption |
Caption for the logo, if needed. |
image |
Image file name: abc.jpg, xpz.png, 123.gif, etc. |
alt |
Alt text for the image, for visually impaired readers. One word (such as "photograph") is rarely sufficient. See WP:ALT. |
image_upright |
Scales the image from its default size by the given factor. Values less than 1 scale the image down (0.9 = 90%) and values greater than 1 scale the image up (1.15 = 115%). |
caption |
Caption for image, if needed. |
motto |
|
established |
Date established |
lab_type |
Laboratory type |
type |
Research type |
budget |
|
debt |
|
research_field |
Field of research |
president |
|
vice-president |
|
dean |
|
director or directors |
|
head_label |
|
head |
|
faculty |
|
staff |
|
students |
|
alumni |
|
address |
|
city |
|
state or province |
|
country |
|
coordinates |
|
location_map |
map to use for the location_map module |
zipcode |
|
campus |
|
free_label |
|
free |
|
nickname |
|
affiliations |
|
operating_agency |
|
nobel_laureates |
|
website |
|
module |
|
footnotes |
Example
| The lab's Molecular Foundry The lab's Molecular Foundry | |
| Motto | Bringing science solutions to the world |
|---|---|
| Established | Template:Start date and age |
| Research type | Scientific research and energy technologies |
| Budget | Template:US$ billion (2019) |
| Director | Michael Witherell |
| Staff | 3,816 |
| Students | 800 |
| Location | Berkeley, California, United States Script error: No such module "If empty". |
| Script error: No such module "If empty". | |
| Campus | 200 acres (81 ha) |
Operating agency | University of California |
[[List of Nobel laureates|
| 13 |
| Website | Template:URL |
{{Infobox laboratory
| name = Lawrence Berkeley National Laboratory
| motto = Bringing science solutions to the world
| image = Molecular_Foundry_Berkeley.jpg
| alt = The lab's Molecular Foundry
| caption = The lab's [[Molecular Foundry]]
| established = {{start date and age|1931|08|26}}
| director = [[Michael Witherell]]
| city = [[Berkeley, California|Berkeley]]
| state = California
| country = United States
| coordinates = ({{thin space|use {{tl|coord}}}})
| budget = {{nowrap|{{US$|1.1|link=yes}} billion (2019)}}
| type = Scientific research and energy technologies
| staff = 3,816
| campus = {{convert|200|acre|ha}}
| students = 800
| nobel_laureates = 13
| operating_agency = [[University of California]]
| website = {{URL|https://www.lbl.gov/}}
}}
Microformat
TemplateData
TemplateData for Infobox laboratory
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | no description | Unknown | optional |
| Native_name | native_name | no description | Unknown | optional |
| Native_name_lang | native_name_lang | no description | Unknown | optional |
| Other_name | other_name | no description | Unknown | optional |
| Logo | logo | no description | Unknown | optional |
| Logo_size | logo_size | no description | Unknown | optional |
| Logo_upright | logo_upright | no description | Unknown | optional |
| Upright | upright | no description | Unknown | optional |
| Logo_alt | logo_alt | no description | Unknown | optional |
| Logo_caption | logo_caption | no description | Unknown | optional |
| Image | image | no description | Unknown | optional |
| Image_size | image_size | no description | Unknown | optional |
| Image_upright | image_upright | no description | Unknown | optional |
| Alt | alt | no description | Unknown | optional |
| Caption | caption | no description | Unknown | optional |
| Latin_name | latin_name | no description | Unknown | optional |
| Former_name | former_name | no description | Unknown | optional |
| Motto | motto | no description | Unknown | optional |
| Established | established | no description | Unknown | optional |
| Lab_type | lab_type | no description | Unknown | optional |
| Type | type | no description | Unknown | optional |
| Budget | budget | no description | Unknown | optional |
| Debt | debt | no description | Unknown | optional |
| Research_field | research_field | no description | Unknown | optional |
| President | president | no description | Unknown | optional |
| Vice-president | vice-president | no description | Unknown | optional |
| Dean | dean | no description | Unknown | optional |
| Directors | directors | no description | Unknown | optional |
| Director | director | no description | Unknown | optional |
| Head_label | head_label | no description | Unknown | optional |
| Head | head | no description | Unknown | optional |
| Faculty | faculty | no description | Unknown | optional |
| Staff | staff | no description | Unknown | optional |
| Students | students | no description | Unknown | optional |
| Alumni | alumni | no description | Unknown | optional |
| Address | address | no description | Unknown | optional |
| City | city | no description | Unknown | optional |
| State | state | no description | Unknown | optional |
| Province | province | no description | Unknown | optional |
| Country | country | no description | Unknown | optional |
| Coordinates | coordinates | no description | Unknown | optional |
| Coor | coor | no description | Unknown | optional |
| zipcode | zipcode postalcode | no description | String | optional |
| Campus | campus | no description | Unknown | optional |
| Free_label | free_label | no description | Unknown | optional |
| Free | free | no description | Unknown | optional |
| Nickname | nickname | no description | Unknown | optional |
| Affiliations | affiliations | no description | Unknown | optional |
| Operating_agency | operating_agency | no description | Unknown | optional |
| Nobel_laureates | nobel_laureates | no description | Unknown | optional |
| Website | website | no description | Unknown | optional |
| Module | module | no description | Unknown | optional |
| Location_map | location_map | no description | Unknown | optional |
| Map_label | map_label | no description | Unknown | optional |
| Map_alt | map_alt | no description | Unknown | optional |
| Map dot label | map dot label | no description | Unknown | optional |
| Map_dot_label | map_dot_label | no description | Unknown | optional |
| Relief | relief | no description | Unknown | optional |
| Map_caption | map_caption | no description | Unknown | optional |
| Map_size | map_size | no description | Unknown | optional |
| Footnotes | footnotes | no description | Unknown | optional |
Tracking category
See also
Template:Organization infoboxes
| The above documentation is transcluded from Template:Infobox laboratory/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |