Template:Infobox museum: Difference between revisions
From WikiMD's Wellness Encyclopedia
m 1 revision imported |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | |||
<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%;"> | |||
<!-- Title --> | |||
<div style="background-color: #f8f9fa; text-align: center; font-weight: bold; font-size: 110%;"> | |||
{{{name|{{PAGENAMEBASE}}}}} | |||
</div> | |||
<!-- Logo --> | |||
{{#if: {{{logo|}}} | | |||
<div style="text-align: center; margin: 5px 0;"> | |||
[[File:{{{logo}}}|{{{logo_size|frameless}}}|alt={{{logo_alt|}}}]] | |||
<br><small>{{{logo_caption|}}}</small> | |||
</div> | |||
}} | |||
<!-- Image --> | |||
{{#if: {{{image|}}} | | |||
<div style="text-align: center; margin: 5px 0;"> | |||
[[File:{{{image}}}|{{{image_size|frameless}}}|alt={{{alt|}}}]] | |||
<br><small>{{{caption|}}}</small> | |||
</div> | |||
}} | |||
| | <!-- Information Table --> | ||
| | <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> | |||
</div> | |||
</includeonly> | |||
<noinclude> | |||
== Usage == | |||
This template provides an infobox for museums without using Lua. | |||
=== Parameters === | |||
* `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 == | |||
* Empty fields will not be displayed. | |||
* Ensure images are uploaded to the wiki or available on Wikimedia Commons. | |||
</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.