Template:cs-noun: difference between revisions
Appearance
Content deleted Content added
No "else" parameter in #switch. |
No edit summary |
||
Line 1: | Line 1: | ||
{{Latn|{{{head|{{{sg|{{PAGENAME}}}}}}}}|face=head|lang=cs}}<!-- |
{{Latn|{{{head|{{{sg|{{PAGENAME}}}}}}}}|face=head|lang=cs}} <!-- |
||
-->{{#switch:{{{g}}}|m= {{m}}{{#ifeq:{{NAMESPACE}}||[[Category:Czech masculine nouns]]}}|f= {{f}}{{#ifeq:{{NAMESPACE}}||[[Category:Czech feminine nouns]]}}|n= {{n}}{{#ifeq:{{NAMESPACE}}||[[Category:Czech neuter nouns]]}}|{{#ifeq:{{NAMESPACE}}||[[Category:Czech nouns lacking gender]]}}}}{{#ifeq:{{NAMESPACE}}||{{#if:{{{sort|}}}|[[Category:Czech nouns|{{{sort}}}]]|[[Category:Czech nouns]]}}}}<noinclude>{{documentation}}</noinclude> |
|||
-->{{#switch:{{{g}}}<!-- |
|||
-->|m={{m}}{{#if:{{NAMESPACE}}||[[Category:Czech masculine nouns]]}}<!-- |
|||
-->|f={{f}}{{#if:{{NAMESPACE}}||[[Category:Czech feminine nouns]]}}<!-- |
|||
-->|n={{n}}{{#if:{{NAMESPACE}}||[[Category:Czech neuter nouns]]}}<!-- |
|||
-->|m-p={{m-p}}{{#if:{{NAMESPACE}}||[[Category:Czech masculine nouns]]}}<!-- |
|||
-->|f-p={{f-p}}{{#if:{{NAMESPACE}}||[[Category:Czech feminine nouns]]}}<!-- |
|||
-->|n-p={{n-p}}{{#if:{{NAMESPACE}}||[[Category:Czech neuter nouns]]}}<!-- |
|||
-->|#default={{#if:{{NAMESPACE}}||[[Category:Czech nouns lacking gender]]}}<!-- |
|||
-->}}<!-- |
|||
-->{{#if:{{NAMESPACE}}||<!-- |
|||
-->{{#if:{{{sort|}}}<!-- |
|||
-->|<!-- |
|||
-->[[Category:Czech nouns|{{{sort}}}]]<!-- |
|||
-->|<!-- |
|||
-->[[Category:Czech nouns]]<!-- |
|||
-->}}<!-- |
|||
-->}}<!-- |
|||
-->{{#if:{{{sg|}}}|[[Category:Headword-line template with deprecated head parameter]]}}<!-- |
|||
--><noinclude>{{documentation}}</noinclude> |
Revision as of 11:39, 7 May 2013
- The following documentation is located at Template:cs-noun/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
Parameters
|g=
/|1=
,|g2=
, ...- Specify the gender(s) of the noun.
|1=
is an alias of|g=
; both function the same. Allowed values arem
(masculine),m-in
(masculine inanimate),m-an
(masculine animate),m-p
(masculine plural),f
(feminine),f-p
(feminine plural),n
(neuter),n-p
(neuter plural). Specifying a gender will categorize the noun into one of Category:Czech masculine nouns, Category:Czech feminine nouns or Category:Czech neuter nouns. |head=
,|head2=
, ...- Explicitly specify the head(s) of the noun. Normally at most one head needs to be specified, and only for multi-word nouns, where links to the component words can be given.
|f=
,|f2=
, ...- Feminine equivalent(s) of words with masculine referent (typically for words referring to people).
|m=
,|m2=
, ...- Masculine equivalent(s) of words with feminine referent (typically for words referring to people).
|indecl=1
- If specified, this is an indeclinable noun.
|sort=
- Specify the sort key. Rarely if ever needed.
|id=
- Specify the sense ID; see
{{link}}
.
Examples
{{cs-noun|m}}
(for a masculine noun){{cs-noun|m-in}}
(for a masculine inanimate noun){{cs-noun|f-p}}
(for a feminine plural-only noun){{cs-noun|f|head=[[černý|černá]] [[díra]]}}
(for černá díra){{cs-noun|m-an|f=ředitelka}}
(for ředitel)
See also
{{cs-proper noun}}