Difference between revisions of "Template:PrintTermPluralCapitalized"

From Encyclopedia of Scientonomy
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
  -->{{#if: {{IfObjectExists|object={{{1}}}|}}<!--
+
  -->{{#arraydefine: arrayTerms|{{{1|}}}|,}}<!--
  -->|{{#show: {{{1}}}|?Plural Capitalized|link=none}}<!--
+
  -->{{#arrayprint: arrayTerms||varTerm<!--
  -->|{{ucfirst: {{Plural|{{{1}}}}}}}<!--
+
  -->|<!--
   -->}}<!-- if exists
+
    --><!-- 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.