Template:Qhv-noun: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine: gender|{{#switch: {{str rightmost|{{{2|{{PAGENAME}}}}}|2}}|ar|or|ir=aq|ys|os|ȳs|ks|es|is=sol|on|en=ter|{{#ifeq: {{str rightmost|{{{2|{{PAGENAME}}}}}|1}}|s|sol|lun}}}}}}<!-- | {{#vardefine: gender|{{#switch: {{str rightmost|{{{2|{{PAGENAME}}}}}|2}}|ar|or|ir=aq|ys|os|ȳs|ks|es|is=sol|on|en=ter|{{#ifeq: {{str rightmost|{{{2|{{PAGENAME}}}}}|1}}|s|sol|lun}}}}}}<!-- | ||
-->{{#vardefine: sort|{{#invoke: qhv-noun/test|test | -->{{#vardefine: sort|{{#invoke: qhv-noun/test|test}}}}<!-- | ||
-->{{#vardefine: gendername|{{#switch: {{{1|{{#var: gender}}}}}|lun=lunar|aq=aquatic|sol=solar|ter=terrestrial|}}}}<!-- | -->{{#vardefine: gendername|{{#switch: {{{1|{{#var: gender}}}}}|lun=lunar|aq=aquatic|sol=solar|ter=terrestrial|}}}}<!-- | ||
Line 7: | Line 7: | ||
-->{{#vardefine: proper|{{#if: {{{proper|}}}|proper nouns|nouns}}}}<!-- | -->{{#vardefine: proper|{{#if: {{{proper|}}}|proper nouns|nouns}}}}<!-- | ||
-->{{#ifeq:{{FULLPAGENAME}}|Template:Qhv-noun||'''{{#if:{{#regex:{{PAGENAME}}|(\s)}}|{{#invoke: linkeach|link|{{PAGENAME}}}}|{{PAGENAME}}}}''' ''{{#invoke: getn|show_list|{{{1|{{#var: gender}}}}}}}'' (''genitive'' '''{{term|{{{gen|{{#invoke: qhv-noun/head|generate|gen_sg}}}}}}}'''{{#if: {{{3|{{{nopl|}}}}}}||, ''plural'' '''{{term|{{{pl|{{#invoke: qhv-noun/head|generate|nom_pl}}}}}}}'''}})}}<!-- | -->{{#ifeq:{{FULLPAGENAME}}|Template:Qhv-noun||'''{{#if:{{#regex:{{PAGENAME}}|(\s)}}|{{#invoke: linkeach|link|{{PAGENAME}}}}|{{PAGENAME}}}}''' ''{{#invoke: getn|show_list|{{{1|{{#var: gender}}}}}}}'' (''genitive'' '''{{term|{{{gen|{{#invoke: qhv-noun/head|generate|gen_sg|{{{2}}}}}}}}}}'''{{#if: {{{3|{{{nopl|}}}}}}||, ''plural'' '''{{term|{{{pl|{{#invoke: qhv-noun/head|generate|nom_pl|{{{2}}}}}}}}}}'''}})}}<!-- | ||
--><includeonly>[[Category:Contionary|{{#var: sort}}]] [[Category:High Valyrian {{#var: gendername}} {{#var: proper}}|{{#var: sort}}]] [[Category: High Valyrian {{#var: proper}}|{{#var: sort}}]] [[Category:High Valyrian lemmas|{{#var: sort}}]]</includeonly><!-- | --><includeonly>[[Category:Contionary|{{#var: sort}}]] [[Category:High Valyrian {{#var: gendername}} {{#var: proper}}|{{#var: sort}}]] [[Category: High Valyrian {{#var: proper}}|{{#var: sort}}]] [[Category:High Valyrian lemmas|{{#var: sort}}]]</includeonly><!-- |
Revision as of 16:26, 4 March 2021
- The following documentation is located at Template:Qhv-noun/doc. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox (diff)
This template uses Lua: |
Template for High Valyrian headwords, specifically nouns.
Parameters
|1=
It overrides the automatic gender. Please use the abbreviations a, l, s, and t.
|gen=
and|pl=
They override the generated genitive singular and nominative plural, respectively.
|nopl=
Boolean. It hides plural forms.