Difference between revisions of "Template:PrintTermPluralCapitalized"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
'''Parameters:''' | '''Parameters:''' | ||
* <code>''string''</code> - the term. | * <code>''string''</code> - the term. | ||
+ | * <code>''link''</code> - if given, links will be printed. | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
-->{{#if: {{{1|}}}<!-- | -->{{#if: {{{1|}}}<!-- | ||
-->|<!-- | -->|<!-- | ||
− | --><!-- check if the page exists | + | --><!-- convert to an array in case there are multiple values |
− | + | -->{{#arraydefine: arrayTerms|{{{1|}}}|,}}<!-- | |
− | + | -->{{#arrayprint: arrayTerms||varTerm<!-- | |
− | + | -->|<!-- | |
− | -->}}<!-- | + | --><!-- check if the page exists |
+ | -->{{#if: {{IfObjectExists|object={{#var: varTerm}}|}}<!-- | ||
+ | -->|{{#show: {{#var: varTerm}}|?Plural Capitalized|link=none}}<!-- | ||
+ | -->|{{ucfirst: {{Plural|{{#var: varTerm}}}}}}<!-- | ||
+ | -->}}<!-- if exists | ||
+ | --><!-- | ||
+ | -->|print=pretty<!-- | ||
+ | -->}}<!-- arrayprint | ||
+ | --><!-- | ||
+ | --><!-- | ||
+ | --><!-- | ||
+ | --><!-- | ||
--><!-- | --><!-- | ||
-->|<!-- nothing to return | -->|<!-- nothing to return | ||
-->}}<!-- if | -->}}<!-- if | ||
--></includeonly> | --></includeonly> |
Revision as of 15:08, 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.