Difference between revisions of "Template:Chapter in topic"

From Venlo Samenwerkingswijzer
Line 17: Line 17:
 
|   
 
|   
 
|{{#switch: {{{SELECT|}}}
 
|{{#switch: {{{SELECT|}}}
|sectie=<h2>{{{Section|}}}</h2>{{#vardefine:Section|{{{Section|{{#vardefine:Section|}} }}} }}
+
|sectie=<h2>{{{Section|}}}</h2>{{#vardefine:Section|{{{Section|}}} }}
{{#ask:[[Item ordened in::{{FULLPAGENAME}}]] [[Belongs to section::{{{Section|}}}]]
 
|?Name chapter=
 
|mainlabel=-
 
|headers=plain
 
|link=none
 
|format=ul
 
|default=niks gevonden
 
}}<!--
 
 
 
## Chapter ##
 
 
 
-->
 
 
|hoofdstuk={{#vardefine: Chapter |{{#var:Topic}}/{{Safe title|Title={{{Name chapter|}}} }} }}<!---
 
|hoofdstuk={{#vardefine: Chapter |{{#var:Topic}}/{{Safe title|Title={{{Name chapter|}}} }} }}<!---
  
Line 46: Line 34:
 
|Item={{#var:Chapter}}
 
|Item={{#var:Chapter}}
 
|Chapter level={{{Chapter level|}}}
 
|Chapter level={{{Chapter level|}}}
|Belongs to section={{#var:Section}}
+
|Belongs to section={{#if:{{#var:Section}}|{{#var:Section}}|{{#var:Topic}} }}
 
}}</h3><!---
 
}}</h3><!---
  

Revision as of 16:30, 3 November 2016

This is the "Chapter in topic" template. It should be called in the following format:

{{Chapter in topic
|Name chapter=
|Chapter level=
|Topic={{#var:Topic}}
|Ordernumber until now={{#var:Ordernumber}}
|Section=
}}

Edit the page to see the template text.