Difference between revisions of "Template:FormatSubtypesTopicTitle"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
-->|<!-- | -->|<!-- | ||
-->{{#vardefine: varTitle|Subtypes of {{{term|}}}|}}<!-- | -->{{#vardefine: varTitle|Subtypes of {{{term|}}}|}}<!-- | ||
− | -->{{#vardefine: varDisplay|{{#if: {{{displaytitle}}}|{{{displaytitle}}}|{{#var: varTitle}}|}}|}}<!-- | + | -->{{#vardefine: varDisplay|{{#if: {{{displaytitle|}}}|{{{displaytitle|}}}|{{#var: varTitle}}|}}|}}<!-- |
--><!-- | --><!-- | ||
-->{{#ifexist:{{#var: varTitle}}<!-- | -->{{#ifexist:{{#var: varTitle}}<!-- | ||
Line 20: | Line 20: | ||
-->{{#if: {{{link|}}}<!-- | -->{{#if: {{{link|}}}<!-- | ||
-->|<!-- return the formlink | -->|<!-- return the formlink | ||
− | -->{{#formlink:form=Ontological Topic|link text={{#var: varDisplay}}|target={{#var: varTitle}}|query string=Term={{{term|}}}&QuestionType= | + | -->{{#formlink:form=Ontological Topic|link text={{#var: varDisplay}}|target={{#var: varTitle}}|query string=Term={{{term|}}}&QuestionType=Subtypes}}<!-- |
-->|<!-- form link is not needed; return the name only | -->|<!-- form link is not needed; return the name only | ||
-->{{#var: varTitle}}<!-- | -->{{#var: varTitle}}<!-- |
Latest revision as of 16:14, 27 December 2022
Use this template to format the title of the topic page for the question concerning the subtypes of a class.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely returns a value.
Parameters:
|term=
- the term.|link=
- if not empty, a link to the respective page or a formlink (if the page doesn't exist) will be added.|displaytitle=
- if empty, the same as the output.