Difference between revisions of "Template:Chapter in topic"

From Venlo Samenwerkingswijzer
 
(59 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
|Topic={{#var:Topic}}
 
|Topic={{#var:Topic}}
 
|Ordernumber until now={{#var:Ordernumber}}
 
|Ordernumber until now={{#var:Ordernumber}}
 +
|Section=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{{#ifeq: {{#var:Content only|No}} |Yes
 
 
| {{#vardefine: Chapter |{{#var:Topic}}/{{Safe title|Title={{{Name chapter|}}} }} }}<!---
 
  
--->{{#set:
 
|Chapter={{#var:Chapter}}
 
}}<!----
 
  
--->{{#vardefine: Ordernumber|{{#expr: {{#var:Ordernumber}} + 1}} }}<!---
+
</noinclude><includeonly>{{#switch: {{{SELECT|}}}
 
+
|sectie=<h1 style="font-weight:bold;">{{{Section|}}}</h1>{{#vardefine:Section|{{{Section|}}} }}
---><h2 class="ow-hoofdstuk-kop">{{Chapter level|Chapter level={{{Chapter level|}}} }} {{#formredlink:form=Chapter|link text={{#var:Ordernumber}}. {{{Name chapter|}}}|existing page link text={{#var:Ordernumber}}. {{#show: {{#var:Chapter}} |?Display title of}} |link type=link|Chapter[Title]={{{Name chapter|}}}|target={{#var:Chapter}} }} <!---
+
|hoofdstuk={{#vardefine: Chapter |{{#var:Topic}}/{{Safe title|Title={{{Name chapter|}}} }} }}{{#set: Chapter={{#var:Chapter}} }}{{#vardefine: Ordernumber|{{#expr: {{#var:Ordernumber}} + 1}} }}{{#subobject:  
 
 
--->{{#subobject:  
 
 
|Item ordened in={{PAGENAME}}
 
|Item ordened in={{PAGENAME}}
 +
|Name chapter={{{Name chapter|}}}
 
|Ordernumber={{#var:Ordernumber}}
 
|Ordernumber={{#var:Ordernumber}}
 
|Item={{#var:Chapter}}
 
|Item={{#var:Chapter}}
 
|Chapter level={{{Chapter level|}}}
 
|Chapter level={{{Chapter level|}}}
}}</h2><!---
+
|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}} }}}}<!---
  
--->{{#vardefineecho:Introductory text|{{#show: {{#var:Chapter}} | ?Introductory text }} }}<!----
+
--->{{#ifingroup:sysop|{{#ifeq:{{#var:EXISTS}}|no|{{#formlink:form=Chapter
 
+
|link text=<h1>{{{Name chapter|}}}</h1>
formlink for chapters that do not exist
+
:<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}} }} }} }}
---->
+
}}
{{#if:{{#var:Introductory text}}|<br>}}<!--
 
    --->
 
<strong style="margin-left:10px;">{{#ifeq:{{#ask:[[{{#var:Chapter}}]]|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>

Latest revision as of 12: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.