Template:word: Difference between revisions

From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
No edit summary
 
(using #ask since #show appears to be broken)
 
(18 intermediate revisions by 2 users not shown)
Line 7: Line 7:
[[Category:Page Module]]
[[Category:Page Module]]


</noinclude><includeonly>{{#vardefine: disambiguation | {{#arraymap:{{{disambiguation|}}}|,|x|[[disambiguation::x]]}} }}{{#vardefine: checklevel | {{{checklevel|}}} }}{{#ifeq: {{#var: checklevel }} || {{#vardefine: checklevel | 0 }} }}
</noinclude><includeonly>{{#vardefine: disambiguation | {{#arraymap:{{{disambiguation|}}}|,|x|[[disambiguation::x]]}} }}{{#vardefine: checklevel | {{{checklevel|}}} }}{{#ifeq: {{#var: checklevel}} || {{#vardefine: checklevel | 0 }} }}[[checklevel::{{{checklevel|}}}| ]]{{#vardefine: problem | {{#arraymap:{{{problem|}}}|;|x|[[problem::x]]}} }}{{#vardefine: sortform | {{lc:{{{sortform|}}} }} }}{{#ifeq: {{{sortform|}}}||{{#vardefine: sortform | {{lc:{{PAGENAME}} }} }} }}{{#vardefine: sortform_category |{{#var: sortform}} }}{{#vardefine: sortform_category |{{#replace: {{#var: sortform_category}}|)|}} }}{{#vardefine: sortform_category |{{#replace: {{#var: sortform_category}}|(|}} }}{{#vardefine: sortform_category |{{#replace: {{#var: sortform_category}}|?|}} }}{{#vardefine: sortform_category |{{#replace: {{#var: sortform_category}}|χ|ch}} }}{{#vardefine: sortform_category |{{#replace: {{#var: sortform_category}}|φ|ph}} }}{{#vardefine: sortform_category |{{#replace: {{#var: sortform_category}}|ś|s}} }}{{#vardefine: sortform_category |{{#replace: {{#var: sortform_category}}|θ|th1}} }}{{#vardefine: sortform_category |{{#replace: {{#var: sortform_category}}|þ|th2}} }}{{#vardefine: n|0 }}{{#vardefine: len|{{#len: {{#var: sortform}} }} }}
[[checklevel::{{{checklevel|}}}| ]]{{#vardefine: problem | {{#arraymap:{{{problem|}}}|,|x|[[problem::x]]}} }}{{#vardefine: sortform | {{lc:{{{sortform|}}} }} }}{{#ifeq: {{{sortform|}}}||{{#vardefine: sortform | {{lc:{{PAGENAME}} }} }} }}{{#vardefine: sortform_category | {{#var: sortform}} }}{{#vardefine: sortform_category |{{#replace: {{#var: sortform_category }}|)|}} }}{{#vardefine: sortform_category |{{#replace: {{#var: sortform_category }}|(|}} }}{{#vardefine: sortform_category |{{#replace: {{#var: sortform_category }}|?|}} }}{{#vardefine: language | {{#explode: {{{language|}}}|,|0 }} }}{{#vardefine: list |a=01;á=01;ā=01;b=02;c=03;d=04;e=05;é=05;ē=05;ϝ=06;f=07;ζ=08;g=09;h=10;θ=11;i=12;í=12;ī=12;j=13;k=14;l=15;m=16;n=17;ξ=18;o=19;ó=19;ō=19;p=20;ś=21;q=22;r=23;s=24;t=25;u=26;ú=26;ū=26;v=27;w=28;φ=29;χ=30;ψ=31;ω=32;x=33;y=34;z=35; =00}}{{#vardefine: list_northitalic |o=ω;v=ϝ;c=k;z=ζ}}{{#vardefine: language_northitalic | Lepontic;Cisalpine Gaulish;Celtic;Ligurian;Etruscan;Raetic;Venetic }}{{#vardefine: northitalic | 0 }}{{#vardefine: i | 0 }}{{#vardefine: ok | 1 }}{{#while:
{{#vardefine: sortcode|}}{{#vardefine: sortcode_reverse|}}{{#vardefine: separator|}}{{#while:
  | {{#ifexpr: {{#var: ok }} = 1 | true }}
   | {{#ifexpr: {{#var: n}} < {{#var: len}} | true }}
  |<nowiki/>{{#vardefine: entry | {{#explode: {{#var: language_northitalic }}|;| {{#var: i }} }} }}{{#ifeq: {{#var: entry }}|{{#var: language }}|{{#vardefine: northitalic | 1 }} }}{{#ifeq: {{#var: entry }}||{{#vardefine: ok | 0 }} }}{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }} }}
   |<nowiki/>{{#vardefine: c | {{#sub: {{#var: sortform}}|{{#var: n}}|1}} }}{{#vardefine: to|{{#ask: [[{{uc:{{#var: c}}}}]]|?sortform_cval=|mainlabel=-}}}}{{#ifeq: {{#var: to}}|||{{#vardefine: sortcode|{{#var: sortcode}}{{#var: separator}}{{#var: to}}}}{{#vardefine: sortcode_reverse|{{#var: to}}{{#var: separator}}{{#var: sortcode_reverse}}}}{{#vardefine: separator|-}}}}{{#vardefine: n | {{#expr: {{#var: n}} + 1 }} }} }}{{#ifeq: {{#var: sortcode}} || {{#vardefine: sortcode |99}} }}
{{#ifeq: {{#var: northitalic }}|1|{{#vardefine: i | 0 }}{{#vardefine: ok | 1 }}{{#while:
<div class="formedit">[[Special:EditData/word/{{FULLPAGENAME}}|edit with form]]</div>
  | {{#ifexpr: {{#var: ok }} = 1 | true }}
{| class="table_data" width=100%
  |<nowiki/>{{#vardefine: entry | {{#explode: {{#var: list_northitalic }}|;| {{#var: i }} }} }}{{#vardefine: from | {{#explode: {{#var: entry }}|=| 0 }} }}{{#vardefine: to | {{#explode: {{#var: entry }}|=| 1 }} }}{{#ifeq: {{#var: entry }}||{{#vardefine: ok | 0 }}|{{#vardefine: sortform |{{#replace: {{#var: sortform }}|{{#var: from}}|{{#var: to}}}} }} }}{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }} }} }}
! colspan="2" class="field_category" | [[:Category:Word|Word]]
{{#vardefine: n | 0 }}{{#vardefine: len | {{#len: {{#var: sortform }} }} }}
{{#vardefine: sortcode |}}{{#vardefine: sortcode_reverse |}}{{#vardefine: separator |}}{{#while:
   | {{#ifexpr: {{#var: n }} < {{#var: len }} | true }}
   |<nowiki/>{{#vardefine: c | {{#sub: {{#var: sortform }}|{{#var: n }}|1}} }}{{#vardefine: i | 0 }}{{#vardefine: ok | 1 }}{{#while:
  | {{#ifexpr: {{#var: ok }} = 1 | true }}
  |<nowiki/>{{#vardefine: entry | {{#explode: {{#var: list }}|;| {{#var: i }} }} }}{{#vardefine: from | {{#explode: {{#var: entry }}|=| 0 }} }}
{{#vardefine: to | {{#explode: {{#var: entry }}|=| 1 }} }}{{#ifeq: {{#var: entry }}||{{#vardefine: ok | 0 }}|{{#ifeq: {{#var: c }}|{{#var: from}}|{{#vardefine: sortcode|{{#var: sortcode }}{{#var: separator}}{{#var: to}}}}{{#vardefine: sortcode_reverse|{{#var: to }}{{#var: separator}}{{#var: sortcode_reverse}}}}{{#vardefine: separator|-}} }} }}{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }} }}{{#vardefine: n | {{#expr: {{#var: n }} + 1 }} }} }}{{#ifeq: {{#var: sortcode }} || {{#vardefine: sortcode | <span style="color:red;">incorrect, please delete!</span>}} }}<cshow logged=1 ingroup='editor'><div class="formedit">[[Special:EditData/word/{{FULLPAGENAME}}|edit with form]]</div>
<div class="cshow">{{#ifexpr: {{#var: checklevel }} != 0 |
*[[Lexicon_Leponticum:Checklist|Checklevel]]: {{#var: checklevel }}
*[[Property:problem|Problems]]: {{#var: problem }}| }}
*[[Property:sortform|Sortform]]: "{{#var: sortcode }}" automatically derived from "{{#var: sortform }}"{{#ifeq: {{#var: disambiguation }}|||
*[[Property:disambiguation|Disambiguation pages]]: {{#var: disambiguation }} }}
*Category sortform: {{#var: sortform_category }}</div>
</cshow>
{| class="table_data"
{{#if: {{{description|}}} | ! [[Property:description|Description]]:
{{!}} [[description::{{{description|}}}]]
{{!}}- | }}
{{#if: {{{citation_form|}}} | ! [[Property:citation_form|Citation Form]]: | }}
| [[citation_form::{{{citation_form|}}}]] {{#ifeq: {{{citation_form|}}} | {{FULLPAGENAME}} | <span style="color:red;">Error: The citation form should be different from the page name or left blank!</span> | }}
|-
! Attestation:
| {{#ask:[[Category:Inscription]][[word::{{FULLPAGENAME}}]]|?text_plain=|format=list|default=none}} ({{#ask:[[Category:Inscription]][[word::{{FULLPAGENAME}}]]|format=count}})
|-
|-
{{#if: {{{status|}}} | ! [[Property:status|Status]]:
! width="200" | [[Property:language|Language]]:
{{!}} [[status::{{{status|}}}]]
| {{#arraymap:{{{language|}}}|,|x|[[language::x]]}}
{{!}}- | }}
! [[Property:language|Language]]:
| {{#ifeq: {{{linguistic_ascription|}}}|||[[Property:linguistic_ascription|{{{linguistic_ascription|}}}]]&nbsp;}}[[linguistic_ascription::{{{linguistic_ascription|}}}| ]]{{#arraymap:{{{language|}}}|,|x|[[language::x]]}}
|-
|-
{{#if: {{{language_adaptation|}}} | ! <span style="margin-left:10px;">[[Property:language_adaptation|adapted to]]:</span>
! [[Property:type_word|Word type]]:
{{!}} {{#arraymap:{{{language_adaptation|}}}|,|x|[[language_adaptation::x]]}}
{{!}}- | }}
! [[Property:type_word|Word Type]]:
| [[type_word::{{{type_word|}}}]]
| [[type_word::{{{type_word|}}}]]
|-
|-
{{#if: {{{field_semantic|}}} | ! [[Property:field_semantic|Semantic Field]]:
! colspan="2" |
{{!}} [[field_semantic::{{{field_semantic|}}}]] | }}
{{#if: {{{number|}}} |
{{!}}-
! colspan="2" {{!}}
----
----
[[:Category:Grammar|Grammatical Categories]]: | }}
|-
|-
{{#if: {{{case|}}} | ! [[Property:case|Case]]:  
{{#if: {{{case|}}} |! [[Property:case|Case]]:  
{{!}} {{#arraymap:{{{case|}}}|,|x|[[case::x]]}}
{{!}} {{#arraymap:{{{case|}}}|,|x|[[case::x]]}}
{{!}}- | }}
{{!}}- | }}
{{#if: {{{person|}}} | ! [[Property:person|Person]]:
{{#if: {{{person|}}} |! [[Property:person|Person]]:
{{!}} [[person::{{{person|}}}]]
{{!}} [[person::{{{person|}}}]]
{{!}}- | }}
{{!}}- | }}
{{#if: {{{number|}}} | ! [[Property:number|Number]]:
{{#if: {{{number|}}} |! [[Property:number|Number]]:
{{!}} {{#arraymap:{{{number|}}}|,|x|[[number::x]]}}
{{!}} {{#arraymap:{{{number|}}}|,|x|[[number::x]]}}
{{!}}- | }}
{{!}}- | }}
{{#if: {{{gender|}}} | ! [[Property:gender|Gender]]:
{{#if: {{{gender|}}} |! [[Property:gender|Gender]]:
{{!}} {{#arraymap:{{{gender|}}}|,|x|[[gender::x]]}}
{{!}} {{#arraymap:{{{gender|}}}|,|x|[[gender::x]]}}
{{!}}- | }}
{{!}}- | }}
{{#if: {{{stem_class|}}} | ! [[Property:stem_class|Stem Class]]:
{{#if: {{{stem_class|}}} |! [[Property:stem_class|Stem class]]:
{{!}} {{#arraymap:{{{stem_class|}}}|,|x|[[stem_class::x]]}}
{{!}} {{#arraymap:{{{stem_class|}}}|,|x|[[stem_class::x]]}}
{{!}}- | }}
{{!}}- | }}
{{#if: {{{tense|}}} | ! [[Property:tense|Tense]]:
{{#if: {{{tense|}}} |! [[Property:tense|Tense]]:
{{!}} [[tense::{{{tense|}}}]]
{{!}} {{#arraymap:{{{tense|}}}|,|x|[[tense::x]]}}
{{!}}- | }}
{{!}}- | }}
! colspan="2" |  
! colspan="2" |  
----
----
|-
|-
! [[:Category:Morpheme|Morphemic Analysis]]:
{{#if: {{{analysis_morphemic|}}} |! [[:Category:Morpheme|Morphemic analysis]]:
| {{{analysis_morphemic|}}}
{{!}} {{{analysis_morphemic|}}}
|-
{{!}}- | }}
! [[:Category:Phoneme|Phonemic Analysis]]:
{{#if: {{{analysis_phonemic|}}} |! [[:Category:Phoneme|Phonemic analysis]]:
| {{{analysis_phonemic|}}}
{{!}} {{{analysis_phonemic|}}}
|-
{{!}}- | }}
! [[Property:meaning|Meaning]]:
! [[Property:meaning|Meaning]]:
| [[meaning::{{{meaning|}}}]]
| [[meaning::{{{meaning|}}}]]
|-
! colspan="2" |
----
|- {{#vardefine: lemma | {{PAGENAME}} }}{{#if: {{{lemma|}}} | {{#vardefine: lemma | {{{lemma|}}} }} }}[[lemma::{{#var: lemma}}| ]]{{#vardefine: paradigm_n | {{#ask: [[Category:Word]][[lemma::{{#var: lemma}}]]|sort=sortform_cval|format=count}} }}
{{#ifexpr: {{#var: paradigm_n }} >1|! Paradigm:
{{!}} {{#ask: [[Category:Word]][[lemma::{{#var: lemma}}]]|?case=|?tense=|?person=|?number=|?gender=|format=list|default=none|sort=sortform_cval}} ({{#var: paradigm_n }})
{{!}}- }}
! Attestation:
| {{#ask:[[Category:Inscription]][[word::{{FULLPAGENAME}}]]|?text_plain=|format=list|default=none|sort=sortform}} ({{#ask:[[Category:Inscription]][[word::{{FULLPAGENAME}}]]|sort=sortform|format=count}})
|}
|}
[[Category:Word|{{#var: sortform_category }}]][[sortform::{{#var: sortcode }}| ]][[sortform_reverse::{{#var: sortcode_reverse }}| ]]
[[Category:Word|{{#var: sortform_category}}]][[sortform_cval::{{#var: sortcode}}| ]][[sortform_cval_reverse::{{#var: sortcode_reverse}}| ]]
</includeonly>
</includeonly>

Latest revision as of 23:09, 29 April 2020

This template serves to display pages about words of any language. These are best created or edited with the Form:word.

See the Category:Word for a list of all 155 word pages.