Template:word: 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 }}|?|}} }}{{#vardefine: sortform_category |{{#replace: {{#var: sortform_category }}|χ|ch}} }}{{#vardefine: sortform_category |{{#replace: {{#var: sortform_category }}|φ|ph}} }} | </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 }} }} }}{{#vardefine: sortcode|}}{{#vardefine: sortcode_reverse|}}{{#vardefine: separator|}}{{#while: | {{#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|{{#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/word/{{FULLPAGENAME}}|edit with form]]</div> | {{#ifgroup:editor|<div class="formedit">[[Special:EditData/word/{{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 }}" | *[[Property:sortform|Sortform]]: "{{#var: sortcode}}" automatically derived from "{{#var: sortform}}" | ||
*[[:Category:Word|Category sortform]]: {{#var: sortform_category }}{{#ifeq: {{#var: disambiguation }}||| | *[[:Category:Word|Category sortform]]: {{#var: sortform_category}}{{#ifeq: {{#var: disambiguation}}||| | ||
*[[Property:disambiguation|Disambiguation pages]]: {{#var: disambiguation }} }}</div>}} | *[[Property:disambiguation|Disambiguation pages]]: {{#var: disambiguation}} }}</div>}} | ||
{| class="table_data" width= | {| class="table_data" width=100% | ||
! colspan="2" class="field_category" | [[:Category:Word|Word]] | ! colspan="2" class="field_category" | [[:Category:Word|Word]] | ||
|- | |- | ||
Line 27: | Line 27: | ||
| [[type_word::{{{type_word|}}}]] | | [[type_word::{{{type_word|}}}]] | ||
|- | |- | ||
! colspan="2" | | |||
! colspan="2" | |||
---- | ---- | ||
[[:Category:Grammar|Grammatical categories]]: | [[: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]]: | ||
{{!}} {{#arraymap:{{{tense|}}}|,|x|[[tense::x]]}} | |||
{{!}}- | }} | {{!}}- | }} | ||
! colspan="2" | | ! colspan="2" | | ||
Line 68: | Line 67: | ||
| {{#ask:[[Category:Inscription]][[word::{{FULLPAGENAME}}]]|?text_plain=|format=list|default=none}} ({{#ask:[[Category:Inscription]][[word::{{FULLPAGENAME}}]]|format=count}}) | | {{#ask:[[Category:Inscription]][[word::{{FULLPAGENAME}}]]|?text_plain=|format=list|default=none}} ({{#ask:[[Category:Inscription]][[word::{{FULLPAGENAME}}]]|format=count}}) | ||
|} | |} | ||
[[Category:Word|{{#var: sortform_category }}]][[sortform::{{#var: sortcode }}| ]][[sortform_reverse::{{#var: sortcode_reverse }}| ]] | [[Category:Word|{{#var: sortform_category}}]][[sortform::{{#var: sortcode}}| ]][[sortform_reverse::{{#var: sortcode_reverse}}| ]] | ||
</includeonly> | </includeonly> |
Revision as of 11:31, 14 December 2013
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.