Difference between revisions of "Template:PrintTermPluralCapitalized"

From Encyclopedia of Scientonomy
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}}<!--  
  -->Size: {{#arraysize:arrayTerms}}<!--
 
 
 
   -->{{#arrayprint: arrayTerms||varTerm<!--
 
   -->{{#arrayprint: arrayTerms||varTerm<!--
 
   -->|<!--  
 
   -->|<!--  
 
     --><!-- check if the page exists
 
     --><!-- check if the page exists
     -->{{#if: {{IfObjectExists|object={{#var: varTerm}}|}}<!--
+
     -->{{#if: {{IfObjectExists|object=varTerm|}}<!--
     -->|Exists: {{#var: varTerm}} {{#show: {{#var: varTerm}}|?Plural Capitalized|link=none}}<!--
+
     -->|{{#show: varTerm|?Plural Capitalized|link=none}}<!--
     -->|Doesn't: {{#var: varTerm}} {{ucfirst: {{Plural|{{#var: varTerm}}}}}}<!--
+
     -->|{{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.