Open main menu

Changes

no edit summary
<noinclude>
Use this template to convert a text formula that includes a <subject>, <predicate>, and <object> (in the sense of RDF) and their variations into a proper text. This is useful when formulating page titles or formulation texts for questions or answers. If no formula is given, the object will be returned.
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely returns a value.
* <code><nowiki>|object=</nowiki></code> - the object of the formulation. Can be a term or any other value.
* <code><nowiki>|predicate=</nowiki></code> - the predicate of the formulation. Optional. Can be a term or any other value.
* <code><nowiki>|link=</nowiki></code> - if not empty, links will be added to values (if the respective pages exist).
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"
Note that with <object> it should be <an object> or <an Object>.  '''IMPORTANT:''' This parameter is ignored if the plural form is requested.There is no <an objects> or <an Objects>. 
If the term is '''not registered''' in the encyclopedia, then the following will apply:
* For '''lowercase''', a simple <code><nowiki>{{lc:{{{subject}}}</nowiki>''string''<nowiki>}}</nowiki></code> will be applied.* For '''plural''', a simple <code><nowiki>{{Plural|</nowiki>''string''<nowiki>}}</nowiki></code> is used to add an "s" will be added at to the end of the term.* For singulars '''with articles''', <code><nowiki>{{AnAWord|</nowiki>''string''<nowiki>}}</nowiki></code> is used to add an "a simple "a /"an " will be added in front of to the termword.
-->|<!--
--><!-- replace all instances of Singular lowercase
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<subject>|{{PrintTermSingularLowercase|{{{subject|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!-- replace all instances of Plural lowercase
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<subjects>|{{PrintTermPluralLowercase|{{{subject|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!-- replace all instances of Singular lowercase preceded by an article
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<a subject>|{{PrintTermAnASingularLowercase|{{{subject|}}}|{{#if: {{{link|}}}|link|}} }} }} }}<!--
--><!-- replace all instances of Singular Capitalized
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<Subject>|{{PrintTermSingularCapitalized|{{{subject|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!-- replace all instances of Plural Capitalized
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<Subjects>|{{PrintTermPluralCapitalized|{{{subject|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!-- replace all instances of Singular Capitalized preceded by an article
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<a Subject>|{{PrintTermAnASingularCapitalized|{{{subject|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!--
-->}}<!--
-->|<!--
--><!-- replace all instances of Singular lowercase
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<object>|{{PrintTermSingularLowercase|{{{object|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!-- replace all instances of Plural lowercase
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<objects>|{{PrintTermPluralLowercase|{{{object|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!-- replace all instances of Singular lowercase preceded by an article
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<an object>|{{PrintTermAnASingularLowercase|{{{object|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!-- replace all instances of Singular Capitalized
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<Object>|{{PrintTermSingularCapitalized|{{{object|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!-- replace all instances of Plural Capitalized
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<Objects>|{{PrintTermPluralCapitalized|{{{object|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!-- replace all instances of Singular Capitalized preceded by an article
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<an Object>|{{PrintTermAnASingularCapitalized|{{{object|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!--
-->}}<!--
-->|<!--
--><!-- replace all instances of Singular lowercase
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<predicate>|{{PrintTermSingularLowercase|{{{predicate|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!-- replace all instances of Plural lowercase
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<predicates>|{{PrintTermPluralLowercase|{{{predicate|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!-- replace all instances of Singular lowercase preceded by an article
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<a predicate>|{{PrintTermAnASingularLowercase|{{{predicate|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!-- replace all instances of Singular Capitalized
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<Predicate>|{{PrintTermSingularCapitalized|{{{predicate|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!-- replace all instances of Plural Capitalized
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<Predicates>|{{PrintTermPluralCapitalized|{{{predicate|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!-- replace all instances of Singular Capitalized preceded by an article
-->{{#vardefine: varText|{{#replace: {{#var: varText}}|<a Predicate>|{{PrintTermAnASingularCapitalized|{{{predicate|}}}|{{#if: {{{link|}}}|link|}}}} }} }}<!--
--><!--
-->}}<!--
--><!-- return the text
-->{{#var: varText}}<!--
--><!--
-->|<!--
--><!-- no formula is given: return the object
-->{{{object|}}}<!--
--><!--
-->}}<!-- if
--></includeonly>