Difference between revisions of "Template:Chapter in topic"

From Venlo Samenwerkingswijzer
Line 25: Line 25:
 
}}<!---
 
}}<!---
 
--->{{#ask: [[{{#var:Chapter}}]] |format=embedded }}<!---
 
--->{{#ask: [[{{#var:Chapter}}]] |format=embedded }}<!---
--->{{#formredlink:form=Chapter
+
 
|link text={{#ifingroup:admin|<h1 class="hoofdstuk-kop">{{{Name chapter|}}}</h1>
+
--->{{#vardefine: EXISTS| {{#ask:{{#var:Chapter}} [[Modification date::+]] |link=none|default=no}} }}<!---
:<div style="font-size:small">{{Fa|pencil-square-o fa-fw}} Maak dit hoofdstuk aan</div>}}
+
--->{{#ifingroup:admin|{{#ifeq:{{#var:EXISTS}}|no|{{#formlink:form=Chapter
|existing page link text=|link type=link|Chapter[Title]={{{Name chapter|}}}|target={{#var:Chapter}} }} }}</includeonly>
+
|link text=<h1 class="hoofdstuk-kop">{{{Name chapter|}}}</h1>
 +
:<div style="font-size:small">{{Fa|pencil-square-o fa-fw}} Maak dit hoofdstuk aan</div>
 +
|link type=link|Chapter[Title]={{{Name chapter|}}}|target={{#var:Chapter}} }} }} }}</includeonly>

Revision as of 13:04, 8 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.