Difference between revisions of "Template:DecodeTextFormula"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 15: Line 15:
  
 
'''lowercase''' or '''Capitalize Each Word''': To tell the software that it should be lowercase, the variable name should be all lowercase, e.g.:
 
'''lowercase''' or '''Capitalize Each Word''': To tell the software that it should be lowercase, the variable name should be all lowercase, e.g.:
* <epistemic element> will produce “theory”, “method”, etc.  
+
* <subject> will produce “theory”, “method”, "epistemic elements", etc.  
 
If at least one letter is capitalized, then the software will go with the Capital Each Word option, e.g.:
 
If at least one letter is capitalized, then the software will go with the Capital Each Word option, e.g.:
* <Epistemic element>, <Epistemic Element>, or <ePistemic eLement> etc. will produce “Theory”, “Method”, etc.  
+
* <Subject>, <sUbject>, or <subjecT> etc. will produce “Theory”, “Method”, "Epistemic Element" etc.  
  
'''singular''' or '''plural''': The usual way of using the variable will tell the software that the singular form is required. To indicate that the plural form is required, an “s” should be added at the end of the variable after the closing “>”, e.g.:
+
'''singular''' or '''plural''': The usual way of using the variable will tell the software that the singular form is required, e.g.:
* <epistemic element>s will produce “theories”, while <Epistemic Element>s will produce “Theories”.
+
* <subject> will produce “theory”, “method”, "epistemic elements", while <Subject> will produce “Theory”, “Method”, "Epistemic Element" all in singular form.
 +
To indicate that the plural form is required, an “s” should be added at the end of the variable before the closing “>”, e.g.:
 +
* <subjects> will produce “theories”, while <Subjects> will produce “Theories”.
  
If singular: '''with''' or '''without an article''': If an indefinite article is to be added in front of the variable, this can be achieved by adding an “a” in front of the opening “<” of the variable, e.g.:
+
If the term is singular, it can be printed '''with''' or '''without an article''': If an indefinite article is to be added in front of the variable, this can be achieved by adding an “a ” after the opening “<” of the variable, e.g.:
* a<epistemic element> will produce “an epistemic element”, “a theory”, etc.
+
* <a subject> will produce “an epistemic element”, “a theory”, "a method" while <a Subject> will produce “an Epistemic Element”, “a Theory”, "a Method"
 
This parameter is ignored if the plural form is requested.
 
This parameter is ignored if the plural form is requested.
  
  
 
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
 
-->{{#if: {{{term|}}}<!--
 
-->{{#if: {{{term|}}}<!--

Revision as of 15:08, 9 January 2023

Use this template to convert a text formula that includes a <subject>, <predicate>, and <object> (in the sense of RDF) into a proper text. This is useful when formulating page titles or formulation texts for questions or answers.

NOTE: As any "printing" template, it doesn't store any values anywhere, but merely returns a value.

Parameters:

  • |formula= - the term.
  • |subject= - the subject of the formulation. Must be a term (definitional topic) registered in the encyclopedia.
  • |object= - the object of the formulation. Can be a term or any other value.
  • |predicate= - the predicate of the formulation. Optional. Can be a term or any other value.


Additional Formatting: If any of the three terms is a Definitional Topic page, then additional formatting is supported for that term:

lowercase or Capitalize Each Word: To tell the software that it should be lowercase, the variable name should be all lowercase, e.g.:

  • <subject> will produce “theory”, “method”, "epistemic elements", etc.

If at least one letter is capitalized, then the software will go with the Capital Each Word option, e.g.:

  • <Subject>, <sUbject>, or <subjecT> etc. will produce “Theory”, “Method”, "Epistemic Element" etc.

singular or plural: The usual way of using the variable will tell the software that the singular form is required, e.g.:

  • <subject> will produce “theory”, “method”, "epistemic elements", while <Subject> will produce “Theory”, “Method”, "Epistemic Element" all in singular form.

To indicate that the plural form is required, an “s” should be added at the end of the variable before the closing “>”, e.g.:

  • <subjects> will produce “theories”, while <Subjects> will produce “Theories”.

If the term is singular, it can be printed with or without an article: If an indefinite article is to be added in front of the variable, this can be achieved by adding an “a ” after the opening “<” of the variable, e.g.:

  • <a subject> will produce “an epistemic element”, “a theory”, "a method" while <a Subject> will produce “an Epistemic Element”, “a Theory”, "a Method"

This parameter is ignored if the plural form is requested.