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.
+
* <code>''link''</code> - if given, links will be printed. Ignored if there is no such page in the encyclopedia.
  
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
Line 17: Line 17:
 
     --><!-- check if the page exists
 
     --><!-- check if the page exists
 
     -->{{#if: {{IfObjectExists|object=varTerm|}}<!--
 
     -->{{#if: {{IfObjectExists|object=varTerm|}}<!--
     -->|{{#show: varTerm|?Plural Capitalized|link=none}}<!--
+
     -->|<!--
 +
      -->{{#if: {{{2|}}}<!--
 +
      -->|[[varTerm|{{#show: varTerm|?Plural Capitalized|link=none}}]]<!--
 +
      -->|{{#show: varTerm|?Plural Capitalized|link=none}}<!--
 +
      -->}}<!-- if link
 +
      --><!--
 
     -->|{{ucfirst: {{Plural|varTerm}}}}<!--
 
     -->|{{ucfirst: {{Plural|varTerm}}}}<!--
 
     -->}}<!-- if exists  
 
     -->}}<!-- if exists  

Revision as of 15:19, 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. Ignored if there is no such page in the encyclopedia.