Template:morpheme: Difference between revisions

From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
No edit summary
(using #ask since #show appears to be broken)
 
(8 intermediate revisions by the same user 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 }} }}[[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: n|0 }}{{#vardefine: len|{{#len: {{#var: sortform }} }} }}{{#vardefine: sortcode|}}{{#vardefine: sortcode_reverse|}}{{#vardefine: separator|}}{{#while:
</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 }}|?|}} }}{{#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 }} }} }}{{#vardefine: sortcode|}}{{#vardefine: sortcode_reverse|}}{{#vardefine: separator|}}{{#while:
   | {{#ifexpr: {{#var: n }} < {{#var: len }} | true }}
   | {{#ifexpr: {{#var: n }} < {{#var: len }} | true }}
   |<nowiki/>{{#vardefine: c | {{#sub: {{#var: sortform }}|{{#var: n }}|1}} }}{{#vardefine: to|{{#show: {{uc:{{#var: c}}}}|?sortform}}}}{{#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 | <span style="color:red;">incorrect, please delete!</span>}} }}
   |<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 | <span style="color:red;">incorrect, please delete!</span>}} }}
{{#ifgroup:editor|<div class="formedit">[[Special:EditData/morpheme/{{FULLPAGENAME}}|edit with form]]</div>
<div class="formedit">[[Special:EditData/morpheme/{{FULLPAGENAME}}|edit with form]]</div>
<div class="cshow">{{#ifexpr: {{#var: checklevel }} != 0 |
{| class="table_data" width=100%
*[[Property:checklevel|Checklevel]]: {{#var: checklevel }}
! colspan="2" class="field_category" | [[:Category:Morpheme|Morpheme]]
*[[Property:problem|Problems]]: {{#var: problem }}| }}
|-
*[[Property:sortform|Sortform]]: "{{#var: sortcode }}" automatically derived from "{{#var: sortform }}"
! width="100" | [[Property:language|Language]]:
*[[:Category:Morpheme|Category sortform]]: {{#var: sortform_category }}{{#ifeq: {{#var: disambiguation }}|||
| {{#arraymap:{{{language|}}}|,|x|[[language::x]]}}
*[[Property:disambiguation|Disambiguation pages]]: {{#var: disambiguation }} }}</div>}}
|-
{| class="table_data"
! [[property:type_morpheme|Type]]:
! [[property:type_morpheme|Type]]:
| [[type_morpheme::{{{type_morpheme|}}}]]
| [[type_morpheme::{{{type_morpheme|}}}]]
Line 24: Line 23:
| {{#arraymap:{{{meaning|}}}|,|x|[[meaning::x]]}}
| {{#arraymap:{{{meaning|}}}|,|x|[[meaning::x]]}}
|-
|-
{{#if: {{{function|}}} | ! [[Property:function|Function]]: | }}
{{#if: {{{function|}}} | ! [[Property:description|Function]]: | }}
| {{#arraymap:{{{function|}}}|,|x|[[function::x]]}}
| {{#arraymap:{{{function|}}}|,|x|[[description::x]]}}
|-
! [[Property:language|Language]]:
| {{#arraymap:{{{language|}}}|,|x|[[language::x]]}}
|-
|-
! Phonemic Analysis:
{{#if: {{{analysis_phonemic|}}} | ! Phonemic analysis: | }}
| {{{analysis_phonemic|}}}
| {{{analysis_phonemic|}}}
|-
|-
Line 37: Line 33:
|-
|-
! Attestation:
! Attestation:
| {{#ask:[[Category:Word]][[morpheme::{{FULLPAGENAME}}]]|format=list}}
| {{#ask:[[Category:Word]][[morpheme::{{FULLPAGENAME}}]] OR [[Category:Morpheme]][[morpheme::{{FULLPAGENAME}}]]|format=list|sort=sortform_cval|default=none}}
{{#vardefine:n|{{#ask: [[Category:Inscription]][[word::{{PAGENAME}}]]|format=count}}}}
{{#ifeq:{{#var: n}}|0||(additionally as part of unknown words in: {{#ask: [[Category:Inscription]][[word::{{PAGENAME}}]]}})}}
|}
|}
[[Category:Morpheme|{{#var: sortform_category }}]][[sortform::{{#var: sortcode }}| ]][[sortform_reverse::{{#var: sortcode_reverse }}| ]]
[[Category:Morpheme|{{#var: sortform_category }}]][[sortform_cval::{{#var: sortcode }}| ]][[sortform_cval_reverse::{{#var: sortcode_reverse }}| ]]
</includeonly>
</includeonly>

Latest revision as of 23:14, 29 April 2020

This template serves to display pages about morphemes. These are best created or edited with the Form:morpheme.

See Category:Morpheme for a list of all 11 morpheme pages.