"ഫലകം:Infobox artwork" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
Content deleted Content added
(ചെ.) Removed redundancy by using {{lc:}} |
Removed legacy support for deprecated (and now unused) parameters "height", "width", and "length", and added tests for further deprecated parameters "height_cm", "width_cm", "length_cm", and "diameter" |
||
വരി 66:
| label10 = Dimensions
<!--BEGIN DIMENSIONAL DATA SECTION; INCLUDES SCARY CODE ;)-->
| data10 = {{#if:
-->{{#if:
-->{{#if:
-->|{{#if:{{{height_metric
-->|{{#if:{{isnumeric|{{{height_imperial|{{{height_inch|}}}}}}}}<!--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:
വരി 77:
-->|{{convert|{{formatnum:{{{height_imperial|{{{height_inch}}}}}}|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
-->{{#if:{{{width_metric|
-->{{#if:
-->|{{#if:{{{width_metric
-->|{{#if:{{isnumeric|{{{width_imperial|{{{width_inch|}}}}}}}}<!--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:
വരി 87:
-->|{{convert|{{formatnum:{{{width_imperial|{{{width_inch}}}}}}|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
-->{{#if:{{{length_metric
-->{{#if:
-->|{{#if:{{{length_metric
-->|{{#if:{{isnumeric|{{{length_imperial|{{{length_inch|}}}}}}}}<!--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:
വരി 99:
--> (<!--end H×W×L metric data, begin H×W×L imperial data
-->{{#if:
-->|{{#if:{{{height_imperial|{{{height_inch|}}}}}}|<!--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|{{{height_inch}}}}}} {{{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
-->|{{convert|{{formatnum:{{{height_metric|
-->{{#if:{{{height_imperial|{{{height_inch|}}}}}}{{{height_metric|{{{height_cm
-->{{#if:{{{width_imperial|{{{width_inch|}}}}}}{{{width_metric|{{{width_cm
-->{{#if:
-->|{{#if:{{{width_imperial|{{{width_inch|}}}}}}|<!--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|{{{width_inch}}}}}} {{{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
-->|{{convert|{{formatnum:{{{width_metric|
-->{{#if:{{{width_imperial|{{{width_inch|}}}}}}{{{width_metric|{{{width_cm
-->{{#if:{{{length_imperial|{{{length_inch|}}}}}}{{{length_metric|{{{length_cm
-->{{#if:
-->|{{#if:{{{length_imperial|{{{length_inch|}}}}}}|<!--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|{{{length_inch}}}}}} {{{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
-->|{{convert|{{formatnum:{{{length_metric|
-->)<!--end all H×W×L data
വരി 167:
-->{{{length|♦}}}<!--length
-->{{{width|♦}}}<!--width
-->{{{height_cm|♦}}}<!--height_cm
-->{{{length_cm|♦}}}<!--length_cm
-->{{{width_cm|♦}}}<!--width_cm
-->{{{diameter|♦}}}<!--diameter
-->{{{diameter_cm|♦}}}<!--diameter_cm
-->{{{diameter_inch|♦}}}<!--diameter_inch
-->|
-->||[[Category:Wikipedia pages with deprecated artwork infobox syntax]]}}<!--
-->{{#switch:{{lc:{{{italic title|¬}}}}}
|