Difference between revisions of "Template:PrintTermPluralCapitalized"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
--><!-- convert to an array in case there are multiple values | --><!-- convert to an array in case there are multiple values | ||
-->{{#arraydefine: arrayTerms|{{{1|}}}|,|unique}}<!-- | -->{{#arraydefine: arrayTerms|{{{1|}}}|,|unique}}<!-- | ||
− | |||
− | |||
-->{{#arrayprint: arrayTerms||varTerm<!-- | -->{{#arrayprint: arrayTerms||varTerm<!-- | ||
-->|<!-- | -->|<!-- | ||
--><!-- check if the page exists | --><!-- check if the page exists | ||
− | -->{{#if: {{IfObjectExists|object= | + | -->{{#if: {{IfObjectExists|object=varTerm|}}<!-- |
− | -->| | + | -->|{{#show: varTerm|?Plural Capitalized|link=none}}<!-- |
− | -->| | + | -->|{{ucfirst: {{Plural|varTerm}}}}<!-- |
-->}}<!-- if exists | -->}}<!-- if exists | ||
--><!-- | --><!-- |
Revision as of 15:16, 10 January 2023
This template is used to print a plural capitalized from of the term. If the respective page doesn't exist, the basic {{ucfirst: {{Plural|string}}}}
is used.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
string
- the term.link
- if given, links will be printed.