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|}}} |
− | |sectie= | + | |sectie=<h2>{{{Section|}}}</h2> |
− | <h2>{{{Section|}}}</h2 | + | |hoofdstuk={{#vardefine: Chapter |{{#var:Topic}}/{{Safe title|Title={{{Name chapter|}}} }} }}<!--- |
− | |||
− | |hoofdstuk= | ||
--->{{#set: | --->{{#set: | ||
Line 41: | Line 39: | ||
formlink for chapters that do not exist | formlink for chapters that do not exist | ||
− | ----> | + | ---->{{#if:{{#var:Introductory text}}|<br>}}<!-- |
− | {{#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|}}} }} | ---->{{#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 51: | Line 48: | ||
{{Show paragraphs at chapter | {{Show paragraphs at chapter | ||
|Chapter={{#var:Chapter}} | |Chapter={{#var:Chapter}} | ||
− | }} | + | }}}} |
− | + | }}</includeonly> | |
− | </includeonly> |
Revision as of 14:22, 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.