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

(Difference between pages)
Page 1
Page 2
Content deleted Content added
No edit summary
 
No edit summary
 
Line 3: Line 3:
| bodyclass = vcard
| bodyclass = vcard
| titleclass = fn org
| titleclass = fn org
| above = {{#ifeq:{{{embed|}}}|yes
| title = {{#ifeq:{{{embed|}}}|yes
|
|
|{{if empty|{{{name|}}}|{{{library_name|}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}}
|{{if empty|{{{name|}}}|{{{library_name|}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}}
}}
}}

| abovestyle = text-align:center;background-color:#ededed;


| subheader = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}| lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}}
| subheader = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}| lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}}

|headerstyle = text-align:center;background: #ededed;


| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{library_logo|{{{logo|}}}}}}|size={{{logo_size|}}}|upright={{{logo_upright|1}}}|alt={{{logo_alt|}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{library_logo|{{{logo|}}}}}}|size={{{logo_size|}}}|upright={{{logo_upright|1}}}|alt={{{logo_alt|}}}}}
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|upright={{{image_upright|1.14}}}|sizedefault=250px|maxsize=325px|alt={{{alt|}}}}}
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|upright={{{image_upright|1.1}}}|alt={{{alt|}}}}}
| caption2 = {{{caption|}}}
| caption2 = {{{caption|}}}


