Difference between revisions of "Template:Chapter in topic"

From Noordoostpolder samenwerkingswijzer
m (Text replacement - "{{Managed |Version=1.0 |Version notes= * Initial version }} <noinclude>" to "<noinclude> {{Managed |Version=1.0 |Version notes= * Initial version }}")
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
{{Managed
 
|Version=1.0
 
|Version notes=
 
* Initial version
 
}}
 
 
This is the "Chapter in topic" template.
 
This is the "Chapter in topic" template.
 
It should be called in the following format:
 
It should be called in the following format:
Line 30: Line 25:
 
}}<!---
 
}}<!---
 
--->{{#vardefine: EXISTS| {{#ask: [[{{#var:Chapter}}]] [[Modification date::+]] |link=none|default=no}} }}<!---
 
--->{{#vardefine: EXISTS| {{#ask: [[{{#var:Chapter}}]] [[Modification date::+]] |link=none|default=no}} }}<!---
--->{{#ifeq:{{#var:EXISTS}}|no||{{#ask: [[{{#var:Chapter}}]] |format=embedded |embedonly={{#ifingroup:user|no|yes}} }}}}<!---
+
--->{{#ifeq:{{#var:EXISTS}}|no||{{#ask: [[{{#var:Chapter}}]] |format=embedded |embedonly={{#ifingroup:sysop,admin|no|yes}} }}}}<!---
  
--->{{#ifingroup:user|{{#ifeq:{{#var:EXISTS}}|no|{{#formlink:form=Chapter
+
--->{{#ifingroup:sysop|{{#ifeq:{{#var:EXISTS}}|no|{{#formlink:form=Chapter
|link text=<{{{Chapter level|h1}}}>{{{Name chapter|}}}</{{{Chapter level|h1}}}>
+
|link text=<h1>{{{Name chapter|}}}</h1>
 
:<div style="font-size:small">{{Fa|pencil-square-o fa-fw}} Maak dit hoofdstuk aan</div>
 
:<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}} }} }} }}
 
|link type=link|Chapter[Title]={{{Name chapter|}}}|target={{#var:Chapter}} }} }} }}
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Revision as of 12:40, 19 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.