Difference between revisions of "Template:Chapter in topic"

From Venlo Samenwerkingswijzer
Line 16: Line 16:
 
</noinclude><includeonly>{{#ifeq: {{#var:Content only|No}} |Yes
 
</noinclude><includeonly>{{#ifeq: {{#var:Content only|No}} |Yes
 
|   
 
|   
| {{#switch: {{{SELECT|}}}
+
| <div class="row">{{#switch: {{{SELECT|}}}
|sectie=<h2>{{{Section|}}}</h2>
+
|sectie=<div class="col-md-12"><h2>{{{Section|}}}</h2></div>
|hoofdstuk={{#vardefine: Chapter |{{#var:Topic}}/{{Safe title|Title={{{Name chapter|}}} }} }}<!---
+
|hoofdstuk=<div class="col-md-8">{{#vardefine: Chapter |{{#var:Topic}}/{{Safe title|Title={{{Name chapter|}}} }} }}<!---
  
 
--->{{#set:  
 
--->{{#set:  
Line 41: Line 41:
 
---->
 
---->
 
{{#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|<!---
<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 49: Line 48:
 
{{Show paragraphs at chapter
 
{{Show paragraphs at chapter
 
|Chapter={{#var:Chapter}}
 
|Chapter={{#var:Chapter}}
}} }}}}
+
}}</div> }}<div/>}}
 
</includeonly>
 
</includeonly>

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