| label1 = Country
| image3 = {{#invoke:Infobox mapframe|auto|mapframe-marker=library|mapframe-frame-width=250|mapframe-zoom=14| mapframe-wikidata = yes|onByDefault={{#if:{{{map|}}}{{{map_image|}}}|no|yes}}}}
| data1 = {{{country|}}}
| caption3 = {{#invoke:Infobox mapframe|autocaption|onByDefault={{#if:{{{map|}}}{{{map_image|}}}|no|yes}}}}
| label2 = Type

| class2 = label
| data1 = {{#if:{{{coordinates|}}}
| data2 = {{{type|}}}
|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark|{{#if:{{{country|}}}|region:{{Country abbreviation|{{{country}}}}}}}}} |}}
| label2 = Location
| label3 = Scope
| label3 = Location
| class3 = label
| data3 = {{comma separated entries
| data3 = {{{scope|}}}
| label4 = Established
|1= {{if empty|{{{location|{{{Location|}}}}}}|{{{address|{{{Address|}}}}}}}}
| data4 = {{#invoke:WikidataIB |getValue |P571 |fwd=ALL |osd=yes |{{{established|}}} }}
|2 = {{{city|{{{City|}}}}}}
| label5 = Architect
|3= {{{region|{{{Region|}}}}}}
| data5 = {{#invoke:WikidataIB |getValue |P84 |fwd=ALL|osd=yes |{{{architect|}}} }}
|4= {{#switch: {{{state|{{{State|}}}}}}
| GA = Georgia
| WA = Washington
| #default = {{{state|{{{State|}}}}}}
}}
|5={{#switch: {{{country|{{{Country|}}}}}}
| AU = Australia
| CA = Canada
| HK = Hong Kong
| IE = Ireland
| IN = India
| IL = Israel
| KE = Kenya
| NZ = New Zealand
| NO = Norway
| PH = Philippines
| PK = Pakistan
| SA = South Africa
| TR = Turkey
| TZ = Tanzania
| UK = United Kingdom
| US = US
| #default = {{{country|{{{Country|}}}}}}
}}
|6 = {{{postcode|{{{Postcode|}}}|{{{zipcode|}}}|{{{Zipcode|}}}}}}
}}
| label4 = Type
| class4 = label
| data4 = {{{type|}}}
| label5 = Scope
| class5 = label
| data5 = {{{scope|}}}
| label6 = Established
| data6 = {{#invoke:WikidataIB |getValue |P571 |fwd=ALL |osd=yes |{{{established|}}} }}
| label7 = Dissolved
| label7 = Dissolved
| data7 = {{{dissolved|}}}
| data7 = {{{dissolved|}}}
| label8 = Closed
| label8 = Reference to legal mandate
| data8 = {{{closed|}}}
| data8 = {{{ref_legal_mandate|}}}
| label9 = [[Architect|Architect(s)]]
| label9 = Location
| class9 = label
| data9 = {{#invoke:WikidataIB |getValue |P84 |fwd=ALL|osd=yes |{{{architect|}}} }}
| label10 = Reference to legal mandate
| data9 = {{{location|}}}
| label10 = Service area
| data10 = {{{ref_legal_mandate|}}}
| data10 = {{{service_area|}}}
| label11 = Service area
| data11 = {{{service_area|}}}
| label11 = Coordinates
| data11 = {{{coordinates|}}}
| label13 = Branch of
| data13 = {{{branch_of|}}}
| label12 = Branch of
| label14 = Branches
| data12 = {{{branch_of|}}}
| data14 = {{{num_branches|}}}
| label13 = Branches
| data13 = {{{num_branches|}}}


| header15 = {{#if:{{{items_collected|}}}{{{collection_size|}}}{{#property:P1436}}{{{criteria_for_collection|}}}{{{legal_deposit|}}}|Collection}}
| header15 = {{#if:{{{items_collected|}}}{{{collection_size|}}}{{#property:P1436}}{{{criteria_for_collection|}}}{{{legal_deposit|}}}|Collection}}
Line 100: Line 64:
| data25 = {{{members|}}}
| data25 = {{{members|}}}


| header26 = {{#if:{{{budget|}}}{{{director|}}}{{#property:P1037}}{{{dir_since|}}}{{{num_employees|}}}{{{affiliation|}}}{{{funding|}}}{{{publictransit|}}}{{{website|}}}|Other information}}
| header26 = {{#if:{{{budget|}}}{{{director|}}}{{#property:P1037}}{{{dir_since|}}}{{{num_employees|}}}{{{affiliation|}}}|Other information}}
| label27 = Budget
| label27 = Budget
| data27 = {{{budget|}}}
| data27 = {{{budget|}}}
| label28 = Director
| label28 = Director
| data28 = {{#invoke:WikidataIB |getValue |P1037 |fwd=ALL |rank=b|osd=yes |{{{director|}}} }}
| data28 = {{#invoke:WikidataIB |getValue |P1037 |fwd=ALL |rank=b|osd=yes |{{{director|}}} }}
| label29 = Employees
| label29 = Staff
| data29 = {{{num_employees|}}}
| data29 = {{{num_employees|}}}
| label30 = Parent {{#if:{{{parent_organization|}}}|organization|organisation}}
| label30 = Parent {{#if:{{{parent_organization|}}}|organization|organisation}}
Line 113: Line 77:
| label32 = Funding
| label32 = Funding
| data32 = {{{funding|}}}
| data32 = {{{funding|}}}
| label40 = Public transit access
| label33 = Website
| data40 = {{{publictransit|}}}
| data33 = {{{website|}}}
| header34 = {{yesno|{{{mapframe|yes}}}
| label43 = Website
|yes = {{#if: {{#property:P625}}{{{coordinates|}}} | {{{map_label|Map}}} }}
| data43 = {{{website|}}}
|no = {{#if:{{{location_map|}}} | {{{map_label|Map}}} }}
| data46 = {{yesno|{{{mapframe|yes}}} |no=<!-- no mapframe map --> |yes={{{map_caption| {{yesno|{{{mapframe-geomask|}}}
}}
| data35 = {{yesno|{{{mapframe|yes}}}
|no = {{#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|}}}
}}}}
|yes = {{Infobox mapframe
|id = {{{id|}}}
|coord = {{{coordinates|}}}
|zoom = {{{mapframe-zoom|}}}
|frame-width = {{{mapframe-width|{{{map_size|}}}}}}
|frame-height = {{{mapframe-height|}}}
|marker = {{{mapframe-marker|library}}}
|marker-color = {{{mapframe-marker-color|{{{mapframe-marker-colour|}}}}}}
|frame-lat = {{{mapframe-lat|{{{mapframe-latitude|}}}}}}
|frame-long = {{{mapframe-long|{{{mapframe-longitude|}}}}}}
|stroke-color = {{{mapframe-stroke-color|{{{mapframe-stroke-colour|}}}}}}
|geomask = {{yesno|{{{mapframe-geomask|}}}
|no= |blank=<!-- no geomask -->
|yes=P276<!-- Location (P276) from Wikidata -->
|def={{{mapframe-geomask|}}}<!-- User-supplied P- or Q-number -->
}}
}}
}}
| data36 = {{yesno|{{{mapframe|yes}}} |no=<!-- no mapframe map --> |yes={{{map_caption| {{yesno|{{{mapframe-geomask|}}}
|no= |blank=<!-- no geomask -->
|no= |blank=<!-- no geomask -->
|yes={{#if:{{#property:P276}}|Location in {{wikidata|property|{{{id|}}}|P276}}}}
|yes={{#if:{{#property:P276}}|Location in {{wikidata|property|{{{id|}}}|P276}}}}
Line 126: Line 121:
}}<!-- end inner yesno --> }}}<!-- end map_caption param -->
}}<!-- end inner yesno --> }}}<!-- end map_caption param -->
}}<!-- end outer yesno -->
}}<!-- end outer yesno -->
| header47 = {{{module|}}}
| header37 = {{{module|}}}


| below = {{#if:{{{references|}}}|References:}} {{{references|}}}
| below = {{#if:{{{references|}}}|References:}} {{{references|}}}
| belowstyle = border-top:1px solid #aaaaaa; text-align:left
| belowstyle = border-top:1px solid #aaaaaa; text-align:left
}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox library with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox library]] with unknown parameter "_VALUE_"|ignoreblank=y
| Address | address | affiliation | alt | annual_circulation | architect | branch_of | budget | caption | City | city | closed | collection_size | coordinates | Country | country | criteria | criteria_for_collection | dir_since | director | dissolved | embed | established | funding | id | image | image_size | image_upright | items_collected | legal_deposit | library_logo | library_name | Location | location | location_map | logo | logo_alt | logo_size | logo_upright | map | map dot label | map_alt | map_caption | map_dot_label | map_image | map_label | map_size | mapframe | mapframe-coord | mapframe-coordinates | mapframe-geomask | mapframe-height | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-stroke-color | mapframe-stroke-colour | mapframe-width | mapframe-zoom | members | module | name | native_name | native_name_lang | num_branches | num_employees | parent_organisation | parent_organization | phone_num | pop_served | Postcode | postcode | publictransit | ref_legal_mandate | references | Region | region | relief | req_to_access | scope | service_area | specialisation | specialization | State | state | type | website | Zipcode | zipcode
{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox library with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox library]] with unknown parameter "_VALUE_"|ignoreblank=y| affiliation | alt | annual_circulation | architect | branch_of | budget | caption | collection_size | coordinates | country | criteria | criteria_for_collection | dir_since | director | dissolved | embed | established | funding | image | image_size | image_upright | items_collected | legal_deposit | library_logo | library_name | location | location_map | logo | logo_alt | logo_size | logo_upright | map dot label | map_alt | map_caption | map_dot_label | map_label | map_size | members | module | name | native_name | native_name_lang | num_branches | num_employees | parent_organisation | parent_organization | pop_served | ref_legal_mandate | references | relief | req_to_access | scope | service_area | specialisation | specialization | type | website | phone_num | mapframe | id | mapframe-zoom | mapframe-width | mapframe-height | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-lat | mapframe-latitude | mapframe-long | mapframe-longitude | mapframe-stroke-color | mapframe-stroke-colour }}<!--
-->{{Main other|{{#if:{{{dissolved|}}}|[[Category:Libraries disestablished in 2010]]}}}}<noinclude>
}}<noinclude>
{{documentation}}<!-- place category and templatedate the /doc sub-page, not here -->
{{documentation}}
</noinclude>
</noinclude>