Difference between revisions of "Template:Chapter in topic"

From Venlo Samenwerkingswijzer
Line 18: Line 18:
 
| <div class="row">{{#switch: {{{SELECT|}}}
 
| <div class="row">{{#switch: {{{SELECT|}}}
 
|sectie=<div class="col-md-12"><h2>{{{Section|}}}</h2></div>
 
|sectie=<div class="col-md-12"><h2>{{{Section|}}}</h2></div>
|hoofdstuk=<div class="col-md-8">{{#vardefine: Chapter |{{#var:Topic}}/{{Safe title|Title={{{Name chapter|}}} }} }}<!---
+
|hoofdstuk=<div class="col-md-4">{{#vardefine: Chapter |{{#var:Topic}}/{{Safe title|Title={{{Name chapter|}}} }} }}<!---
  
 
--->{{#set:  
 
--->{{#set:  
Line 40: Line 40:
  
 
---->
 
---->
 +
</div><div class="col-md-6"></div>
 
{{#if:{{#var:Introductory text}}|<br>}}<!--
 
{{#if:{{#var:Introductory text}}|<br>}}<!--
     ---></div><div class="col-md-4"><strong style="margin-left:10px;">{{#ifeq:{{#ask:[[{{#var:Chapter}}]] [[Topic::+]]|mainlabel=-|default=NO}}|NO|<!---
+
     --->
 +
<div class="col-md-2"><strong style="margin-left:10px;">{{#ifeq:{{#ask:[[{{#var:Chapter}}]] [[Topic::+]]|mainlabel=-|default=NO}}|NO|<!---
 
---->{{#formlink:form=Chapter |target={{#var:Chapter}} |link text={{Fa|pencil-square-o fa-fw}} Maak dit hoofdstuk aan |link type= |Chapter[Title]={{{Name chapter|}}} }}
 
---->{{#formlink:form=Chapter |target={{#var:Chapter}} |link text={{Fa|pencil-square-o fa-fw}} Maak dit hoofdstuk aan |link type= |Chapter[Title]={{{Name chapter|}}} }}
 
| [[{{#var:Chapter}} |{{Fa|eye fa-fw}} Lees meer...]]
 
| [[{{#var:Chapter}} |{{Fa|eye fa-fw}} Lees meer...]]
Line 48: Line 50:
 
{{Show paragraphs at chapter
 
{{Show paragraphs at chapter
 
|Chapter={{#var:Chapter}}
 
|Chapter={{#var:Chapter}}
}}</div> }}</div>}}
+
}}</div>
 +
}}</div>}}
 
</includeonly>
 
</includeonly>

Revision as of 15:14, 2 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.