Difference between revisions of "Template:Scenario Task"

Line 21: Line 21:
 
}}
 
}}
  
{{ #vardefine: children|{{ #ask: [[Scenario Task Parent::{{PAGENAME}}]]}} }}
+
{{ #vardefine: subtasks|{{ #ask: [[Scenario Task Parent::{{PAGENAME}}]]}} }}
  
{{ #if: {{ #var: children }}|
+
{{ #if: {{ #var: subtasks }}|
 
|[[Category:Scenario Task End Point]]
 
|[[Category:Scenario Task End Point]]
 
}}
 
}}
Line 29: Line 29:
  
 
{{ #if: {{{Scenario Task Parent|}}}|
 
{{ #if: {{{Scenario Task Parent|}}}|
[[{{{Scenario Task Parent}}}]]  
+
Parent: [[{{{Scenario Task Parent}}}]]  
 
}}
 
}}
  
Children: {{#var: children }} {{#forminput:form=Scenario Task|button text=Add Sub-task|query string=Scenario Task[Scenario Task Parent]={{PAGENAME}} }}
+
Sub Tasks: {{#var: subtasks }} {{#forminput:form=Scenario Task|button text=Add Sub-task|query string=Scenario Task[Scenario Task Parent]={{PAGENAME}} }}
  
 
[[Category:Scenario Task]]
 
[[Category:Scenario Task]]

Revision as of 23:02, 24 August 2015