Template:Graphic: Difference between revisions

From Wittgenstein Nachlass Graphics
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 57: Line 57:
  |Has tags = {{{Tags|}}}|+sep=;
  |Has tags = {{{Tags|}}}|+sep=;
  |Has sort key = {{#switch: {{#explode:{{PAGENAME}}|,|0}}
  |Has sort key = {{#switch: {{#explode:{{PAGENAME}}|,|0}}
| 212 = {{Ts-212 sort keys}}
  | 180a = {{#ifeq: {{PAGENAME}} | 180a,FCv-a.png | 180a,000FCv-a | {{Filename to sort key|{{PAGENAME}}}} }}
| {{#switch: {{#len: {{#explode:{{#explode:{{#explode:{{#explode:{{#explode:{{PAGENAME}}|v|0}}|r|0}}|.|0}}|,|1}}|-|0}} }}
  | 212 = {{Ts-212 sort keys}}
    | 1 = {{#explode:{{PAGENAME}}|,|0}},00{{#explode:{{PAGENAME}}|,|1}}
  | {{Filename to sort key|{{PAGENAME}}}}
    | 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}}
   | 212 = {{Ts-212 link to Wittgenstein Source}}
   | 212 = {{Ts-212 link to Wittgenstein Source}}
   | http://www.wittgensteinsource.org/{{#ifeq: {{#sub:{{PAGENAME}}|0|1}} | 1 | Ms- | Ts- }}{{#explode: {{#explode:{{PAGENAME}}|.|0}} |-|0}}_f
   | http://www.wittgensteinsource.org/{{#ifeq: {{#sub:{{PAGENAME}}|0|1}} | 1 | Ms- | Ts- }}{{#explode: {{#explode:{{PAGENAME}}|.|0}} |-|0}}_f
  }}
  }}
  |Has link to SFB = {{urlencode: https://wab.uib.no/sfb/?q={{ {{#ifeq: {{#sub:{{PAGENAME}}|0|1}} | 1 | Ms- | Ts- }}{{#explode:{{PAGENAME}}|,|0}} link to SFB}} }}
  |Has link to SFB = https://wab.uib.no/sfb/?q={{urlencode: {{ {{#ifeq: {{#sub:{{PAGENAME}}|0|1}} | 1 | Ms- | Ts- }}{{#explode:{{PAGENAME}}|,|0}} link to SFB}} }}
  |Is identical to = {{{Is identical to|}}}
  |Is identical to = {{{Is identical to|}}}
  |Is rendered as = {{#ifeq: {{#explode:{{PAGENAME}}|.|1}} | png | {{#switch: {{{Is rendered as|}}}
  |Is rendered as = {{#ifeq: {{#explode:{{PAGENAME}}|.|1}} | png | {{#switch: {{{Is rendered as|}}}

Latest revision as of 15:47, 10 November 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.