Difference between revisions of "Form:Definition"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 7: Line 7:
 
{{{for template|Theory}}}
 
{{{for template|Theory}}}
 
<!-- get the topic name from the URL
 
<!-- get the topic name from the URL
-->{{#vardefine: varTopic|{{#urldecode:{{#urlget:Theory[Topic]|}}}}|}}<!--
+
-->{{#vardefine: varTopic|{{#urldecode:{{#urlget:Topic|}}}}|}}<!--
 
-->{{#if: {{IfObjectExists|category=Topic|object={{#var: varTopic}}|}}<!--
 
-->{{#if: {{IfObjectExists|category=Topic|object={{#var: varTopic}}|}}<!--
  -->|{{#vardefine: varTopicGiven|yes}}<!-- topic is given: set the flag
+
  -->|<!-- topic is given: set the flag
  -->|{{#vardefine: varTopicGiven|no}}<!-- topic is not given: set the flag
+
  -->|{{#vardefine: varTopic|{{#show:{{FULLPAGENAME}}|?Topic|link=none}}|}}<!-- topic is not given: get the current value
 
-->}}<!--
 
-->}}<!--
 
--><!--
 
--><!--
Line 21: Line 21:
 
{| class="formtable"
 
{| class="formtable"
 
!width="30%"| 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>
 
!width="30%"| 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>
|width="70%"| {{{field|Theory Type|hidden|default=Definition|}}}<!--
+
|width="70%"| {{#var:varTopic|}} {{{field|Topic|hidden|default={{#var:varTopic|}}|}}} {{{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}}} <!--
 
-->}}
 
 
|-
 
|-
 
! Author(s): <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Who are the authors of this definition? If the author is not in the list, please first add the author in Author category.</p>
 
! Author(s): <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Who are the authors of this definition? If the author is not in the list, please first add the author in Author category.</p>

Revision as of 22:37, 22 December 2022

This is the "Definition" form. It is used to create new entries for individual definitions of terms.