Content deleted Content added
No edit summary |
→Maps: document updates in the code |
||
(39 intermediate revisions by 24 users not shown) | |||
Line 1:
{{Documentation subpage}}
{{High-use}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Lua|Module:Infobox|Module:InfoboxImage|Module:WikidataIB|Module:Location map|Module:Check for unknown parameters}}
== Usage ==
To use this infobox, copy the text below to the top of the page describing the library and complete the relevant fields.
{{Generic template demo
Line 19 ⟶ 20:
| caption
| country
| address
| city
| postcode
| state
| region
| type
| scope
Line 24 ⟶ 30:
| architect
| ref_legal_mandate
| service_area
| coordinates = {{coord|0|0}}
| location_map = World
| branch_of
| num_branches
Line 39 ⟶ 45:
| budget
| director
| leader_title
| leader_name
| leader_title2
| leader_name2
| leader_title3
| leader_name3
| leader_title4
| leader_name4
| num_employees
| affiliation
| parent_organization
| publictransit
| website
| references
Line 48 ⟶ 62:
}}
<
{{Infobox library
| name =
| native_name = <!-- Name in native language if different -->
| native_name_lang = <!-- ISO 639-2 code, e.g. "fr" for French. -->
| logo = <!-- file name only (no Image: or File:) -->
| logo_size =
| logo_alt =
| image = <!-- file name only (no Image: or File:) -->
| image_size =
|
|
|
|
|
| scope =
| established = <!-- {{Start date|year|month|day}} --> | architect = <!-- if known and notable -->
| dissolved = <!-- {{End date|yyyy|mm|dd}} -->
| ref_legal_mandate =
| ___location =
| service_area =
| coordinates = <!-- {{Coord|latitude|longitude|display=inline,title}} -->
| location_map = <!-- name of the Location map template or module (e.g. UK England) -->
|
|
| items_collected =
| collection_size = <!-- {{Format price|number}} --> | criteria =
| legal_deposit =
| req_to_access =
| annual_circulation =
| pop_served =
| members =
| budget = <!-- {{Currency|value|code}} -->
| director =
| leader_title = <!-- defaults to "Leader" -->
| leader_name =
|
|
|
|
|
| leader_name4 =
| num_employees =
| parent_organization = <!-- or
| parent_organisation = -->
| affiliation =
| publictransit =
| website = <!-- {{URL|www.example.com}} -->
| references =
| embed =
| module =
}}
</syntaxhighlight>
{{clear}}
Line 115 ⟶ 141:
=== Collection ===
The header 'Collection' will appear only if at least one of the 4 fields below contains data.
; specialization: Any focus area(s) for the collection (for UK spelling, use "specialisation").
; items_collected: Allows the specification of the kinds of documents acquired by the library. Prefer denominations having their own page.
; collection_size: It makes reading easier to round numbers to 2-3 significant figures using {{tlx|Format price}} this allows the source to hold the most accurate number while displaying a much easier to read number formatted per [[Wikipedia:Manual of Style/Dates and numbers#Numbers as figures or words|MOS:Dates and numbers]].
Line 130 ⟶ 156:
=== Other information ===
The header 'Other information' will appear only if at least one of the
; budget: Annual budget with specification of the currency using {{tlx|currency}}, followed by the year concerned (ideally the current one) between parentheses. It makes reading easier to round numbers to 2-3 significant figures, abbreviate millions by an unspaced 'M' and provide the equivalent in US dollars between parentheses. Templates that can also be helpful here are {{tlx|Inflation}} and {{tlx|Format price}}.
Line 137 ⟶ 163:
; parent_organization: Name of any parent organization. For alternative spelling, use {{para|parent_organisation}}
; affiliation: Any organizational affiliations.
; publictransit: Information on nearby public transit options
; website: If the website has a home page in English, link directly to it using {{tlx|URL}}. Otherwise, specify the language(s) in which the website is.
; references: References used specifically to populate infobox.
=== Maps ===
A [[Template:Mapframe|mapframe]] map is automatically included provided coordinates are available.
The following optional parameters can be used to adjust the map:
{{Infobox mapframe/doc/parameters
| mapframe-marker = library
| mapframe-frame-width = 250
| mapframe-type = landmark
| mapframe-wikidata = yes
| onByDefault = yes, unless {{para|map}} or {{para|map_image}} are set
}}
=== Use as a child template ===
The '''embed''' parameter is used when embedding this infobox into another (see the [[Template:Infobox]] documentation which explains [[Template:Infobox/doc#Embedding|embedding]] and [[Template:Infobox/doc#Subboxes|subboxes]]).
<
{{Infobox ABC
| name =
Line 153 ⟶ 192:
}}<br/>
}}
</syntaxhighlight>
=== Embedding other templates ===
The '''module''' parameter is used for embedding other templates into this infobox (see [[Wikipedia:Infobox modules]]).
<
{{Infobox library
| name =
Line 168 ⟶ 207:
}}
}}
</syntaxhighlight>
== Examples ==
Line 207 ⟶ 246:
}}
<
{{Infobox library
| name = The National Library of Russia
Line 241 ⟶ 280:
| website = {{URL|www.nlr.ru/eng/}}
}}
</syntaxhighlight>
{{clear}}
Line 277 ⟶ 316:
| module =
{{Infobox NRHP
| refnum = 79002158
| added = March 30, 1979
| designated_other1_date = 1970
}}
}}
<
{{Infobox library
| name = Carnegie Library of Pittsburgh
Line 326 ⟶ 364:
| module =
{{Infobox NRHP
| refnum = 79002158
| added = March 30, 1979
| designated_other1_date = 1970
}}
}}
</syntaxhighlight>
{{clear}}
Line 355 ⟶ 392:
"params": {
"embed": {},
"name": {
"
"library_name"
],
"
"description": "The name of the library (defaults to article name if left blank)",
"
"
"
"
"library_logo"
],
"
"description": "The logo of the library",
"
"
"logo_size": {
"label": "Logo size",
"description": "The width of the image, in pixels",
"example": "220px"
},
"logo_upright": {
"label": "Logo upright",
"description": "The upright value for the image",
"example": "1.2",
"type": "number"
},
"logo_alt": {
"label": "Logo alt",
"description": "The alt text of the logo",
"type": "string"
},
"image": {
"label": "Image",
"description": "A photo of the library",
"type": "wiki-file-name",
"suggested": true
},
"image_size": {
"label": "Image size",
"description": "The width of the image, in pixels",
"example": "220px"
},
"image_upright": {
"label": "Image upright",
"description": "The upright value for the image",
"example": "1.2",
"type": "number"
},
"alt": {
"label": "Alt",
"description": "Alt text for the image",
"type": "string"
},
"caption": {
"label": "Caption",
"description": "A caption for the image",
"type": "string"
},
"country": {
"label": "Country",
"description": "The country the library is located in",
"aliases": [
"Country"
]
},
"type": {
"label": "Type",
"description": "The type of this library. Prefer denominations leading to an existing page describing the type of library, such as Academic library, National library, Public library, Special library etc. Should be omitted when the relevant word is already present in the library's name.",
"type": "string"
},
"scope": {
"label": "Scope",
"description": "To be used if a library is specialized in a particular ___domain but which is not reflected in its name.",
"type": "string"
},
"established": {
"label": "Established",
"description": "Foundation year. Use {{Start date}} template. If the library is still open and operating the {{Start date and age}} template can also be used.",
"type": "date"
},
"dissolved": {
"label": "Dissolved",
"description": "Date of dissolution or closure. Use {{End date}} template."
},
"ref_legal_mandate": {},
"___location": {
"
"Location"
],
"label": "Location"
},
"coordinates": {
"label": "Coordinates",
"description": "The coordinates of the library, using {{Coord}}",
"suggested": true
},
"branch_of": {
"label": "Branch of:",
"description": "Designed for libraries that are known enough to justify an entry in WP but have little or no autonomy, being a branch of another (larger) library."
},
"num_branches": {
"label": "Number of Branches",
"description": "Number of branches, not counting the headquarters, followed by their ___location between parentheses."
},
"items_collected": {},
"collection_size": {},
Line 389 ⟶ 510:
"budget": {},
"director": {},
"dir_since": {
"label": "Director Since"
},
"num_employees": {},
"website": {
"example": "{{URL|www.example.com/}} }}"
},
"module": {},
"references": {},
"native_name": {
"label": "Native name",
"description": "The native name of the library.",
"type": "string"
},
"native_name_lang": {
"label": "Native language name",
"description": "The language code for the native name",
"example": "zh",
"type": "string"
},
"map": {
"label": "Map"
},
"map_image": {
"label": "Map image"
},
"address": {
"aliases": [
"Address"
],
"label": "Address"
},
"city": {
"aliases": [
"City"
],
"label": "City",
"description": "The city the library is located in",
"type": "string"
},
"region": {
"aliases": [
"Region"
],
"label": "Region",
"description": "The region the library is located in",
"type": "string"
},
"state": {
"aliases": [
"State"
],
"label": "State",
"description": "The state the library is located in"
},
"postcode": {},
"zipcode": {
"aliases": [
"Zipcode",
"postcode",
"Postcode"
],
"label": "Zip code",
"description": "The zip code that the library is in",
"type": "number"
},
"closed": {},
"architect": {},
"service_area": {},
"specialisation": {},
"specialization": {},
"affiliation": {},
"funding": {},
"publictransit": {},
"parent_organization": {},
"parent_organisation": {},
"mapframe": {},
"map_caption": {},
"mapframe-geomask": {},
"id": {},
"mapframe-marker-color": {},
"mapframe-marker-colour": {},
"mapframe-stroke-width": {},
"leader_title": {},
"leader_name": {},
"leader_title2": {},
"leader_name2": {},
"leader_title3": {},
"leader_name3": {},
"leader_title4": {},
"leader_name4": {}
},
"description": "An infobox for a library",
"paramOrder": [
"name",
"native_name",
"native_name_lang",
"logo",
"logo_size",
"logo_upright",
"logo_alt",
"image",
"image_size",
"image_upright",
"alt",
"caption",
"map",
"map_image",
"coordinates",
"___location",
"address",
"city",
"region",
"state",
"country",
"zipcode",
"type",
"scope",
"established",
"dissolved",
"ref_legal_mandate",
"branch_of",
"num_branches",
"items_collected",
"collection_size",
"criteria_for_collection",
"legal_deposit",
"criteria",
"req_to_access",
"annual_circulation",
"pop_served",
"members",
"budget",
"director",
"dir_since",
"leader_title",
"leader_name",
"leader_title2",
"leader_name2",
"leader_title3",
"leader_name3",
"leader_title4",
"leader_name4",
"num_employees",
"website",
"module",
"references",
"postcode",
"closed",
"architect",
"service_area",
"specialisation",
"specialization",
"affiliation",
"funding",
"publictransit",
"parent_organization",
"parent_organisation",
"mapframe",
"map_caption",
"mapframe-geomask",
"id",
"embed",
"mapframe-marker-color",
"mapframe-marker-colour",
"mapframe-stroke-width"
]
}
</templatedata>
Line 405 ⟶ 687:
{{Buildings and structures infobox templates}}
<includeonly>{{
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Library templates]]
[[Category:Buildings and structures infobox templates|Library]]
[[Category:Organization infobox templates|Library]]
|