| | |
| Line 1: | Line 1: |
| − | {{Latn|{{{head|{{PAGENAME}}}}}|face=head|lang=ca}} <!-- | + | <strong class="headword" lang="ca">{{{head|{{PAGENAME}}}}}</strong> <!-- |
| | | | |
| − | // Display the gender, or mark the entry as lacking gender | + | Display the gender, or mark the entry as lacking gender |
| − | -->{{#switch:{{{1}}} | + | -->{{#switch:{{{1}}}<!-- |
| − | | m = {{m}} | + | -->|m={{m}}<!-- |
| − | | f = {{f}} | + | -->|f={{f}}<!-- |
| − | | c | mf = {{m|f}} | + | -->|c|mf={{m|f}}<!-- |
| − | |#default = <span class="gender" title="gender unspecified">''?''</span>{{#ifeq:{{NAMESPACE}}||[[Category:Catalan nouns lacking gender]]}}}} <!-- | + | -->|#default=<span class="gender" title="gender unspecified">''?''</span>{{#ifeq:{{NAMESPACE}}||[[Category:Catalan nouns lacking gender]]}}<!-- |
| | + | -->}} <!-- |
| | | | |
| − | // Determine the plural form / Accelerate plural entry creation | + | Determine the plural form / Accelerate plural entry creation |
| − | -->{{#switch:{{{2}}} | + | -->{{#switch:{{{2}}}<!-- |
| − | | - = (''[[Appendix:Glossary#uncountable|uncountable]]'') | + | -->|-=(''[[Appendix:Glossary#uncountable|uncountable]]'')<!-- |
| − | | inv = (''[[Appendix:Glossary#invariable|invariable]]'') | + | -->|inv=(''[[Appendix:Glossary#invariable|invariable]]'')<!-- |
| − | | onlyplural = (''[[plurale tantum]]'') | + | -->|onlyplural=(''[[plurale tantum]]'')<!-- |
| − | |#default = (''plural'' <span class="form-of plural-form-of lang-ca gender-{{{1|}}}">'''[[{{{pl|{{{2|{{PAGENAME}}s}}}}}}#Catalan|{{{pl|{{{2|{{PAGENAME}}s}}}}}}]]'''</span><!-- | + | -->|#default=<!-- |
| | + | -->(''plural'' <span class="form-of plural-form-of lang-ca gender-{{{1|}}}" lang="ca">'''[[{{{pl|{{{2|{{PAGENAME}}s}}}}}}#Catalan|{{{pl|{{{2|{{PAGENAME}}s}}}}}}]]'''</span><!-- |
| | | | |
| − | // Nested check for secondary plural form | + | -->{{#if:{{{pl2|}}}<!-- |
| − | -->{{#if:{{{pl2|}}}|<nowiki/> ''or'' '''<span class="form-of plural-form-of lang-ca gender-{{{1|}}}">[[{{{pl2}}}#Catalan|{{{pl2}}}]]'''</span>}}<!-- | + | -->|<!-- |
| | + | --><nowiki/> ''or'' '''<span class="form-of plural-form-of lang-ca gender-{{{1|}}}" lang="ca">[[{{{pl2}}}#Catalan|{{{pl2}}}]]'''</span><!-- |
| | + | -->}}<!-- |
| | | | |
| − | // Nested check for form in other gender | + | -->{{#if:{{{f|{{{m|{{{othergender|{{{3|}}}}}}}}}}}}<!-- |
| − | -->{{#if:{{{f|{{{m|{{{othergender|{{{3|}}}}}}}}}}}}|, {{#switch:{{{1|}}}|m=''feminine''|f=''masculine''|}} '''[[{{{f|{{{m|{{{othergender|{{{3}}}}}}}}}}}}#Catalan|{{{f|{{{m|{{{othergender|{{{3}}}}}}}}}}}}]]'''}}<!-- | + | -->|<!-- |
| | + | -->, {{#switch:{{{1|}}}|m=''feminine''|f=''masculine''}} <span lang="ca">'''[[{{{f|{{{m|{{{othergender|{{{3}}}}}}}}}}}}#Catalan|{{{f|{{{m|{{{othergender|{{{3}}}}}}}}}}}}]]'''</span><!-- |
| | + | -->}}<!-- |
| | | | |
| − | // Nested check for plural in other gender | + | -->{{#if:{{{fpl|{{{mpl|{{{othergenderpl|{{{4|}}}}}}}}}}}}<!-- |
| − | -->{{#if:{{{fpl|{{{mpl|{{{othergenderpl|{{{4|}}}}}}}}}}}}|, {{#switch:{{{1|}}}|m=''feminine plural''|f=''masculine plural''|}} '''[[{{{fpl|{{{mpl|{{{othergenderpl|{{{4}}}}}}}}}}}}#Catalan|{{{fpl|{{{mpl|{{{othergenderpl|{{{4}}}}}}}}}}}}]]'''}}<!-- | + | -->|<!-- |
| | + | -->, {{#switch:{{{1|}}}|m=''feminine plural''|f=''masculine plural''}} <span lang="ca">'''[[{{{fpl|{{{mpl|{{{othergenderpl|{{{4}}}}}}}}}}}}#Catalan|{{{fpl|{{{mpl|{{{othergenderpl|{{{4}}}}}}}}}}}}]]'''</span><!-- |
| | + | -->}}<!-- |
| | | | |
| − | // Close plural form parentheses | + | -->)<!-- |
| − | -->) }}<!-- | + | -->}}<!-- |
| | | | |
| | CATEGORIES | | CATEGORIES |
| − | -->{{#if:{{NAMESPACE}}||<!-- | + | --><includeonly>{{#if:{{NAMESPACE}}||<!-- |
| | -->[[Category:Catalan {{{cat|nouns}}}|{{{sort|{{PAGENAME}}}}}]]<!-- | | -->[[Category:Catalan {{{cat|nouns}}}|{{{sort|{{PAGENAME}}}}}]]<!-- |
| | | | |
| Line 36: | Line 36: |
| | -->}}<!-- | | -->}}<!-- |
| | | | |
| − | -->}}<!-- | + | -->}}</includeonly><!-- |
| | --><noinclude>{{documentation}}</noinclude> | | --><noinclude>{{documentation}}</noinclude> |
- The following documentation is located at Template:ca-noun/doc. [edit]
Use this template to show the inflection of Catalan nouns. For plural of nouns, please use {{plural of||lang=ca}}.
The template adds the entry to Category:Catalan nouns. As with other Wiktionary part of speech templates, please do not use subst:.
This template contains the necessary meta-data to allow users who are using accelerated editing to create any grammatical forms semi-automatically.
[edit] Parameters
| Parameter | Function | Default value (if left unspecified) |
| head | The head word, if different from the page name, or to link to individual words | {{PAGENAME}} |
| 1 | The gender. It accepts m, f or mf | No default, obligatory |
| 2, pl or plural | The (masculine) plural form. When it is specified as -, the noun is given as uncountable | [[{{PAGENAME}}s]] |
| 3, f or fem | Feminine form | No default, only used when specified |
| 4, fpl or fplural | Feminine plural form | No default, only used when specified |
| pl2 | The second plural, see text for an example | No default, only used when specified |
| sort | Sort key for Category:Catalan nouns | {{PAGENAME}} |
[edit] Examples
On animal
{{ca-noun|m}}
Which gives
animal m (plural animals)
On biblioteca
{{ca-noun|f|biblioteques}}
Which gives
biblioteca f (plural biblioteques)
On català
{{ca-noun|m|catalans|catalana|catalanes|sort=catala}}
Or
{{ca-noun|m|pl=catalans|f=catalana|fpl=catalanes|sort=catala}}
Which gives
català m (plural catalans, feminine catalana, feminine plural catalanes)
On pòquer
{{ca-noun|m|-|sort=poquer}}
Which gives
pòquer m (uncountable)