Template:DecodeTextFormula

From Encyclopedia of Scientonomy
Revision as of 18:09, 8 January 2023 by Hakob Barseghyan (talk | contribs) (Created page with "<noinclude> Use this template to convert a text formula into a proper text. This is useful when formulating page titles or formulation texts for questions or answers. '''NOTE...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Use this template to convert a text formula 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.

Any number of pairs of the encoded parameter and its corresponding value:

  • |param=value - where param is the encoded parameter and value is what it should be replaced with. If the latter is a Definitional Topic page, then additional formatting is supported.

Additional Formatting:

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.

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.

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.:

  • <epistemic element>s will produce “theories”, while <Epistemic Element>s 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.:

  • a<epistemic element> will produce “an epistemic element”, “a theory”, etc.

This parameter is ignored if the plural form is requested.