Template:Graphic: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 26: Line 26:
{{#if: {{{Type|}}}{{{Subtype|}}}{{{Subject|}}}|
{{#if: {{{Type|}}}{{{Subtype|}}}{{{Subject|}}}|
'''Semantic tagging:'''
'''Semantic tagging:'''
* Type: {{#arraymap:{{{Type|''(none listed)''}}}|,}}
* Type: {{#arraymap:{{{Type|''(none listed)''}}}|;}}
* Subtype: {{#arraymap:{{{Subtype|''(none listed)''}}}|,}}
* Subtype: {{#arraymap:{{{Subtype|''(none listed)''}}}|;}}
* Subject: {{#arraymap:{{{Subject|''(none listed)''}}}|,}} |}}
* Subject: {{#arraymap:{{{Subject|''(none listed)''}}}|;}} |}}
</div>
</div>
  | svg = <div class="neutral-box">See the page of the [[:File:{{#explode:{{PAGENAME}}|.|0}}.png|PNG version]] for more information.</div>}}
  | svg = <div class="neutral-box">See the page of the [[:File:{{#explode:{{PAGENAME}}|.|0}}.png|PNG version]] for more information.</div>}}
{{#set:
{{#set:
  Has title = {{#explode:{{PAGENAME}}|.|0}}
  Has title = {{#explode:{{PAGENAME}}|.|0}}
  |Has graphic type = {{{Type|}}}|+sep=,
  |Has graphic type = {{{Type|}}}|+sep=;
  |Has graphic subtype = {{{Subtype|}}}|+sep=,
  |Has graphic subtype = {{{Subtype|}}}|+sep=;
  |Has subject = {{{Subject|}}}|+sep=,
  |Has subject = {{{Subject|}}}|+sep=;
  |Has sort key = {{#switch: {{#len: {{#explode:{{#explode:{{#explode:{{PAGENAME}}|.|0}}|,|1}}|-|0}} }}
  |Has sort key = {{#switch: {{#len: {{#explode:{{#explode:{{#explode:{{PAGENAME}}|.|0}}|,|1}}|-|0}} }}
   | 1 = {{#explode:{{PAGENAME}}|,|0}},00{{#explode:{{PAGENAME}}|,|1}}
   | 1 = {{#explode:{{PAGENAME}}|,|0}},00{{#explode:{{PAGENAME}}|,|1}}