|
|
| Line 8: |
Line 8: |
| }} | | }} |
| | aboveclass = summary | | | aboveclass = summary |
| | above = {{{title|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=title|suppressfields={{{suppressfields|}}}}}|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#if:{{#invoke:WikidataIB |getLabel |{{{qid|}}}}}|{{#invoke:WikidataIB |getLabel |{{{qid|}}}}}|{{PAGENAMEBASE}}}}}}}}}}} | | | above = {{{title|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{PAGENAMEBASE}}}}}}} {{#if:{{{wikidata|}}}|{{Wikidata icon|{{{wikidata}}}}}}} |
|
| |
|
| | subheader = {{comma separated entries | | | subheader = {{comma separated entries |
| | 1 = {{#if:{{{other_title_1|{{#invoke:Wikidata|ViewSomething|aliases|en|1|value}}}}}|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=other_title_1|onlysourced={{{onlysourced}}}|suppressfields={{{suppressfields|}}}}}|{{#if:{{{other_language_1|}}}|{{{other_language_1|}}}: }} ''{{{other_title_1|{{#invoke:Wikidata|ViewSomething|aliases|en|1|value}}}}}'' }}}} | | | 1 = {{#if:{{{other_title_1|}}}|{{#if:{{{other_language_1|}}}|{{{other_language_1|}}}: }} ''{{{other_title_1|}}}'' }} |
| | 2 = {{#if:{{{other_title_2|}}}|{{#if:{{{other_language_2|}}}| {{{other_language_2|}}}: }} ''{{{other_title_2|}}}'' }} | | | 2 = {{#if:{{{other_title_2|}}}|{{#if:{{{other_language_2|}}}| {{{other_language_2|}}}: }} ''{{{other_title_2|}}}'' }} |
| | | 3 = {{#if:{{#invoke:Wikidata|ViewSomething|aliases|en|1|value}}|{{#invoke:Wikidata|ViewSomething|aliases|en|1|value}}|}} |
| }} | | }} |
|
| |
|
| | image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue | rank=best |P18 |name=image |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes | maxvals=1|{{{image|}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{#if:{{{image_upright|}}}|{{{image_upright}}}|1.36}}|alt={{{alt|}}}}} | | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue |P18 |name=image |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image|}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{#if:{{{image_upright|}}}|{{{image_upright}}}|1.36}}|alt={{{alt|}}}}} |
| | caption = {{{caption|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=caption|suppressfields={{{suppressfields|}}}}}|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}}} | | | caption = {{{caption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}} |
|
| |
|
| | image2 = {{#if:{{{pushpin_map|}}}|{{Location map|{{{pushpin_map}}} | | | image2 = {{#if:{{{pushpin_map|}}}|{{Location map|{{{pushpin_map}}} |
| Line 36: |
Line 37: |
| | class1 = attendee | | | class1 = attendee |
| | data1 = {{#if:{{{artist|{{#Property:P170|from={{{qid|}}}}}}}} | | | data1 = {{#if:{{{artist|{{#Property:P170|from={{{qid|}}}}}}}} |
| |{{#ifeq:{{ucfirst:{{{artist|{{#Property:P170|from={{{qid|}}}}}}}}}}|Unknown|Unknown|{{#ifeq:{{ucfirst:{{{artist|{{#Property:P170|from={{{qid|}}}}}}}}}}|Anonymous|Anonymous|{{#invoke:WikidataIB|getPreferredValue|P170|name=artist|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced}}}|{{{artist|}}}}}}}{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P170}} }} }} | | |{{#ifeq:{{ucfirst:{{{artist|{{#Property:P170|from={{{qid|}}}}}}}}}}|Unknown|Unknown|{{#invoke:WikidataIB|getValue|P170|name=artist|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{artist|}}}}}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P170}} }}}} |
| |{{{designer|}}} | | |{{{designer|}}} |
| }} | | }} |
|
| |
|
| | label2 = {{#if:{{{year|{{#Property:P571|from={{{qid|}}}}}}}}|Year|Completion date}} | | | label2 = {{#if:{{{year|{{#Property:P571|from={{{qid|}}}}}}}}|Year|Completion date}} |
| | data2 = {{#if:{{#invoke:WikidataIB|checkBlacklist|name=year|onlysourced={{{onlysourced}}}|suppressfields={{{suppressfields|}}}}}|{{#if:{{{year|{{#Property:P571|from={{{qid|}}}}}}}}|{{{year|{{#ifeq:{{#invoke:wd|qualifier|P571|P1480}}|circa|{{circa}} |}}{{wikidata|property|{{{qid|}}}|P571}}}}}|{{{completion_date|}}}}}}} | | | data2 = {{#if:{{{year|{{#Property:P571|from={{{qid|}}}}}}}}|{{{year|{{#ifeq:{{#invoke:wd|qualifier|P571|P1480}}|circa|{{circa}}|}}{{wikidata|property|{{{qid|}}}|P571}}}}}|{{{completion_date|}}}}} |
|
| |
|
| | label3 = {{#if:{{{catalog|}}}|Catalog|Catalogue}} | | | label3 = {{#if:{{{catalog|}}}|Catalog|Catalogue}} |
| Line 52: |
Line 53: |
| | label5 = Medium | | | label5 = Medium |
| | class5 = category | | | class5 = category |
| | data5 = {{If first display both|{{If two strings replace with third|{{If two strings replace with third|{{If two strings replace with third|{{#invoke:WikidataIB|getPreferredValue|P186|name=medium|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|noicon=true|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced}}}|{{if empty|{{{medium|}}}|{{{material|}}}}}}}|[[Oil paint{{!}}Oil paint]]|[[Canvas{{!}}Canvas]]|[[Oil painting{{!}}Oil on canvas]]}}|[[Oil paint{{!}}Oil paint]]|Canvas|[[Oil painting{{!}}Oil on canvas]]}}|[[Oil paint{{!}}Oil paint]]|Panel|[[Panel painting{{!}}Oil on panel]]}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P186}}}} }} | | | data5 = {{If first display both|{{#invoke:WikidataIB|getValue|P186|name=medium|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{if empty|{{{medium|}}}|{{{material|}}}}}}}|{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P186}}}} }} |
|
| |
|
| | label6 = [[Art movement|Movement]] | | | label6 = [[Art movement|Movement]] |
| | class6 = category | | | class6 = category |
| | data6 = {{If first display both|{{#invoke:WikidataIB|getPreferredValue|P135|name=movement|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced}}}|{{{movement|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P135}}}} }} | | | data6 = {{If first display both|{{#invoke:WikidataIB|getValue|P135|name=movement|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{movement|}}}}}|{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P135}}}} }} |
|
| |
|
| | label7 = Subject | | | label7 = Subject |
| | data7 = {{If first display both|{{#invoke:WikidataIB|getPreferredValue|P921|name=subject|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced}}}|{{{subject|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P921}}}} }} | | | data7 = {{If first display both|{{#invoke:WikidataIB|getValue|P921|name=subject|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{subject|}}}}}|{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P921}}}} }} |
|
| |
|
| | label8 = Dimensions<!--BEGIN DIMENSIONAL DATA SECTION; INCLUDES SCARY CODE ;)--> | | | label8 = Dimensions |
| | data8 = {{#if:{{{height_metric|}}}{{{height_imperial|}}}{{{width_metric|}}}{{{width_imperial|}}}{{{length_metric|}}}{{{length_imperial|}}}{{{diameter_metric|}}}{{{diameter_imperial|}}}{{{dimensions|}}}|<!-- | | | data8 = {{#if:{{#Property:P2048|from={{{qid|}}}}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2048|qid={{{qid|}}}|FETCH_WIKIDATA}}|inch|{{convert|input=P2048|cm|abbr=on|qid={{{qid|}}}}}|{{convert|input=P2048|in|abbr=on|qid={{{qid|}}}}} }}{{wikidata|references|normal+|{{{qid|}}}|P2048}} {{#if:{{#Property:P2049|from={{{qid|}}}}}| × {{#ifeq:{{#invoke:Wikidata|getUnits|P2049|qid={{{qid|}}}|FETCH_WIKIDATA}}|inch|{{convert|input=P2049|cm|abbr=on|qid={{{qid|}}}}}|{{convert|input=P2049|in|abbr=on|qid={{{qid|}}}}} }}{{wikidata|references|normal+|{{{qid|}}}|P2049}}}} {{#if:{{#Property:P2610|from={{{qid|}}}}}| × {{#ifeq:{{#invoke:Wikidata|getUnits|P2610|qid={{{qid|}}}|FETCH_WIKIDATA}}|inch|{{convert|input=P2610|cm|abbr=on|qid={{{qid|}}}}}|{{convert|input=P2610|in|abbr=on|qid={{{qid|}}}}} }}{{wikidata|references|normal+|{{{qid|}}}|P2610}}}}}} |
| | |
| -->{{#if:{{{height_metric|}}}{{{height_imperial|}}}{{{width_metric|}}}{{{width_imperial|}}}{{{length_metric|}}}{{{length_imperial|}}}|<!--Begin H×W×L metric data
| |
| | |
| -->{{#if:{{{height_inch|}}}{{{height_metric|}}}{{{height_imperial|}}}<!--begin height, metric section
| |
| -->|{{#if:{{{height_metric|}}}|{{{height_metric|}}} {{{metric_unit|cm}}}<!--if metric height is available, use it, otherwise:
| |
| -->|{{#if:{{isnumeric|{{{height_imperial|}}}}}<!--if imperial height is numeric, convert it:
| |
| -->|{{#ifeq:{{#if:{{isnumeric|{{{height_imperial|}}}}}|{{#if:{{isnumeric|{{{height_inch|}}}}}| {{#ifeq:{{{imperial_unit|in}}}|ft|SPECIAL|NORMAL}}|NORMAL}}|NORMAL}}|SPECIAL<!--if there's the special ft&in case, then use it:
| |
| -->|{{convert|{{{height_imperial}}}|ft|{{{height_inch}}}|in|{{{metric_unit|cm}}}|abbr=on|disp=output only}}<!--otherwise, use the normal conversion scheme:
| |
| -->|{{convert|{{formatnum:{{{height_imperial}}}|R}}|{{{imperial_unit|in}}}|{{{metric_unit|cm}}}||disp=output only}}|<span class="error" style="white-space:nowrap; font-size:inherit;">??</span><!--close functions-->}}}}}}}}<!--end height, metric section
| |
| | |
| -->{{#if:{{{height_metric|}}}{{isnumeric|{{{height_imperial|}}}}}|<!-- begin ×1; if height is present, then:
| |
| -->{{#if:{{{width_metric|}}}{{isnumeric|{{{width_imperial|}}}}}{{{length_metric|}}}{{isnumeric|{{{length_imperial|}}}}}| × }}}}<!-- if width or later is present, add spacing and ×
| |
| | |
| -->{{#if:{{{width_metric|}}}{{{width_imperial|}}}<!--begin width, metric section
| |
| -->|{{#if:{{{width_metric|}}}|{{{width_metric|}}} {{{metric_unit|cm}}}<!--if metric width is available, use it, otherwise:
| |
| -->|{{#if:{{isnumeric|{{{width_imperial|}}}}}<!--if imperial width is numeric, convert it:
| |
| -->|{{#ifeq:{{#if:{{isnumeric|{{{width_imperial|}}}}}|{{#if:{{isnumeric|{{{width_inch|}}}}}| {{#ifeq:{{{imperial_unit|in}}}|ft|SPECIAL|NORMAL}}|NORMAL}}|NORMAL}}|SPECIAL<!--if there's the special ft&in case, then use it:
| |
| -->|{{convert|{{{width_imperial}}}|ft|{{{width_inch}}}|in|{{{metric_unit|cm}}}|abbr=on|disp=output only}}<!--otherwise, use the normal conversion scheme:
| |
| -->|{{convert|{{formatnum:{{{width_imperial}}}|R}}|{{{imperial_unit|in}}}|{{{metric_unit|cm}}}||disp=output only}}|<span class="error" style="white-space:nowrap; font-size:inherit;">??</span><!--close functions-->}}}}}}}}<!--end width, metric section
| |
| | |
| -->{{#if:{{{width_metric|}}}{{isnumeric|{{{width_imperial|}}}}}|<!-- begin ×2; if width is present, then:
| |
| -->{{#if:{{{length_metric|}}}{{isnumeric|{{{length_imperial|}}}}}| × }}}}<!-- if length is present, add spacing and ×
| |
| | |
| -->{{#if:{{{length_metric|}}}{{{length_imperial|}}}<!--begin length, metric section
| |
| -->|{{#if:{{{length_metric|}}}|{{{length_metric|}}} {{{metric_unit|cm}}}<!--if metric length is available, use it, otherwise:
| |
| -->|{{#if:{{isnumeric|{{{length_imperial|}}}}}<!--if imperial length is numeric, convert it:
| |
| -->|{{#ifeq:{{#if:{{isnumeric|{{{length_imperial|}}}}}|{{#if:{{isnumeric|{{{length_inch|}}}}}| {{#ifeq:{{{imperial_unit|in}}}|ft|SPECIAL|NORMAL}}|NORMAL}}|NORMAL}}|SPECIAL<!--if there's the special ft&in case, then use it:
| |
| -->|{{convert|{{{length_imperial}}}|ft|{{{length_inch}}}|in|{{{metric_unit|cm}}}|abbr=on|disp=output only}}<!--otherwise, use the normal conversion scheme:
| |
| -->|{{convert|{{formatnum:{{{length_imperial}}}|R}}|{{{imperial_unit|in}}}|{{{metric_unit|cm}}}||disp=output only}}|<span class="error" style="white-space:nowrap; font-size:inherit;">??</span><!--close functions-->}}}}}}}}<!--end length, metric section
| |
| | |
| --> (<!--end H×W×L metric data, begin H×W×L imperial data
| |
| | |
| -->{{#if:{{{height_metric|}}}{{{height_imperial|}}}<!--begin height, imperial section
| |
| -->|{{#if:{{{height_imperial|}}}|<!--if imperial height is available, then…
| |
| -->{{#ifeq:{{#if:{{{height_imperial|}}}|{{#if:{{{height_inch|}}}| {{#ifeq:{{{imperial_unit|in}}}|ft|SPECIAL|NORMAL}}|NORMAL}}|NORMAL}}|SPECIAL|{{{height_imperial}}} ft {{{height_inch}}} in|{{{height_imperial|}}} {{{imperial_unit|in}}}}}<!--use appropriate formatting, including a check if ft&in format is appropriate. If it's not available, then:
| |
| -->|{{#if:{{isnumeric|{{{height_metric|}}}}}<!--if metric height is numeric, convert it:
| |
| -->|{{convert|{{formatnum:{{{height_metric|}}}|R}}|{{{metric_unit|cm}}}|{{{imperial_unit|in}}}<!--really ought to include a switch for ftin mode here in a later version; if other imperial ones have the special case, then apply the special case in conversion-->|disp=output only}}|<span class="error" style="white-space:nowrap; font-size:inherit;">??</span><!--close functions-->}}}}}}<!--end height, imperial section
| |
| | |
| -->{{#if:{{{height_imperial|}}}{{{height_metric|}}}|<!-- begin ×1; if height is present, then:
| |
| -->{{#if:{{{width_imperial|}}}{{{width_metric|}}}{{{length_imperial|}}}{{{length_metric|}}}| × }}}}<!-- if width or later is present, add spacing and ×
| |
| | |
| -->{{#if:{{{width_metric|}}}{{{width_imperial|}}}<!--begin width, imperial section
| |
| -->|{{#if:{{{width_imperial|}}}|<!--if imperial width is available, then…
| |
| -->{{#ifeq:{{#if:{{{width_imperial|}}}|{{#if:{{{width_inch|}}}| {{#ifeq:{{{imperial_unit|in}}}|ft|SPECIAL|NORMAL}}|NORMAL}}|NORMAL}}|SPECIAL|{{{width_imperial}}} ft {{{width_inch}}} in|{{{width_imperial|}}} {{{imperial_unit|in}}}}}<!--use appropriate formatting, including a check if ft&in format is appropriate. If it's not available, then:
| |
| -->|{{#if:{{isnumeric|{{{width_metric|}}}}}<!--if metric width is numeric, convert it:
| |
| -->|{{convert|{{formatnum:{{{width_metric|}}}|R}}|{{{metric_unit|cm}}}|{{{imperial_unit|in}}}<!--really ought to include a switch for ftin mode here in a later version; if other imperial ones have the special case, then apply the special case in conversion-->|disp=output only}}|<span class="error" style="white-space:nowrap; font-size:inherit;">??</span><!--close functions-->}}}}}}<!--end width, imperial section
| |
| | |
| -->{{#if:{{{width_imperial|}}}{{{width_metric|}}}|<!-- begin ×2; if width is present, then:
| |
| -->{{#if:{{{length_imperial|}}}{{{length_metric|}}}| × }}}}<!-- if length is present, add spacing and ×
| |
| | |
| -->{{#if:{{{length_metric|}}}{{{length_imperial|}}}<!--begin length, imperial section
| |
| -->|{{#if:{{{length_imperial|}}}|<!--if imperial length is available, then…
| |
| -->{{#ifeq:{{#if:{{{length_imperial|}}}|{{#if:{{{length_inch|}}}| {{#ifeq:{{{imperial_unit|in}}}|ft|SPECIAL|NORMAL}}|NORMAL}}|NORMAL}}|SPECIAL|{{{length_imperial}}} ft {{{length_inch}}} in|{{{length_imperial}}} {{{imperial_unit|in}}}}}<!--use appropriate formatting, including a check if ft&in format is appropriate. If it's not available, then:
| |
| -->|{{#if:{{isnumeric|{{{length_metric|}}}}}<!--if metric length is numeric, convert it:
| |
| -->|{{convert|{{formatnum:{{{length_metric|}}}|R}}|{{{metric_unit|cm}}}|{{{imperial_unit|in}}}<!--really ought to include a switch for ftin mode here in a later version; if other imperial ones have the special case, then apply the special case in conversion-->|disp=output only}}|<span class="error" style="white-space:nowrap; font-size:inherit;">??</span><!--close functions-->}}}}}}<!--end length, imperial section
| |
| | |
| -->)<!--end all H×W×L data
| |
| -->{{#if:{{{diameter_metric|}}}{{{diameter_imperial|}}}{{{dimensions|}}}|<nowiki>;</nowiki> }}<!-- if there's diameter or dimensions, add a semicolon divider and a space
| |
| -->|}}<!-- if no H×W×L data, then blank; end H×W×L section
| |
| | |
| -->{{#switch:0{{#if:{{{diameter_metric|}}}|c}}{{#if:{{{diameter_imperial|}}}|i}}<!--switch controlling diameter section
| |
| -->|0c={{#if:{{isnumeric|{{{diameter_metric}}}}}|{{{diameter_metric}}} {{{metric_unit|cm}}} diameter ({{convert|{{formatnum:{{{diameter_metric}}}|R}}|{{{metric_unit|cm}}}|{{{imperial_unit|in}}}|disp=output only}})|{{{diameter_metric}}} {{{metric_unit|cm}}} diameter}}{{#if:{{{dimensions|}}}|<nowiki>;</nowiki> }}<!--if only cm available
| |
| -->|0i={{#if:{{isnumeric|{{{diameter_imperial}}}}}|{{convert|{{formatnum:{{{diameter_imperial}}}|R}}|{{{imperial_unit|in}}}|{{{metric_unit|cm}}}|disp=output only}} diameter ({{{diameter_imperial}}} {{{imperial_unit|in}}})|{{{diameter_imperial}}} {{{imperial_unit|in}}} diameter}}{{#if:{{{dimensions|}}}|<nowiki>;</nowiki> }}<!--if only in available
| |
| -->|0ci={{{diameter_metric}}} {{{metric_unit|cm}}} diameter ({{{diameter_imperial}}} {{{imperial_unit|in}}}){{#if:{{{dimensions|}}}|<nowiki>;</nowiki> }}<!--if both available
| |
| -->|0|#default=<!--nothing's available! no output then…-->}}<!--end diameter switch
| |
|
| |
| -->{{{dimensions|}}}{{{dimensions_ref|}}}|<!--additional or alternate dimensions, if applicable
| |
| | |
| Now onto the Wikidata code
| |
| -->{{#if:{{#Property:P2048|from={{{qid|}}}}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2048|qid={{{qid|}}}|FETCH_WIKIDATA}}|inch|{{convert|input=P2048|cm|abbr=on|qid={{{qid|}}}}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2048|qid={{{qid|}}}|FETCH_WIKIDATA}}|foot|{{convert|input=P2048|m|abbr=on|qid={{{qid|}}}}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2048|qid={{{qid|}}}|FETCH_WIKIDATA}}|metre|{{convert|input=P2048|ft|abbr=on|qid={{{qid|}}}}}|{{convert|input=P2048|in|abbr=on|qid={{{qid|}}}}} }} }} }}{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P2048}} }}<!--
| |
| --> {{#if:{{#Property:P2049|from={{{qid|}}}}}| × {{#ifeq:{{#invoke:Wikidata|getUnits|P2049|qid={{{qid|}}}|FETCH_WIKIDATA}}|inch|{{convert|input=P2049|cm|abbr=on|qid={{{qid|}}}}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2049|qid={{{qid|}}}|FETCH_WIKIDATA}}|foot|{{convert|input=P2049|m|abbr=on|qid={{{qid|}}}}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2049|qid={{{qid|}}}|FETCH_WIKIDATA}}|metre|{{convert|input=P2049|ft|abbr=on|qid={{{qid|}}}}}|{{convert|input=P2049|in|abbr=on|qid={{{qid|}}}}} }} }} }}{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P2049}} }} }}<!--
| |
| --> {{#if:{{#Property:P2043|from={{{qid|}}}}}| × {{#ifeq:{{#invoke:Wikidata|getUnits|P2043|qid={{{qid|}}}|FETCH_WIKIDATA}}|inch|{{convert|input=P2043|cm|abbr=on|qid={{{qid|}}}}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2043|qid={{{qid|}}}|FETCH_WIKIDATA}}|foot|{{convert|input=P2043|m|abbr=on|qid={{{qid|}}}}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2043|qid={{{qid|}}}|FETCH_WIKIDATA}}|metre|{{convert|input=P2043|ft|abbr=on|qid={{{qid|}}}}}|{{convert|input=P2043|in|abbr=on|qid={{{qid|}}}}} }} }} }}{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P2043}} }} }}<!--
| |
| --> {{#if:{{#Property:P2610|from={{{qid|}}}}}| × {{#ifeq:{{#invoke:Wikidata|getUnits|P2610|qid={{{qid|}}}|FETCH_WIKIDATA}}|inch|{{convert|input=P2610|cm|abbr=on|qid={{{qid|}}}}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2610|qid={{{qid|}}}|FETCH_WIKIDATA}}|foot|{{convert|input=P2610|m|abbr=on|qid={{{qid|}}}}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2610|qid={{{qid|}}}|FETCH_WIKIDATA}}|metre|{{convert|input=P2610|ft|abbr=on|qid={{{qid|}}}}}|{{convert|input=P2610|in|abbr=on|qid={{{qid|}}}}} }} }} }}{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P2610}} }} }} }}
| |
| | |
| }}<!--end if any dimensional data--><!--END DIMENSIONAL SECTION-->
| |
|
| |
|
| | label11 = Weight | | | label11 = Weight |
| | data11 = {{#if:{{#invoke:WikidataIB|checkBlacklist|name=caption|onlysourced={{{onlysourced}}}|suppressfields={{{weight|}}}}}|{{{weight|{{#if:{{#Property:P2067|from={{{qid|}}}}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2067|qid={{{qid|}}}|FETCH_WIKIDATA}}|kg|{{convert|input=P2067|lb|abbr=on|qid={{{qid|}}}}}|{{convert|input=P2067|kg|abbr=on|qid={{{qid|}}}}} }}{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P2067}}}}}}}}}}} | | | data11 = {{{weight|{{#if:{{#Property:P2067|from={{{qid|}}}}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2067|qid={{{qid|}}}|FETCH_WIKIDATA}}|kg|{{convert|input=P2067|lb|abbr=on|qid={{{qid|}}}}}|{{convert|input=P2067|kg|abbr=on|qid={{{qid|}}}}} }}{{wikidata|references|normal+|{{{qid|}}}|P2067}}}}}}} |
|
| |
|
| | label12 = Designation | | | label12 = Designation |
| | data12 = {{If first display both|{{#invoke:WikidataIB|getPreferredValue|P1435|name=designation|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced}}}|{{{designation|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P1435}} }} }} | | | data12 = {{{designation|}}} |
|
| |
|
| | label13 = Condition | | | label13 = Condition |
| Line 149: |
Line 75: |
|
| |
|
| | label14 = Location | | | label14 = Location |
| | data14 = {{#if:{{{museum|}}}|{{{museum}}}{{#if:{{{city|}}}|{{{city}}}}}|{{Wikidata location|qid={{{qid|}}}|refs={{{refs|no}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced}}}|location={{{location|}}} }} }} | | <!-- Only display this if it is different from the collection --> |
| | | data14 = {{#ifeq:{{#Property:P276|from={{{qid|}}}}}|{{#Property:P195|from={{{qid|}}}}}||{{comma separated entries|{{If first display both|{{#invoke:WikidataIB|getValue|P276|name=location|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{museum|}}}}}|{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P276}} }}|{{{city|}}}}}}} }} |
|
| |
|
| | label16 = [[Geographic coordinate system|Coordinates]] | | | label15 = <span style="display:none">[[Geographic coordinate system|Coordinates]]</span> |
| | data16 = {{#if:{{#invoke:WikidataIB|checkBlacklist|name=coords|suppressfields={{{suppressfields|}}}}}|{{{coords|{{{coordinates|{{#if:{{#Property:P625}} | {{Coord|display=inline,title|format=dms}}{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P625}} }} }}}}}}}}}} | | | data15 = {{#if:{{{coords|}}}{{{coordinates|}}} | {{if empty|{{{coordinates|}}}|{{{coords|}}}}} | {{#if:{{#Property:P625}} | {{Coord|nosave=1|display=inline,title|format=dms}} }} }}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P625}} }} |
|
| |
|
| | label17 = Owner | | | label16 = Owner |
| <!-- Only display this if it is different from the collection --> | | <!-- Only display this if it is different from the collection --> |
| | data17 = {{#ifeq:{{#Property:P127|from={{{qid|}}}}}|{{#Property:P195|from={{{qid|}}}}}||{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P127|name=owner|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced}}}|{{{owner|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P127}} }} }} }} | | | data16 = {{#ifeq:{{#Property:P127|from={{{qid|}}}}}|{{#Property:P195|from={{{qid|}}}}}||{{If first display both|{{#invoke:WikidataIB|getValue|P127|name=owner|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{owner|}}}}}|{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P127}} }} }} }} |
| | |
| | label18 = Commissioned by
| |
| | data18 = {{If first display both|{{#invoke:WikidataIB|getPreferredValue|P88|name=commissionedby|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced}}}|{{{commissionedby|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P88}} }} }}
| |
|
| |
|
| | label19 = Collection | | | label17 = Collection |
| <!-- Only display this if it is different from the location -->
| | | data17 = {{If first display both|{{#invoke:WikidataIB|getValue|P195|name=collection|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{collection|}}}}}|{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P195}} }} }} |
| | data19 = {{#ifeq:{{#Property:P276|from={{{qid|}}}}}|{{#Property:P195|from={{{qid|}}}}}||{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P195|name=collection|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced}}}|{{{collection|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P195}} }} }} }} | |
|
| |
|
| | label20 = Accession No. | | | label20 = Accession No. |
| | data20 = {{If first display both|{{#invoke:WikidataIB|getPreferredValue|P217|name=accession|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced}}}|{{{accession|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P217}} }} }} | | | data20 = {{If first display both|{{#invoke:WikidataIB|getValue|P217|name=accession|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{accession|}}}}}|{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P217}} }} }} |
|
| |
|
| | label21 = Preceded by | | | label21 = Preceded by |
| | data21 = {{If first display both|{{#invoke:WikidataIB|getPreferredValue|P155|name=preceded_by|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced}}}|{{{preceded_by|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P155}} }} }} | | | data21 = {{If first display both|{{#invoke:WikidataIB|getValue|P155|name=preceded_by|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{preceded_by|}}}}}|{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P155}} }} }} |
|
| |
|
| | label22 = Followed by | | | label22 = Followed by |
| | data22 = {{If first display both|{{#invoke:WikidataIB|getPreferredValue|P156|name=followed_by|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced}}}|{{{followed_by|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P156}} }} }} | | | data22 = {{If first display both|{{#invoke:WikidataIB|getValue|P156|name=followed_by|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{followed_by|}}}}}|{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P156}} }} }} |
|
| |
|
| | label23 = Identifiers | | | label23 = Identifiers |
| | data23 = {{#if:{{#invoke:WikidataIB|checkBlacklist|name=id|suppressfields={{{suppressfields|}}}}}|{{{id|{{Wikidata ID|P347|P350|P1679|P2092|P3634|qid={{{qid|}}}}}}}}}} | | | data23 = {{Wikidata ID|P347|P350|P1679|P2092|P3634|qid={{{qid|}}}}} |
|
| |
|
| | header24 = {{{module|}}} | | | header24 = {{{module|}}} |
|
| |
|
| | label30 = Website | | | label30 = Website |
| | data30 = {{{website|{{{url|{{#if:{{#property:P856|from={{{qid|}}}}}|{{Url|1={{#invoke:WikidataIB |getPreferredValue |P856 |name=url |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{website|}}}}} }} }} }}} }}}{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P856}} }} | | | data30 = {{{website|{{{url|{{#if:{{#property:P856|from={{{qid|}}}}}|{{Url|1={{#invoke:WikidataIB |getValue |P856 |name=url |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image|}}}}} }} }} }}} }}}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P856}} }} |
|
| |
|
| | below = {{EditOnWikidata|qid={{{qid|}}}}} | | | below = {{EditOnWikidata|qid={{{qid|}}}}} |
| Line 188: |
Line 111: |
| |no = <!-- no italic title --> | | |no = <!-- no italic title --> |
| ||¬|all|yes = {{italic title|all={{#ifeq:{{lc:{{{italic title|}}}}}|all|true}}}} | | ||¬|all|yes = {{italic title|all={{#ifeq:{{lc:{{{italic title|}}}}}|all|true}}}} |
| }}{{main other|{{#if:{{{backcolor|}}} | | }}{{main other|{{#if:{{{artist|}}} |
| | |{{#ifeq:{{ucfirst:{{{artist|}}}}}|Unknown||{{#ifexist:{{{artist}}}|[[Category:Pages using infobox artwork with autolinked artist field]]}}}} |
| | }}{{#if:{{{backcolor|}}} |
| |[[Category:Pages using infobox artwork with the backcolor parameter]] | | |[[Category:Pages using infobox artwork with the backcolor parameter]] |
| }}{{#if:{{{material|}}} | | }}{{#if:{{{material|}}} |
| |[[Category:Pages using infobox artwork with the material parameter]] | | |[[Category:Pages using infobox artwork with the material parameter]] |
| }}}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox artwork with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox artwork]] with unknown parameter "_VALUE_"|ignoreblank=y| accession | alt | artist | caption | catalog | catalogue | city | completion_date | condition | coordinates | designation | designer | diameter_imperial | diameter_metric | dimensions | dimensions_ref | followed_by | height_imperial | height_inch | height_metric | image | image_file | image_size | image_upright | imperial_unit | italic title | length_imperial | length_inch | length_metric | location | map_dot_label | map_size | material | medium | metric_unit | module | movement | museum | onlysourced | other_language_1 | other_language_2 | other_title_1 | other_title_2 | owner | painting_alignment | preceded_by | pushpin_label_position | pushpin_map | pushpin_map_alt | pushpin_map_caption | pushpin_relief | qid | subject | suppressfields | title | type | url | website | weight | width_imperial | width_inch | width_metric | wikidata | year | backcolor }}<includeonly>{{main other|{{#if:{{safesubst:#invoke:Check for unknown parameters|check|unknown=1|preview=1|locmapin|onlysourced|suppressfields}}|[[Category:Articles using Infobox artwork/wikidata using locally defined parameters]]|[[Category:Articles with infoboxes completely from Wikidata]]}}}}</includeonly><noinclude> | | }}}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox artwork with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox artwork]] with unknown parameter "_VALUE_"|ignoreblank=y| accession | alt | artist | caption | catalog | catalogue | city | completion_date | condition | coordinates | designation | designer | diameter_imperial | diameter_metric | dimensions | dimensions_ref | followed_by | height_imperial | height_inch | height_metric | image | image_file | image_size | image_upright | imperial_unit | italic title | length_imperial | length_inch | length_metric | map_dot_label | map_size | material | medium | metric_unit | module | movement | museum | other_language_1 | other_language_2 | other_title_1 | other_title_2 | owner | painting_alignment | preceded_by | pushpin_label_position | pushpin_map | pushpin_map_alt | pushpin_map_caption | pushpin_relief | qid | subject | suppressfields | title | type | url | website | weight | width_imperial | width_inch | width_metric | wikidata | year | backcolor }}<includeonly>{{main other|{{#if:{{safesubst:#invoke:Check for unknown parameters|check|unknown=1|preview=1|locmapin}}|[[Category:Articles using Infobox artwork/wikidata using locally defined parameters]]|[[Category:Articles with infoboxes completely from Wikidata]]}}}}</includeonly><noinclude> |
| {{Documentation}} | | {{Documentation}} |
| </noinclude> | | </noinclude> |