Difference between revisions of "Template:FormatExistenceTopicTitle"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
'''Parameters:''' | '''Parameters:''' | ||
* <code><nowiki>|term=</nowiki></code> - the term. | * <code><nowiki>|term=</nowiki></code> - the term. | ||
− | * <code><nowiki>| | + | * <code><nowiki>|link=</nowiki></code> - if not empty, a link to the respective page or a formlink (if the page doesn't exist) will be added. |
* <code><nowiki>|displaytitle=</nowiki></code> - if empty, the same as the output. | * <code><nowiki>|displaytitle=</nowiki></code> - if empty, the same as the output. | ||
Line 16: | Line 16: | ||
--><!-- | --><!-- | ||
-->{{#ifexist:{{#var: varTitle}}<!-- | -->{{#ifexist:{{#var: varTitle}}<!-- | ||
− | -->|[[{{#var: varTitle}}|{{#var: varDisplay}}]]<!-- | + | -->|{{#if: {{{link|}}}|[[{{#var: varTitle}}|{{#var: varDisplay}}]]|{{#var: varTitle}}|}}<!-- |
-->|<!-- doesn't exist, check if the formlink is expected | -->|<!-- doesn't exist, check if the formlink is expected | ||
− | -->{{#if: {{{ | + | -->{{#if: {{{link|}}}<!-- |
-->|<!-- return the formlink | -->|<!-- return the formlink | ||
-->{{#formlink:form=Ontological Topic|link text={{#var: varDisplay}}|target={{#var: varTitle}}|query string=Term={{{term|}}}&QuestionType=Existence}}<!-- | -->{{#formlink:form=Ontological Topic|link text={{#var: varDisplay}}|target={{#var: varTitle}}|query string=Term={{{term|}}}&QuestionType=Existence}}<!-- |
Revision as of 23:13, 26 December 2022
Use this template to format the title of the topic page for the question concerning the existence 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.