Difference between revisions of "Form:Definition"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div> | <div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div> | ||
{{{for template|Theory}}} | {{{for template|Theory}}} | ||
+ | <!-- get the topic name from the URL | ||
+ | -->{{#vardefine: varTopic|{{#urldecode:{{#urlget:Theory[Topic]|}}}}|}}<!-- | ||
+ | -->{{#if: {{IfObjectExists|category=Topic|object={{#var: varTopic}}|}}<!-- | ||
+ | -->|{{#vardefine: varTopicGiven|yes}}<!-- topic is given: set the flag | ||
+ | -->|{{#vardefine: varTopicGiven|no}}<!-- topic is not given: set the flag | ||
+ | -->}}<!-- | ||
+ | --> | ||
{| class="formtable" | {| class="formtable" | ||
! Term Defined: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">What term is this a definition of? If the term is not in the list, please first add it in the Definitional Topic category.</p> | ! Term Defined: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">What term is this a definition of? If the term is not in the list, please first add it in the Definitional Topic category.</p> | ||
− | | {{{field|Topic|input type=combobox|existing values only|values from category=Definitional Topic|mandatory}}} | + | | {{{field|Theory Type|hidden|default=Definition|}}}<!-- |
+ | -->{{#ifeq: {{#var: varTopicGiven}}|yes<!-- | ||
+ | -->|{{#var:varTopic|}}<!-- | ||
+ | -->{{{field|Topic|hidden|default={{#var:varTopic|}}|}}}<!-- | ||
+ | -->|{{{field|Topic|input type=combobox|existing values only|values from category=Definitional Topic|mandatory}}} <!-- | ||
+ | -->}} | ||
|- | |- | ||
! Definition Text: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Give the exact definition of the term here. IMPORTANT: Please avoid any wiki markup here, such as references, or wiki links.</p> | ! Definition Text: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Give the exact definition of the term here. IMPORTANT: Please avoid any wiki markup here, such as references, or wiki links.</p> |
Revision as of 05:17, 17 February 2017
This is the "Definition" form. It is used to create new entries for individual definitions of terms.