Template:Graphic: Difference between revisions

From Wittgenstein Nachlass Graphics
No edit summary
No edit summary
Line 56: Line 56:
  |Has subject = {{{Subject|}}}|+sep=;
  |Has subject = {{{Subject|}}}|+sep=;
  |Has tags = {{{Tags|}}}|+sep=;
  |Has tags = {{{Tags|}}}|+sep=;
  |Has sort key = {{#switch: {{#len: {{#explode:{{#explode:{{#explode:{{#explode:{{#explode:{{PAGENAME}}|v|0}}|r|0}}|.|0}}|,|1}}|-|0}} }}
  |Has sort key = {{#switch: {{#explode:{{PAGENAME}}|,|0}}
  | 1 = {{#explode:{{PAGENAME}}|,|0}},00{{#explode:{{PAGENAME}}|,|1}}
| 212 = {{Ts-212 sort keys}}
  | 2 = {{#explode:{{PAGENAME}}|,|0}},0{{#explode:{{PAGENAME}}|,|1}}
| {{#switch: {{#len: {{#explode:{{#explode:{{#explode:{{#explode:{{#explode:{{PAGENAME}}|v|0}}|r|0}}|.|0}}|,|1}}|-|0}} }}
  | {{PAGENAME}}
    | 1 = {{#explode:{{PAGENAME}}|,|0}},00{{#explode:{{PAGENAME}}|,|1}}
    | 2 = {{#explode:{{PAGENAME}}|,|0}},0{{#explode:{{PAGENAME}}|,|1}}
    | {{PAGENAME}}
  }}
  }}
  }}
  |Has link to Wittgenstein Source = {{#switch: {{#explode: {{PAGENAME}}|,|0}}
  |Has link to Wittgenstein Source = {{#switch: {{#explode: {{PAGENAME}}|,|0}}

Revision as of 09:37, 15 June 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)
| Is identical to =
| Is rendered as = [ bitmap | literal ]
| No SVG available = [ any value (to be used for example with musical notation, where the source is a LilyPond file and not an SVG file) ]
}}

This templates works with Form:Graphic.