Template:Infobox laboratory and Template:Infobox laboratory/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Add two more parameters to check for unknown parameters
 
Fixed the duplicate argument issue
 
Line 8: Line 8:
|image2={{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|upright={{{image_upright|{{{upright|}}}}}}|sizedefault=frameless|alt={{{alt|}}}}}
|image2={{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|upright={{{image_upright|{{{upright|}}}}}}|sizedefault=frameless|alt={{{alt|}}}}}
|caption2={{{caption|}}}
|caption2={{{caption|}}}

| image3 = {{#invoke:Infobox mapframe|auto|mapframe-marker=library|mapframe-frame-width=250|mapframe-zoom=11|onByDefault={{#if:{{{map|}}}{{{map_image|}}}|no|yes}}}}
| caption3 = {{#invoke:Infobox mapframe|autocaption|onByDefault={{#if:{{{map|}}}{{{map_image|}}}|no|yes}}}}

| image4 = {{#if:{{both|{{{location_map|}}}|{{{coordinates|}}}{{#property:P625}}}}|{{Location map|{{{location_map}}}
|alt = {{{map_alt|}}}
|coordinates = {{{coordinates|}}}
|float = center
|label = {{if empty| {{{map dot label|}}} | {{{map_dot_label|}}} }}
|relief = {{{relief|}}}
|border = infobox
|caption = {{If empty|{{{map_caption|}}}|Location in {{#invoke:Location map|data|{{{location_map}}}|name}}}}
|width = {{{map_size|}}}
}}}}

|labelstyle=padding-right:0.65em<!--(to ensure some gap between (long/unwrapped) labels and data following on the same line)-->
|labelstyle=padding-right:0.65em<!--(to ensure some gap between (long/unwrapped) labels and data following on the same line)-->
| data1 = {{#if:{{{coordinates|}}}
|label1=[[Latin]]
|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark|{{#if:{{{country|}}}|region:{{Country abbreviation|{{{country}}}}}}}}} |}}
|data1={{#if:{{{latin_name|}}}|''<div class=nickname>{{{latin_name}}}</div>''}}

|label2={{longitem|Former name}}
|label2=[[Latin]]
|data2={{{former_name|}}}
|data2={{#if:{{{latin_name|}}}|''<div class=nickname>{{{latin_name}}}</div>''}}
|class2=nickname
|label3=[[Motto]]
|label3={{longitem|Former name}}
|data3={{{motto|}}}
|data3={{{former_name|}}}
|class3=nickname
|label4=Established
|label4=[[Motto]]
|data4={{{established|}}}
|data4={{{motto|}}}
|label5={{longitem|Laboratory type}}
|label5=Established
|class5=category
|data5={{{lab_type|}}}
|data5={{{established|}}}
|label6={{longitem|Laboratory type}}
|label6=Research&nbsp;type<!--(not wrappable as otherwise regularly seems to be only wrapped label)-->
|class6=category
|class6=category
|data6={{{type|}}}
|data6={{{lab_type|}}}
|label7=Research&nbsp;type<!--(not wrappable as otherwise regularly seems to be only wrapped label)-->
|label7=[[Budget]]
|class7=category
|data7={{{budget|}}}
|data7={{{type|}}}
|label8=[[Debt]]
|label8=[[Budget]]
|data8={{{debt|}}}
|data8={{{budget|}}}
|label9={{longitem|Field&nbsp;of research}}
|label9=[[Debt]]
|class9=category
|data9={{{research_field|}}}
|data9={{{debt|}}}
|label10={{longitem|Field&nbsp;of research}}
|label10=[[President (corporate title)|President]]
|class10=agent
|class10=category
|data10={{{president|}}}
|data10={{{research_field|}}}
|label11={{nowrap|[[Vice president#In business |Vice president]]}}
|label11=[[President (corporate title)|President]]
|class11=agent
|class11=agent
|data11={{{vice-president|}}}
|data11={{{president|}}}
|label12={{nowrap|[[Vice president#In business |Vice president]]}}
|label12=[[Dean (education)|Dean]]
|class12=agent
|class12=agent
|data12={{{dean|}}}
|data12={{{vice-president|}}}
|label13=[[Director (business)|Director]]{{#if:{{{directors|}}}|s}}
|label13=[[Dean (education)|Dean]]
|class13=agent
|class13=agent
|data13={{#if:{{{directors|}}}|{{{directors}}}|{{{director|}}}}}
|data13={{{dean|}}}
|label14={{longitem|{{{head_label}}}}}
|label14=[[Director (business)|Director]]{{#if:{{{directors|}}}|s}}
|class14=agent
|class14=agent
|data14={{#if:{{{head_label|}}}|{{{head|}}}}}
|data14={{#if:{{{directors|}}}|{{{directors}}}|{{{director|}}}}}
|label15=[[Faculty (division)|Faculty]]
|label15={{longitem|{{{head_label}}}}}
|class15=agent
|data15={{{faculty|}}}
|data15={{#if:{{{head_label|}}}|{{{head|}}}}}
|label16=[[Employment|Staff]]
|label16=[[Faculty (division)|Faculty]]
|data16={{{staff|}}}
|data16={{{faculty|}}}
|label17=[[Student]]s
|label17=[[Employment|Staff]]
|data17={{{students|}}}
|data17={{{staff|}}}
|label18=[[Alumni]]
|label18=[[Student]]s
|data18={{{alumni|}}}
|data18={{{students|}}}
|label19=Address
|label19=[[Alumni]]
|class19=label
|data19={{{address|}}}
|data19={{{alumni|}}}
|label20=Location
|label20=Address
|class20=label
|data20=
|data20={{{address|}}}
|label21=Location
|data21=
{{br separated entries
{{br separated entries
|1={{comma separated entries
|1={{comma separated entries
Line 64: Line 82:
|2={{#if:{{{state|}}} |{{{state}}} |{{{province|}}} }}
|2={{#if:{{{state|}}} |{{{state}}} |{{{province|}}} }}
|3={{{country|}}}
|3={{{country|}}}
|4= {{if empty|{{{zipcode|}}}|{{{postalcode|}}}}}
}}
}}
|2={{if empty|{{{coordinates|}}}|{{{coor|}}}}}
}}
}}
|label21= {{#if: {{{zipcode|}}} | {{longitem|[[ZIP Code|ZIP code]]}} | {{longitem|[[Postal code]]}} }}
|class21= label
|data21={{if empty|{{{zipcode|}}}|{{{postalcode|}}}}}
|label22=[[Campus]]
|label22=[[Campus]]
|data22={{{campus|}}}
|data22={{{campus|}}}
Line 85: Line 100:
|label28=Website
|label28=Website
|data28={{{website|}}}
|data28={{{website|}}}
|data29={{{module|}}}
| header30 = {{#if:{{{location_map|}}} | {{{map_label|Map}}} }}
| data31 = {{#if:{{both|{{{location_map|}}}|{{{coordinates|}}}{{#property:P625}}}}|{{Location map|{{{location_map}}}
|alt = {{{map_alt|}}}
|coordinates = {{{coordinates|}}}
|float = center
|label = {{if empty| {{{map dot label|}}} | {{{map_dot_label|}}} }}
|relief = {{{relief|}}}
|border = infobox
|caption = {{If empty|{{{map_caption|}}}|Location in {{#invoke:Location map|data|{{{location_map}}}|name}}}}
|width = {{{map_size|}}}
}}}}
|belowstyle=text-align:left; font-size:smaller
|belowstyle=text-align:left; font-size:smaller
|below={{{footnotes|}}}
|below={{{footnotes|}}}
}}{{#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 | map_caption | map dot label | 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>
}}{{#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}}
{{Documentation}}
<!-- Add categories to the /doc subpage, interwikis to Wikidata, not here -->
<!-- Add categories to the /doc subpage, interwikis to Wikidata, not here -->