Template:inscription: Difference between revisions
From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
Martin Braun (talk | contribs) No edit summary |
Martin Braun (talk | contribs) No edit summary |
||
Line 20: | Line 20: | ||
{{!}}- |}} | {{!}}- |}} | ||
! [[Property:text_plain|Transliteration]]: | ! [[Property:text_plain|Transliteration]]: | ||
| {{#vardefine: text | {{{reading|}}} }}{{#vardefine: text | {{#replace: {{#var: text}}|:|_separator!:_}} }}{{#vardefine: text | {{#replace: {{#var: text}}|/|_newline!/_}} }}{{#vardefine: text | {{#replace: {{#var: text}}| |_}} }}{{#vardefine: text | {{#replace: {{#var: text}}|__|_}} }}{{#vardefine: n | 1 }}{{#vardefine: i | 0 }}{{#vardefine: ok | 1 }}{{#vardefine: plain |}}{{#while: | {{ #ifexpr: {{ #var: ok }} > 0 | true }} | <nowiki/>{{#vardefine: word | {{#explode: {{#var: text}} |_| {{#var: i }} }} }}{{#vardefine: link | {{#explode: {{#var: word}} |!|0}} }}{{#vardefine: linktext | {{#explode: {{#var: word}} |!|1}} }}{{#ifeq: {{#var: linktext }} || {{#vardefine: linktext | {{#var: link }} }} }}{{#ifexist: {{#var: link }} |[[{{#var: link }}{{!}}{{#var: linktext }}]] |{{#var: linktext }} }}[[index::{{#var: link }}| ]]{{#vardefine: plain |{{#var: plain}} {{#var: linktext}} }}{{#ifeq: {{#var: link }} |:|| {{#ifeq: {{#var: link }} ||| [[word::{{#var: link }}| ]]}} }}{{#vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }} {{#ifeq: {{#explode: {{#var: text}} |_| {{#var: i }} }} || {{#vardefine: ok |0}} }} }}{{#vardefine: plain | {{#replace: {{#var: plain }}|:|:}} }}[[text_plain::{{#var: plain }}| ]] | | {{#vardefine: text | {{{reading|}}} }}{{#vardefine: text | {{#replace: {{#var: text}}|:|_separator!:_}} }}{{#vardefine: text | {{#replace: {{#var: text}}|/|_newline!/_}} }}{{#vardefine: text | {{#replace: {{#var: text}}| |_}} }}{{#vardefine: text | {{#replace: {{#var: text}}|__|_}} }}{{#vardefine: n | 1 }}{{#vardefine: i | 0 }}{{#vardefine: ok | 1 }}{{#vardefine: plain |}}{{#while: | {{ #ifexpr: {{ #var: ok }} > 0 | true }} | <nowiki/>{{#vardefine: word | {{#explode: {{#var: text}} |_| {{#var: i }} }} }}{{#vardefine: link | {{#explode: {{#var: word}} |!|0}} }}{{#vardefine: linktext | {{#explode: {{#var: word}} |!|1}} }}{{#ifeq: {{#var: linktext }} || {{#vardefine: linktext | {{#var: link }} }} }}{{#ifexist: {{#var: link }} |[[{{#var: link }}{{!}}{{#var: linktext }}]] |{{#var: linktext }} }}[[index::{{#var: link }}| ]]{{#vardefine: plain |{{#var: plain}} {{#var: linktext}} }}{{#ifeq: {{#var: link }} |:|| {{#ifeq: {{#var: link }} ||| [[word::{{#var: link }}| ]]}} }}{{#vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }} {{#ifeq: {{#explode: {{#var: text}} |_| {{#var: i }} }} || {{#vardefine: ok |0}} }} }}{{#vardefine: plain | {{#replace: {{#var: plain }}|:|:}} }}[[text_plain::{{#var: plain }}| ]] | ||
|- | |- | ||
! [[:Category:Character|Original script]]: | ! [[:Category:Character|Original script]]: | ||
Line 92: | Line 92: | ||
|- | |- | ||
! Alternative Sigla: | ! Alternative Sigla: | ||
| {{#vardefine: separator|}}{{#ifeq: {{{sigla_pid|}}}|||{{#var:separator}}{{bib|PID}} {{#arraymap:{{{sigla_pid|}}}|,|x|[[sigla_pid::x]]}}{{#vardefine:separator|, }}}}{{#ifeq: {{{sigla_ir|}}}|||{{#var:separator}}{{bib|IR}} {{#arraymap:{{{sigla_ir|}}}|,|x|[[sigla_ir::x]]}}{{#vardefine: separator| | | {{#vardefine: separator|}}{{#ifeq: {{{sigla_pid|}}}|||{{#var:separator}}{{bib|PID}} {{#arraymap:{{{sigla_pid|}}}|,|x|[[sigla_pid::x]]}}{{#vardefine:separator|, }}}}{{#ifeq: {{{sigla_ir|}}}|||{{#var:separator}}{{bib|IR}} {{#arraymap:{{{sigla_ir|}}}|,|x|[[sigla_ir::x]]}}{{#vardefine: separator|<br>}}}}{{#ifeq: {{#var:separator}}||none}}{{#vardefine: pid| {{#explode:{{{sigla_pid|}}}| |0}} }}{{#vardefine: pid|{{#pad:{{#var: pid}}|3|0|left}}_{{#explode:{{{sigla_pid|}}}| |1}} }}[[sortform_pid::{{#var: pid}}| ]]{{#vardefine: ir| {{#explode:{{{sigla_ir|}}}| |0}} }}{{#vardefine: ir|{{#pad:{{#var: ir}}|3|0|left}}_{{#explode:{{{sigla_ir|}}}| |1}} }}[[sortform_ir::{{#var: ir}}| ]] | ||
|- | |- | ||
! [[Property:index|Sources]]: | ! [[Property:index|Sources]]: | ||
| {{#vardefine: sources | {{{ | | {{#vardefine: sources | {{{source|}}} }}{{#vardefine: sources | {{#replace: {{#var: sources }}|: |:}} }}{{#vardefine: sources | {{#replace: {{#var: sources }}|; |;}} }}{{#vardefine: i | 0 }}{{#vardefine: ok | 1 }}{{ #while: | ||
| {{ #ifexpr: {{ #var: ok }} = 1 | true }} | | {{ #ifexpr: {{ #var: ok }} = 1 | true }} | ||
|<nowiki/>{{#vardefine: entry | {{#explode: {{#var: sources }}| | |<nowiki/>{{#vardefine: entry | {{#explode: {{#var: sources }}|;| {{#var: i }} }} }}{{#ifeq: {{#var: entry }}||{{#vardefine: ok | 0 }}|{{#vardefine: link | {{#explode: {{#var: entry }}|:|0}} }}{{#vardefine: text | {{#explode: {{#var: entry }}|:|1}} }}{{#ifeq: {{#var: i }}|0||<br>}}{{bib|{{#var: link }}}}: {{#var: text}} }}{{#vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }} }} | ||
|} | |} | ||
{{gallery}}[[Category:Inscription|{{#var: sortform}}]] | {{gallery}}[[Category:Inscription|{{#var: sortform}}]] | ||
</includeonly> | </includeonly> |
Revision as of 23:00, 25 August 2013
This template serves to display pages about inscriptions. These are best created or edited with the Form:inscription.
See the Category:Inscription for a list of all 389 inscription pages.