Difference between revisions of "Template:Chapter in topic"

From Venlo Samenwerkingswijzer
 
(23 intermediate revisions by the same user not shown)
Line 15: Line 15:
  
 
</noinclude><includeonly>{{#switch: {{{SELECT|}}}
 
</noinclude><includeonly>{{#switch: {{{SELECT|}}}
|sectie=<h2>{{{Section|}}}</h2>{{#vardefine:Section|{{{Section|}}} }}
+
|sectie=<h1 style="font-weight:bold;">{{{Section|}}}</h1>{{#vardefine:Section|{{{Section|}}} }}
 
|hoofdstuk={{#vardefine: Chapter |{{#var:Topic}}/{{Safe title|Title={{{Name chapter|}}} }} }}{{#set: Chapter={{#var:Chapter}} }}{{#vardefine: Ordernumber|{{#expr: {{#var:Ordernumber}} + 1}} }}{{#subobject:  
 
|hoofdstuk={{#vardefine: Chapter |{{#var:Topic}}/{{Safe title|Title={{{Name chapter|}}} }} }}{{#set: Chapter={{#var:Chapter}} }}{{#vardefine: Ordernumber|{{#expr: {{#var:Ordernumber}} + 1}} }}{{#subobject:  
 
|Item ordened in={{PAGENAME}}
 
|Item ordened in={{PAGENAME}}
Line 23: 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}} }}
 +
}}<!---
 +
--->{{#vardefine: EXISTS| {{#ask: [[{{#var:Chapter}}]] [[Modification date::+]] |link=none|default=no}} }}<!---
 +
--->{{#ifeq:{{#var:EXISTS}}|no||{{#ask: [[{{#var:Chapter}}]] |format=embedded |embedonly={{#ifingroup:sysop|no|yes}} }}}}<!---
 +
 +
--->{{#ifingroup:sysop|{{#ifeq:{{#var:EXISTS}}|no|{{#formlink:form=Chapter
 +
|link text=<h1>{{{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}} }} }} }}
 
}}
 
}}
<h3 class="ow-hoofdstuk-kop">{{#formredlink:form=Chapter|link text={{{Name chapter|}}}
+
</includeonly>
:<div style="font-size:small">{{Fa|pencil-square-o fa-fw}} Maak dit hoofdstuk aan</div>|existing page link text={{#show: {{#var:Chapter}} |?Display title of}}
 
:<div style="font-size:small">[[{{#var:Chapter}} |{{Fa|eye fa-fw}} Lees meer...]]</div>|link type=link|Chapter[Title]={{{Name chapter|}}}|target={{#var:Chapter}} }}</h3>
 
{{#show: {{#var:Chapter}} | ?Introductory text }}
 
}}</includeonly>
 

Latest revision as of 13:47, 21 September 2017

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.