Template:Infobox artwork: Difference between revisions

From WikiMD's Wellness Encyclopedia

en>SWinxy
Remove |painting_alignment= parameter. Only Self-Portrait with a Sunflower and Peasant Girl, spinning used it, and they didn't need to. The other uses of it were invalid (e.g. "Front").
 
CSV import
Tags: mobile edit mobile web edit
Line 1: Line 1:
{{Infobox
| bodyclass = vevent
| bodystyle = width: 22em; line-height: 1.4em; text-align: left;


| abovestyle = font-size: 125%; font-weight: bold; {{#switch:{{lc:{{{italic title|¬}}}}}
<noinclude>
|no      = <!-- no italic title -->
{{Documentation}}
||¬|all|yes = font-style: italic
<!-- WikiMD editors - add categories and interwikis to the /doc subpage, not here! -->
}}
</noinclude>
| aboveclass = summary
<includeonly>{{Infobox
| above = {{{title|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
| name = {{subst:PAGENAME}}
 
| title = {{{title|{{subst:PAGENAME}}}}}
| subheader =  {{comma separated entries
| image = {{{image|}}}
| 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|}}}''}} }}
| image_size = {{{image_size|250px}}}
| 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|}}}''}} }}
| 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|}}}
 
| artist = [[{{{artist|}}}]]
| image2 = {{#if:{{{pushpin_map|}}}|{{Location map|{{{pushpin_map}}}
| year = {{{year|}}}
| coordinates = {{{coordinates|}}}
| type = {{{type|}}}
|alt = {{{pushpin_map_alt|}}}
| material = {{{material|}}}
|float      = center
| height_metric = {{{height_metric|}}}
|caption    = {{{pushpin_map_caption|}}}
| width_metric = {{{width_metric|}}}
|border    = infobox
| length_metric = {{{length_metric|}}}
|relief    = {{{pushpin_relief|}}}
| height_imperial = {{{height_imperial|}}}
|position  = {{{pushpin_label_position|}}}
| width_imperial = {{{width_imperial|}}}
|label      = {{#if:{{{map_dot_label|}}}|{{{map_dot_label}}}|{{{title}}}}}
| length_imperial = {{{length_imperial|}}}
|width      = {{#if:{{{map_size|}}}|{{{map_size}}}|280}}
| diameter_metric = {{{diameter_metric|}}}
}}}}
| diameter_imperial = {{{diameter_imperial|}}}
| caption2 =
| city = [[{{{city|}}}]]
 
| museum = [[{{{museum|}}}]]
| image3    = {{#if:{{{pushpin_map|}}}||{{yesno|{{{mapframe|no}}}|no=|yes={{#invoke:Infobox mapframe|auto|mapframe-marker=monument}}}}}}
| owner = [[{{{owner|}}}]]
 
| url = {{{url|}}}
| caption3 = {{#if:{{{pushpin_map|}}}||{{yesno|{{{mapframe|no}}}|no=|yes={{#invoke:Infobox mapframe|autocaption}}}}}}
| accessdate = {{{accessdate|}}}
 
}}{{-}}
| labelstyle = padding-right:0.65em;<!--(to ensure sufficient gap between (long/unwrapped) label and subsequent data on same line)-->
{{This 'artwork' related article is a [[stub]].}}
 
</includeonly>
| label1 = {{#if:{{{artist|}}}|Artist|Designer}}
| class1 = attendee
| data1 = {{#switch:{{lc:{{{artist|}}}}}
  |={{{designer|}}}
  |unknown = Unknown
  |#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}}
| data2 = {{#if:{{{year|}}}|{{{year|}}}|{{{completion_date|}}}}}
 
| label3 = {{#if:{{{catalog|}}}|Catalog|Catalogue}}
| data3 = {{#if:{{{catalog|}}}|{{{catalog}}}|{{{catalogue|}}}}}
 
| label4 = Type
| class4 = category
| data4 = {{{type|}}}
 
| label5 = Medium
| class5 = category
| data5 = {{if empty|{{{medium|}}}|{{{material|}}}}}
 
| label6 = [[Art movement|Movement]]
| class6 = category
| data6 = {{{movement|}}}
 
| label7 = Subject
| data7 = {{{subject|}}}
 
| label8 = Dimensions
<!--BEGIN  DIMENSIONAL DATA SECTION; INCLUDES SCARY CODE ;)-->
| data8 = {{#if:{{{height_metric|}}}{{{height_imperial|}}}{{{width_metric|}}}{{{width_imperial|}}}{{{length_metric|}}}{{{length_imperial|}}}{{{diameter_metric|}}}{{{diameter_imperial|}}}{{{dimensions|}}}|<!--
 
  -->{{#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|}}}&nbsp;{{{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|}}}}}|&#32;×&nbsp;}}}}<!-- if width or later is present, add spacing and ×
 
  -->{{#if:{{{width_metric|}}}{{{width_imperial|}}}<!--begin width, metric section
    -->|{{#if:{{{width_metric|}}}|{{{width_metric|}}}&nbsp;{{{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|}}}}}|&#32;×&nbsp;}}}}<!-- if length is present, add spacing and ×
 
  -->{{#if:{{{length_metric|}}}{{{length_imperial|}}}<!--begin length, metric section
    -->|{{#if:{{{length_metric|}}}|{{{length_metric|}}}&nbsp;{{{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
 
  -->&#32;(<!--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}}}&nbsp;ft {{{height_inch}}}&nbsp;in|{{{height_imperial|}}}&nbsp;{{{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|}}}|&#32;×&nbsp;}}}}<!-- 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}}}&nbsp;ft {{{width_inch}}}&nbsp;in|{{{width_imperial|}}}&nbsp;{{{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|}}}|&#32;×&nbsp;}}}}<!-- 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}}}&nbsp;ft {{{length_inch}}}&nbsp;in|{{{length_imperial}}}&nbsp;{{{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>&#32;}}<!-- 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}}}&nbsp;{{{metric_unit|cm}}} diameter ({{convert|{{formatnum:{{{diameter_metric}}}|R}}|{{{metric_unit|cm}}}|{{{imperial_unit|in}}}|disp=output only}})|{{{diameter_metric}}}&nbsp;{{{metric_unit|cm}}} diameter}}{{#if:{{{dimensions|}}}|<nowiki>;</nowiki>&#32;}}<!--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}}}&nbsp;{{{imperial_unit|in}}})|{{{diameter_imperial}}}&nbsp;{{{imperial_unit|in}}} diameter}}{{#if:{{{dimensions|}}}|<nowiki>;</nowiki>&#32;}}<!--if only in available
-->|0ci={{{diameter_metric}}}&nbsp;{{{metric_unit|cm}}} diameter ({{{diameter_imperial}}}&nbsp;{{{imperial_unit|in}}}){{#if:{{{dimensions|}}}|<nowiki>;</nowiki>&#32;}}<!--if both available
-->|0|#default=<!--nothing's available! no output then…-->}}<!--end diameter switch
 
-->{{{dimensions|}}}{{{dimensions_ref|}}}<!--additional or alternate dimensions, if applicable
 
  -->}}<!--end if any dimensional data--><!--END DIMENSIONAL SECTION-->
 
| label11 = Weight
| data11 = {{{weight|}}}
 
| label12 = Designation
| data12 = {{{designation|}}}
 
| label13 = Condition
| data13 = {{{condition|}}}
 
| label14 = Location
| data14 = {{comma separated entries|{{{museum|}}}|{{{city|}}}}}
 
| label15 = <span style="display:none">[[Geographic coordinate system|Coordinates]]</span>
| data15 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark}}}}
 
| label16 = Owner
| data16 = {{{owner|}}}
 
| label20 = Accession
| data20 = {{{accession|}}}
 
| label21 = Preceded&nbsp;by
|  data21 = {{{preceded_by|}}}
 
| label22 = Followed&nbsp;by
|  data22 = {{{followed_by|}}}
 
| header23  = {{{module|}}}
 
| label24 = Website
| data24  = {{{website|{{{url|}}}}}}
 
}}<!--
 
-->{{#switch:{{lc:{{{italic title|¬}}}}}
|no      = <!-- no italic title -->
||¬|all|yes = {{italic title|all={{#ifeq:{{lc:{{{italic title|}}}}}|all|true}}}}
}}{{main other|{{#if:{{{backcolor|}}}
  |[[Category:Pages using infobox artwork with the backcolor parameter]]
  }}{{#if:{{{material|}}}
  |[[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 | 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 | 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}}
</noinclude>

Revision as of 06:43, 3 May 2024