Template:morpheme: 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 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 }}|-|}} }} | </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: | ||
{{#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: | |<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>}} }} | ||
{{#ifgroup:editor|<div class="formedit">[[Special:EditData/morpheme/{{FULLPAGENAME}}|edit with form]]</div> | {{#ifgroup:editor|<div class="formedit">[[Special:EditData/morpheme/{{FULLPAGENAME}}|edit with form]]</div> | ||
<div class="cshow">{{#ifexpr: {{#var: checklevel }} != 0 | | <div class="cshow">{{#ifexpr: {{#var: checklevel }} != 0 | | ||
*[[Property:checklevel|Checklevel]]: {{#var: checklevel }} | *[[Property:checklevel|Checklevel]]: {{#var: checklevel }} | ||
*[[Property:problem|Problems]]: {{#var: problem }}| }} | *[[Property:problem|Problems]]: {{#var: problem }}| }} | ||
*[[Property:sortform|Sortform]]: "{{#var: sortcode }}" automatically derived from "{{#var: sortform }}"{{#ifeq: {{#var: disambiguation }}||| | *[[Property:sortform|Sortform]]: "{{#var: sortcode }}" automatically derived from "{{#var: sortform }}" | ||
*[[Property:disambiguation|Disambiguation pages]]: {{#var: disambiguation }} | *[[:Category:Morpheme|Category sortform]]: {{#var: sortform_category }}{{#ifeq: {{#var: disambiguation }}||| | ||
*[[Property:disambiguation|Disambiguation pages]]: {{#var: disambiguation }} }}</div>}} | |||
{| class="table_data" | {| class="table_data" | ||
! [[property:type_morpheme|Type]]: | ! [[property:type_morpheme|Type]]: | ||
Line 38: | Line 28: | ||
|- | |- | ||
! [[Property:language|Language]]: | ! [[Property:language|Language]]: | ||
| | | {{#arraymap:{{{language|}}}|,|x|[[language::x]]}} | ||
|- | |- | ||
! Phonemic Analysis: | ! Phonemic Analysis: | ||
| {{{analysis_phonemic|}}} | | {{{analysis_phonemic|}}} | ||
|- | |- | ||
! | ! colspan="2" | | ||
---- | |||
|- | |||
! Attestation: | |||
| {{#ask:[[Category:Word]][[morpheme::{{FULLPAGENAME}}]]|format=list}} | | {{#ask:[[Category:Word]][[morpheme::{{FULLPAGENAME}}]]|format=list}} | ||
|} | |} | ||
[[Category:Morpheme|{{#var: sortform_category }}]][[sortform::{{#var: sortcode }}| ]][[sortform_reverse::{{#var: sortcode_reverse }}| ]] | [[Category:Morpheme|{{#var: sortform_category }}]][[sortform::{{#var: sortcode }}| ]][[sortform_reverse::{{#var: sortcode_reverse }}| ]] | ||
</includeonly> | </includeonly> |
Revision as of 02:57, 12 August 2013
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.