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) (using #ask since #show appears to be broken) |
||
Line 9: | Line 9: | ||
</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: | </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|{{# | |<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>}} }} | ||
<div class="formedit">[[Special:EditData/morpheme/{{FULLPAGENAME}}|edit with form]]</div> | <div class="formedit">[[Special:EditData/morpheme/{{FULLPAGENAME}}|edit with form]]</div> | ||
{| class="table_data" width=100% | {| class="table_data" width=100% |
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.