Template:Graphic: Difference between revisions

From Wittgenstein Nachlass Graphics
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}}

Revision as of 13:30, 3 March 2024

This template generates the description box for individual graphics and allows them to be tagged semantically.

The syntax is as follows:

{{Graphic
| Type = Graphic
| Subtype = Abbild
| Subject = Gesicht(er)
}}

This templates works with Form:Graphic.