Template:Infobox museum: Difference between revisions
hide mapframe if pushpin_map is present
m (1 revision imported) |
(hide mapframe if pushpin_map is present) |
||
Line 1: | Line 1: | ||
{{Infobox | {{#invoke:Type in location|main|{{{type|}}}|{{{location|}}}|check-patterns = [Mm]useum;[Hh]all;[Gg]allery;[Cc]enter}}{{Infobox | ||
| child = {{{embed|}}} | |||
| bodyclass = vcard | | bodyclass = vcard | ||
Line 5: | Line 6: | ||
| titleclass = fn org | | titleclass = fn org | ||
| title = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}} | | title = {{#if:{{{name|}}}|{{{name}}}|{{#ifeq:{{{embed|}}}|yes||{{PAGENAMEBASE}}}}}} | ||
| subheader = {{#if:{{{native_name|}}}|< | | subheader = {{#if:{{{native_name|}}}|<div class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</div>}} | ||
| image1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|sizedefault=frameless|maxsize=300|upright={{{logo_upright|1}}}|alt={{{logo_alt|}}}}} | | image1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|sizedefault=frameless|maxsize=300|upright={{{logo_upright|1}}}|alt={{{logo_alt|}}}}} | ||
Line 16: | Line 17: | ||
| image3 = {{#if:{{{pushpin_map|{{{map_type|}}}}}}|{{Location map|{{{pushpin_map|{{{map_type}}}}}} | | image3 = {{#if:{{{pushpin_map|{{{map_type|}}}}}}|{{Location map|{{{pushpin_map|{{{map_type}}}}}} | ||
| border = infobox | | border = infobox | ||
| caption = {{# | | caption = {{#switch:{{{map_caption|}}}|#default={{{map_caption}}}|none=|=Location within {{#invoke:Location map|data|{{{pushpin_map|{{{map_type}}}}}}|name}}}} | ||
| float = center | | float = center | ||
| alt = {{{map_alt|}}} | | alt = {{{map_alt|}}} | ||
Line 24: | Line 25: | ||
| coordinates = {{{coordinates|}}} | | coordinates = {{{coordinates|}}} | ||
}}}} | }}}} | ||
| image4 = {{#if:{{{pushpin_map|}}}{{{map_type|}}}{{{image_map|}}}||{{If declined|{{{mapframe|}}}||{{Infobox mapframe | |||
|zoom={{{mapframe-zoom|}}} | |||
|frame-width={{{mapframe-width|}}} | |||
|frame-height={{{mapframe-height|}}} | |||
|marker={{{mapframe-marker|museum}}} | |||
|marker-color={{{mapframe-marker-color|{{{mapframe-marker-colour|}}}}}} | |||
|frame-lat={{{mapframe-lat|{{{mapframe-latitude|}}}}}} | |||
|frame-long={{{mapframe-long|{{{mapframe-longitude|}}}}}} | |||
}}}}}} | |||
| caption4 = {{#if:{{{pushpin_map|}}}{{{map_type|}}}{{{image_map|}}}||{{If declined|{{{mapframe|}}}||{{{mapframe-caption|}}}}}}} | |||
| label1 = Former name | | label1 = Former name | ||
Line 29: | Line 41: | ||
| class1 = nickname | | class1 = nickname | ||
| | | label3 = Established | ||
| | | data3 = {{{established|}}} | ||
| label6 = | | label6 = Dissolved | ||
| data6 = {{{ | | data6 = {{{dissolved|}}} | ||
| label7 = | | label7 = Location | ||
| data7 = {{{ | | data7 = {{{location|}}} | ||
| rowclass7 = adr | |||
| class7 = locality | |||
| label8 = | | label8 = [[Geographic coordinate system|Coordinates]] | ||
| data8 = {{{ | | data8 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark}} }} | ||
| label9 = | | label9 = Type | ||
| data9 = {{{ | | data9 = {{{type|}}} | ||
| label10 = | | label10 = Accreditation | ||
| data10 = {{{ | | data10 = {{{accreditation|}}} | ||
| label11 = | | label11 = Key holdings | ||
| data11 = {{{ | | data11 = {{{key_holdings|}}} | ||
| label12 = | | label12 = {{#if:{{{collections_type|}}}|{{{collections_type}}}|Collections}} | ||
| data12 = {{{ | | data12 = {{{collections|}}} | ||
| label13 = | | label13 = Collection size | ||
| data13 = {{{ | | data13 = {{if empty|{{{collection|}}}|{{{collection_size|}}}|{{{collection size|}}}}} | ||
| label14 = | | label14 = Visitors | ||
| data14 = {{{ | | data14 = {{{visitors|}}} | ||
| label15 = | | label15 = Founder | ||
| data15 = {{{ | | data15 = {{{founder|}}} | ||
| class15 = agent | | class15 = agent | ||
| label16 = | | label16 = Executive director | ||
| data16 = {{{ | | data16 = {{{executive_director|{{{executive director|}}}}}} | ||
| class16 = agent | | class16 = agent | ||
| label17 = | | label17 = {{#if:{{{leader_type|}}}|{{{leader_type}}}|Manager}} | ||
| data17 = {{{ | | data17 = {{{leader|}}} | ||
| class17 = agent | | class17 = agent | ||
| label18 = | | label18 = Director | ||
| data18 = {{{ | | data18 = {{{director|}}} | ||
| class18 = agent | | class18 = agent | ||
| label19 = | | label19 = President | ||
| data19 = {{{ | | data19 = {{{president|}}} | ||
| class19 = agent | | class19 = agent | ||
| label20 = | | label20 = CEO | ||
| data20 = {{{ | | data20 = {{{ceo|}}} | ||
| class20 = agent | | class20 = agent | ||
| label21 = | | label21 = Chairperson | ||
| data21 = {{{ | | data21 = {{{chairperson|}}} | ||
| class21 = agent | | class21 = agent | ||
| label22 = Employees | | label22 = Curator | ||
| | | data22 = {{{curator|}}} | ||
| class22 = agent | |||
| label23 = Architect | |||
| data23 = {{{architect|}}} | |||
| class23 = agent | |||
| label24 = Historian | |||
| data24 = {{{historian|}}} | |||
| class24 = agent | |||
| label25 = Owner | |||
| data25 = {{{owner|}}} | |||
| class25 = agent | |||
| label26 = Employees | |||
| data26 = {{{employees|}}} | |||
| | | label27 = Public transit access | ||
| | | data27 = {{{publictransit|}}} | ||
| | | label28 = Nearest {{#if:{{{parking|}}}|parking|car park}} | ||
| | | data28 = {{#if:{{{parking|}}}|{{{parking}}}|{{{car_park|}}}}} | ||
| | | label29 = Website | ||
| | | data29 = {{{website|}}} | ||
| | | header30 = {{#if:{{{network|}}}|{{Infobox museum/{{{network}}} network|header}} }} | ||
| | | data31 = {{#if:{{{network|}}}|{{Infobox museum/{{{network}}} network|data}} }} | ||
| | | header32 = {{{nrhp|{{{embedded|}}}}}} | ||
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox museum with unsupported parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox museum]] with unknown parameter "_VALUE_"|ignoreblank=y| accreditation | alt | architect | caption | car_park | ceo | chairperson | leader | leader_type | collection | collection size | collection_size | collections | coordinates | curator | director | dissolved | embedded | employees | established | executive director | executive_director | former_name | founder | historian | image | image_size | imagesize | image_upright | key_holdings | location | logo | logo_alt | logo_caption | logo_upright | map dot label | map_dot_label | map_alt | map_caption | map_relief | map_size | map_type | name | native_name | native_name_lang | network | nrhp | owner | parking | president | publictransit | pushpin_map | pushpin_relief | type | visitors | website }}<noinclude> | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox museum with unsupported parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox museum]] with unknown parameter "_VALUE_"|ignoreblank=y| accreditation | alt | architect | caption | car_park | ceo | chairperson | leader | leader_type | collection | collection size | collection_size | collections | collections_type | coordinates | curator | director | dissolved | embed | embedded | employees | established | executive director | executive_director | former_name | founder | historian | image | image_size | imagesize | image_upright | key_holdings | location | logo | logo_alt | logo_caption | logo_upright | map dot label | map_dot_label | map_alt | map_caption | map_relief | map_size | map_type | name | native_name | native_name_lang | network | nrhp | owner | parking | president | publictransit | pushpin_map | pushpin_relief | type | visitors | website | mapframe | mapframe-zoom | mapframe-width | mapframe-height | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-caption | mapframe-lat | mapframe-latitude | mapframe-long | mapframe-longitude }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |