Template:Infobox artwork: Difference between revisions

From Omniversalis
Content added Content deleted
(put Wikidata icon in-line right after the title)
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 8: Line 8:
}}
}}
| aboveclass = summary
| aboveclass = summary
| above = {{{title|<includeonly>{{PAGENAMEBASE}}</includeonly>}}} {{#if:{{{wikidata|}}}|{{Wikidata icon|{{{wikidata}}}}}}}
| above = {{{title|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}


| subheader = {{comma separated entries
| subheader = {{comma separated entries
| 1 = {{#if:{{{other_title_1|}}}|{{#if:{{{other_language_1|}}}|{{{other_language_1|}}}: }} ''{{{other_title_1|}}}'' }}
| 1 = {{#if:{{{other_title_1|}}}|{{#if:{{{other_language_1|}}}|{{{other_language_1|}}}: }} {{#ifeq:{{lc:{{{italic other_title_1|}}}}}|no|{{{other_title_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|}}}: }} {{#ifeq:{{lc:{{{italic other_title_2|}}}}}|no|{{{other_title_1|}}}|''{{{other_title_2|}}}''}} }}
}}
}}


| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{image|}}}|{{{image}}}|{{{image_file|}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{#if:{{{image_upright|}}}|{{{image_upright}}}|1.36}}|alt={{{alt|}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{image|}}}|{{{image}}}|{{{image_file|}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{#if:{{{image_upright|}}}|{{{image_upright}}}|1.22}}|alt={{{alt|}}}}}
| caption = {{{caption|}}}
| caption = {{{caption|}}}


Line 22: Line 22:
|alt = {{{pushpin_map_alt|}}}
|alt = {{{pushpin_map_alt|}}}
|float = center
|float = center
|caption =
|caption = {{{pushpin_map_caption|}}}
|border = infobox
|border = infobox
|relief = {{{pushpin_relief|}}}
|relief = {{{pushpin_relief|}}}
Line 29: Line 29:
|width = {{#if:{{{map_size|}}}|{{{map_size}}}|280}}
|width = {{#if:{{{map_size|}}}|{{{map_size}}}|280}}
}}}}
}}}}
| caption2 = {{{pushpin_map_caption|}}}
| caption2 =

| image3 = {{#if:{{{pushpin_map|}}}||{{yesno|{{{mapframe|no}}}|no=|yes={{#invoke:Infobox mapframe|auto|mapframe-marker=monument}}}}}}

| caption3 = {{#if:{{{pushpin_map|}}}||{{yesno|{{{mapframe|no}}}|no=|yes={{#invoke:Infobox mapframe|autocaption}}}}}}


| labelstyle = padding-right:0.65em;<!--(to ensure sufficient gap between (long/unwrapped) label and subsequent data on same line)-->
| labelstyle = padding-right:0.65em;<!--(to ensure sufficient gap between (long/unwrapped) label and subsequent data on same line)-->
Line 35: Line 39:
| label1 = {{#if:{{{artist|}}}|Artist|Designer}}
| label1 = {{#if:{{{artist|}}}|Artist|Designer}}
| class1 = attendee
| class1 = attendee
| data1 = {{#if:{{{artist|}}}
| data1 = {{#switch:{{lc:{{{artist|}}}}}
|={{{designer|}}}
|{{#ifeq:{{ucfirst:{{{artist|}}}}}|Unknown|Unknown|{{#ifexist: {{{artist}}}|[[{{{artist}}}]]|{{{artist}}}}}}}
|unknown = Unknown
|{{{designer|}}}
|#default = {{{artist|}}}
}}
}}<!-- Temporary tracking -->{{#switch:{{lc:{{{artist|}}}}}
|=
|unknown =
|unknown artist =
|anon. =
|anonymous work =
|{{lc:{{PAGENAME}}}} =
|#default = {{#ifexist: {{{artist}}}|{{main other|[[Category:Pages using infobox artwork with unlinked artist field|{{{artist}}} ]]}}|}}
}}


| label2 = {{#if:{{{year|}}}|Year|Completion date}}
| label2 = {{#if:{{{year|}}}|Year|Completion date}}
Line 54: Line 67:
| data5 = {{if empty|{{{medium|}}}|{{{material|}}}}}
| data5 = {{if empty|{{{medium|}}}|{{{material|}}}}}


| label6 = [[Art movement|Movement]]
| label6 = {{W|Art movement|Movement}}
| class6 = category
| class6 = category
| data6 = {{{movement|}}}
| data6 = {{{movement|}}}
Line 146: Line 159:
| data14 = {{comma separated entries|{{{museum|}}}|{{{city|}}}}}
| data14 = {{comma separated entries|{{{museum|}}}|{{{city|}}}}}


| label15 = <span style="display:none">[[Geographic coordinate system|Coordinates]]</span>
| label15 = <span style="display:none">{{W|Geographic coordinate system|Coordinates}}</span>
| data15 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark}}}}
| data15 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark}}}}


Line 171: Line 184:
|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:{{{artist|}}}
}}{{main other|{{#if:{{{backcolor|}}}
|{{#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 | 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 | subject | title | type | url | website | weight | width_imperial | width_inch | width_metric | wikidata | year | backcolor }}<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 | backcolor | 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 other_title_1 | italic other_title_2 | italic title | length_imperial | length_inch | length_metric | map_dot_label | map_size | mapframe | mapframe-caption | mapframe-custom | mapframe-id | mapframe-coord | mapframe-wikidata | mapframe-point | mapframe-shape | mapframe-frame-width | mapframe-frame-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 | 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 | title | type | url | website | weight | width_imperial | width_inch | width_metric | wikidata | year }}<noinclude>
{{Documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 07:54, 14 May 2022