Difference between revisions of "Template:Paragraph in chapter"

From Venlo Samenwerkingswijzer
(Created page with "<noinclude> This is the "Paragraph in chapter" template. It should be called in the following format: <pre> {{Paragraph in chapter |Name paragraph= |Chapter={{#var:Chapter}} |...")
 
Line 10: Line 10:
 
</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: Paragraph | {{#ifexist: {{#var:Chapter}}/{{Safe title|Title={{{Name paragraph|}}} }} | {{#var:Chapter}}/{{Safe title|Title={{{Name paragraph|}}} }} | {{#var:Chapter}}/{{{Name paragraph|}}} }} }}{{#set: Paragraph={{#var:Paragraph}} }}{{#vardefine: Ordernumber|{{#expr: {{#var:Ordernumber}} + 1}} }}<h2 class="ow-hoofdstuk-kop">{{#formredlink:form=Paragraph|link text={{#var:Ordernumber}}. {{{Name paragraph|}}}|existing page link text={{#var:Ordernumber}}. {{#show: {{#var:Paragraph}} |?Display title}} |link type=link|Paragraph[Title]={{{Name paragraph|}}}|target={{#var:Paragraph|}} }} {{#subobject: |Item ordened in={{PAGENAME}}|Ordernumber={{#var:Ordernumber}}|Item={{#var:Paragraph}} |Item title={{{Name paragraph|}}} }}</h2>}}
+
 
{{#vardefineecho:Introductory text|{{#show: {{#var:Paragraph}} | ?Introductory text }}}}{{#ifeq: {{#var:Content only|No}} | Yes|  |  
+
ow-hoofdstuk-kop
{{#if: {{#var: Introductory text}}|<br>}}'''{{#formredlink:form=Paragraph|link text=Continue reading|existing page link text=Continue reading |link type=link|Paragraph[Title]={{{Name paragraph|}}}|target={{#var:Paragraph|}} }}'''
+
 
 +
</noinclude><includeonly>{{#ifeq: {{#var:Content only|No}} |Yes  
 +
|
 +
|{{#vardefine: Paragraph | {{#ifexist: {{#var:Chapter}}/{{Safe title|Title={{{Name paragraph|}}} }} | {{#var:Chapter}}/{{Safe title|Title={{{Name paragraph|}}} }} | {{#var:Chapter}}/{{{Name paragraph|}}} }}
 +
}}<!---
 +
 
 +
set paragraph
 +
 
 +
---->{{#set:  
 +
|Paragraph={{#var:Paragraph}}
 +
}}<!----
 +
 
 +
vardefine automatic order numbering:
 +
 
 +
---->{{#vardefine: Ordernumber|{{#expr: {{#var:Ordernumber}} + 1}} }}<!---
 +
 
 +
----><h2 class="ow-hoofdstuk-kop">{{#formredlink:form=Paragraph|link text={{#var:Ordernumber}}. {{{Name paragraph|}}}|existing page link text={{#var:Ordernumber}}. {{#show: {{#var:Paragraph}} |?Display title}} |link type=link|Paragraph[Title]={{{Name paragraph|}}}|target={{#var:Paragraph|}} }} </h2><!---
 +
 
 +
subobject
 +
 
 +
--->{{#subobject:  
 +
|Item ordened in={{PAGENAME}}
 +
|Ordernumber={{#var:Ordernumber}}
 +
|Item={{#var:Paragraph}}  
 +
|Item title={{{Name paragraph|}}}  
 +
}}}}<!---
 +
 
 +
Introductory text
 +
 
 +
---->{{#vardefineecho:Introductory text|{{#show: {{#var:Paragraph}} | ?Introductory text }}}}<!---
 +
---->{{#ifeq: {{#var:Content only|No}} | Yes|  | {{#if: {{#var: Introductory text}}|<br>}}<!--
 +
    --->'''{{#formredlink:form=Paragraph|link text=Continue reading|existing page link text=Continue reading |link type=link|Paragraph[Title]={{{Name paragraph|}}}|target={{#var:Paragraph|}} }}'''
 
<br>}}</includeonly>
 
<br>}}</includeonly>

Revision as of 14:14, 31 October 2016

This is the "Paragraph in chapter" template. It should be called in the following format:

{{Paragraph in chapter
|Name paragraph=
|Chapter={{#var:Chapter}}
|Ordernumber until now={{#var:Ordernumber}}
}}

Edit the page to see the template text.

ow-hoofdstuk-kop