Template:Infobox museum: Difference between revisions

From WikiMD's Wellness Encyclopedia

m 1 revision imported
No edit summary
 
Line 1: Line 1:
{{main other|{{#if:{{Has short description}} |<!--Do nothing--> |{{#invoke:Type in location|main|{{{type|}}}|{{{location|}}}|check-patterns = [Mm]useum;[Hh]all;[Gg]allery;[Cc]enter}}}}}}<!-- end short description
<includeonly>
-->{{Infobox
<div style="border: 1px solid #a2a9b1; background-color: #f9f9f9; padding: 5px; float: right; clear: right; margin: 0 0 1em 1em; width: 25em; font-size: 90%;">
| child = {{{embed|}}}
| bodyclass  = vcard


| headerstyle = background-color: #eee;
<!-- Title -->
<div style="background-color: #f8f9fa; text-align: center; font-weight: bold; font-size: 110%;">
{{{name|{{PAGENAMEBASE}}}}}
</div>


| titleclass  = fn org
<!-- Logo -->
| title      = {{#if:{{{name|}}}|{{{name}}}|{{#ifeq:{{{embed|}}}|yes||{{PAGENAMEBASE}}}}}}
{{#if: {{{logo|}}} |
| subheader  = {{#if:{{{native_name|}}}|<div class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</div>}}
<div style="text-align: center; margin: 5px 0;">
[[File:{{{logo}}}|{{{logo_size|frameless}}}|alt={{{logo_alt|}}}]]
<br><small>{{{logo_caption|}}}</small>
</div>
}}


| image1      = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|}}}|upright={{{logo_upright|1}}}|alt={{{logo_alt|}}}}}
<!-- Image -->
| caption1    = {{{logo_caption|}}}
{{#if: {{{image|}}} |
<div style="text-align: center; margin: 5px 0;">
[[File:{{{image}}}|{{{image_size|frameless}}}|alt={{{alt|}}}]]
<br><small>{{{caption|}}}</small>
</div>
}}


| image2      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{imagesize|}}}}}}|upright={{{image_upright|1.14}}}|alt={{{alt|}}}}}
<!-- Information Table -->
| caption2    = {{{caption|}}}
<table style="width: 100%; border-spacing: 0; margin: 0; padding: 0; text-align: left;">
{{#if: {{{former_names|}}} | <tr><th style="padding: 5px; text-align: left;">Former name(s)</th><td style="padding: 5px;">{{{former_names}}}</td></tr> }}
{{#if: {{{established|}}} | <tr><th style="padding: 5px; text-align: left;">Established</th><td style="padding: 5px;">{{{established}}}</td></tr> }}
{{#if: {{{dissolved|}}} | <tr><th style="padding: 5px; text-align: left;">Dissolved</th><td style="padding: 5px;">{{{dissolved}}}</td></tr> }}
{{#if: {{{location|}}} | <tr><th style="padding: 5px; text-align: left;">Location</th><td style="padding: 5px;">{{{location}}}</td></tr> }}
{{#if: {{{type|}}} | <tr><th style="padding: 5px; text-align: left;">Type</th><td style="padding: 5px;">{{{type}}}</td></tr> }}
{{#if: {{{key_holdings|}}} | <tr><th style="padding: 5px; text-align: left;">Key holdings</th><td style="padding: 5px;">{{{key_holdings}}}</td></tr> }}
{{#if: {{{collections|}}} | <tr><th style="padding: 5px; text-align: left;">Collections</th><td style="padding: 5px;">{{{collections}}}</td></tr> }}
{{#if: {{{collection_size|}}} | <tr><th style="padding: 5px; text-align: left;">Collection size</th><td style="padding: 5px;">{{{collection_size}}}</td></tr> }}
{{#if: {{{visitors|}}} | <tr><th style="padding: 5px; text-align: left;">Visitors</th><td style="padding: 5px;">{{{visitors}}}</td></tr> }}
{{#if: {{{founder|}}} | <tr><th style="padding: 5px; text-align: left;">Founder</th><td style="padding: 5px;">{{{founder}}}</td></tr> }}
{{#if: {{{director|}}} | <tr><th style="padding: 5px; text-align: left;">Director</th><td style="padding: 5px;">{{{director}}}</td></tr> }}
{{#if: {{{publictransit|}}} | <tr><th style="padding: 5px; text-align: left;">Public transit access</th><td style="padding: 5px;">{{{publictransit}}}</td></tr> }}
{{#if: {{{website|}}} | <tr><th style="padding: 5px; text-align: left;">Website</th><td style="padding: 5px;"><a href="{{{website}}}" target="_blank">{{{website}}}</a></td></tr> }}
</table>


| image3      = {{#if:{{{pushpin_map|{{{map_type|}}}}}}|{{Location map|{{{pushpin_map|{{{map_type}}}}}}
</div>
| border  = infobox
</includeonly>
| caption = {{#switch:{{{map_caption|}}}|#default={{{map_caption}}}|none=|=Location within {{#invoke:Location map|data|{{{pushpin_map|{{{map_type}}}}}}|name}}}}
| float  = center
| alt = {{{map_alt|}}}
| width  = {{#if:{{{map_size|}}}|{{{map_size}}}|250}}
| relief  = {{{pushpin_relief|{{{map_relief|}}}}}}
| label  = {{{map dot label|{{{map_dot_label|}}}}}}
| coordinates = {{{coordinates|}}}
}}}}


| image4      = {{#invoke:Infobox mapframe|auto|onByDefault={{#if:{{{pushpin_map|}}}{{{map_type|}}}{{{image_map|}}}|no|yes}}|mapframe-width=250|mapframe-frame-width=250|mapframe-marker=museum|mapframe-wikidata = yes | mapframe-zoom = 13}}
<noinclude>
| caption4    = {{#invoke:Infobox mapframe|autocaption|onByDefault={{#if:{{{pushpin_map|}}}{{{map_type|}}}{{{image_map|}}}|no|yes}}|mapframe-wikidata = yes | mapframe-zoom = 13}}
== Usage ==
This template provides an infobox for museums without using Lua.


| label1    = {{longitem|Former name{{#if:{{{former_names|}}}|s}}}}
=== Parameters ===
| class1    = nickname
* `name` - Name of the museum.
| data1      = {{if empty|{{{former_names|}}}|{{{former_name|}}}}}
* `logo` - Filename for the logo.
* `logo_size` - Size of the logo (default: frameless).
* `logo_alt` - Alt text for the logo.
* `logo_caption` - Caption for the logo.
* `image` - Filename for the main image.
* `image_size` - Size of the image (default: frameless).
* `alt` - Alt text for the image.
* `caption` - Caption for the image.
* `former_names` - Former names of the museum.
* `established` - Year of establishment.
* `dissolved` - Year of dissolution (if applicable).
* `location` - Location of the museum.
* `type` - Type of museum.
* `key_holdings` - Key holdings in the museum.
* `collections` - Description of the collections.
* `collection_size` - Size of the collection.
* `visitors` - Number of visitors.
* `founder` - Founder of the museum.
* `director` - Current director.
* `publictransit` - Access to public transit.
* `website` - URL to the official website.


| label3      = Established
== Notes ==
| data3      = {{{established|}}}
* Empty fields will not be displayed.
* Ensure images are uploaded to the wiki or available on Wikimedia Commons.


| label6      = Dissolved
| data6      = {{{dissolved|}}}
| label7      = Location
| data7      = {{{location|}}}
| rowclass7  = adr
| class7      = locality
| label8      = [[Geographic coordinate system|Coordinates]]
| data8      = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark}} }}
| label9      = Type
| data9      = {{{type|}}}
| label10    = Accreditation
| data10      = {{{accreditation|}}}
| label11    = Key holdings
| data11      = {{{key_holdings|}}}
| label12    = {{#if:{{{collections_type|}}}|{{{collections_type}}}|Collections}}
| data12      = {{{collections|}}}
| label13    = Collection size
| data13      = {{if empty|{{{collection|}}}|{{{collection_size|}}}|{{{collection size|}}}}}
| label14    = Visitors
| data14      = {{{visitors|}}}
| label15    = Founder
| data15      = {{{founder|}}}
| class15    = agent
| label16    = Executive director
| data16      = {{{executive_director|{{{executive director|}}}}}}
| class16    = agent
| label17    = {{#if:{{{leader_type|}}}|{{{leader_type}}}|Manager}}
| data17      = {{{leader|}}}
| class17    = agent
| label18    = Director
| data18      = {{{director|}}}
| class18    = agent
| label19    = President
| data19      = {{{president|}}}
| class19    = agent
| label20    = CEO
| data20      = {{{ceo|}}}
| class20    = agent
| label21    = Chairperson
| data21      = {{{chairperson|}}}
| class21    = agent
| label22    = Curator
| data22      = {{{curator|}}}
| class22    = agent
| label23    = {{#if:{{{architects|}}}|Architects|Architect}}
| data23      = {{{architects|{{{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 | architects | 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 | former_names | founder | historian | image | image_size | imagesize | image_upright | key_holdings | location | logo | logo_size | 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-caption | mapframe-custom | mapframe-id | mapframe-coord | mapframe-wikidata | mapframe-point | mapframe-shape | mapframe-frame-width | mapframe-width | mapframe-frame-height | mapframe-height | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-geomask | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-zoom | mapframe-length_km | mapframe-length_mi | mapframe-area_km2 | mapframe-area_mi2 | mapframe-frame-coordinates | mapframe-frame-coord | mapframe-switcher }}<noinclude>
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 19:11, 6 January 2025


Usage[edit]

This template provides an infobox for museums without using Lua.

Parameters[edit]

  • `name` - Name of the museum.
  • `logo` - Filename for the logo.
  • `logo_size` - Size of the logo (default: frameless).
  • `logo_alt` - Alt text for the logo.
  • `logo_caption` - Caption for the logo.
  • `image` - Filename for the main image.
  • `image_size` - Size of the image (default: frameless).
  • `alt` - Alt text for the image.
  • `caption` - Caption for the image.
  • `former_names` - Former names of the museum.
  • `established` - Year of establishment.
  • `dissolved` - Year of dissolution (if applicable).
  • `location` - Location of the museum.
  • `type` - Type of museum.
  • `key_holdings` - Key holdings in the museum.
  • `collections` - Description of the collections.
  • `collection_size` - Size of the collection.
  • `visitors` - Number of visitors.
  • `founder` - Founder of the museum.
  • `director` - Current director.
  • `publictransit` - Access to public transit.
  • `website` - URL to the official website.

Notes[edit]

  • Empty fields will not be displayed.
  • Ensure images are uploaded to the wiki or available on Wikimedia Commons.