Difference between revisions of "Template:Chapter in topic"

From Venlo Samenwerkingswijzer
Line 16: Line 16:
 
</noinclude><includeonly>{{#switch: {{{SELECT|}}}
 
</noinclude><includeonly>{{#switch: {{{SELECT|}}}
 
|sectie=<h2>{{{Section|}}}</h2>{{#vardefine:Section|{{{Section|}}} }}
 
|sectie=<h2>{{{Section|}}}</h2>{{#vardefine:Section|{{{Section|}}} }}
|hoofdstuk={{#vardefineecho: Chapter |{{#var:Topic}}/{{Safe title|Title={{{Name chapter|}}} }} }} }}<!---
+
|hoofdstuk={{#vardefineecho: Chapter |{{#var:Topic}}/{{Safe title|Title={{{Name chapter|}}} }} }}{{#set: Chapter={{#var:Chapter}} }}{{#vardefine: Ordernumber|{{#expr: {{#var:Ordernumber}} + 1}} }}{{#subobject:  
 
 
--->{{#set:  
 
|Chapter={{#var:Chapter}}  
 
}}<!----
 
 
 
--->{{#vardefine: Ordernumber|{{#expr: {{#var:Ordernumber}} + 1}} }}<!---
 
 
 
---><h3 class="ow-hoofdstuk-kop">{{#formredlink:form=Chapter|link text={{{Name chapter|}}}|existing page link text={{#show: {{#var:Chapter}} |?Display title of}} |link type=link|Chapter[Title]={{{Name chapter|}}}|target={{#var:Chapter}} }} <!---
 
 
 
--->{{#subobject:  
 
 
|Item ordened in={{PAGENAME}}
 
|Item ordened in={{PAGENAME}}
 
|Name chapter={{{Name chapter|}}}
 
|Name chapter={{{Name chapter|}}}
Line 33: Line 23:
 
|Chapter level={{{Chapter level|}}}
 
|Chapter level={{{Chapter level|}}}
 
|Belongs to section={{#if:{{#var:Section}}|{{#var:Section}}|{{#var:Topic}} }}
 
|Belongs to section={{#if:{{#var:Section}}|{{#var:Section}}|{{#var:Topic}} }}
}}</h3><!---
+
}}
 
+
<h3 class="ow-hoofdstuk-kop">{{#formredlink:form=Chapter|link text={{{Name chapter|}}}|existing page link text={{#show: {{#var:Chapter}} |?Display title of}} |link type=link|Chapter[Title]={{{Name chapter|}}}|target={{#var:Chapter}} }}</h3>
--->{{#vardefineecho:Introductory text|{{#show: {{#var:Chapter}} | ?Introductory text }} }}<!----
+
{{#show: {{#var:Chapter}} | ?Introductory text }}
 
 
formlink for chapters that do not exist
 
 
 
---->{{#if:{{#var:Introductory text}}|<br>}}<!--
 
    --->
 
<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|}}} }}
 
|
 
[[{{#var:Chapter}} |{{Fa|eye fa-fw}} Lees meer...]]
 
}}</strong><!----
 
'''{{#formredlink:form=Chapter|link text=Continue reading |existing page link text=Lees meer... |link type=link|Chapter[Title]={{{Name chapter|}}}|target={{#var:Chapter}} }}'''---->
 
{{Show paragraphs at chapter
 
|Chapter={{#var:Chapter}}
 
}}}}
 
 
}}</includeonly>
 
}}</includeonly>

Revision as of 16:23, 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.