Difference between revisions of "Template:Chapter"

From Venlo Samenwerkingswijzer
 
(47 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
|Introductory text=
 
|Introductory text=
 
|Text chapter=
 
|Text chapter=
|Paragraphs=[Template:...]
 
|Visual=?
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 17: Line 15:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
  
</noinclude><includeonly><!---
 
  
from ecommercewiki:
+
</noinclude><includeonly>{{#if:{{#var:embedchapter}}|<div class="row" style="padding-left:10px;">{{#ifingroup:sysop||<h1>{{{Title|}}}</h1>}}|}}<!---
{{#ifeq: {{#var:Content only|No}} | Yes||{{#seo:|description=Visit the EcommerceWiki for all the {{{Title|{{SUBPAGENAME}}}}} information.}}
+
---->{{#if:{{#var:embedchapter}}||{{#set:
 
+
|Introductory text={{{Introductory text|}}}
 
+
}}<div class="container-fluid">
---->{{#vardefine:Chapter|{{PAGENAME}} }}<!---
+
<div class="row">
--->{{#vardefine:Ordernumber|0}}<!---
+
}}{{#if:{{#var:embedchapter}}||<div class="col-md-9">}}
--->{{#vardefine: Additional expert | {{#show: {{BASEPAGENAME}} |?Additional expert |link=none }} }}<!---
+
{{#if:{{#var:embedchapter}}||{{Page title
--->{{#vardefine:@topic|{{ROOTPAGENAME}}}}<!---
 
--->{{#vardefine:@context|{{#show:{{FULLPAGENAME}}|?Page ID#|link=none}}}}<!---
 
 
 
--->{{#set:
 
|Date created={{{Date created|}}}
 
}}<!---
 
 
 
--->{{Page title
 
 
|Bread crumb={{BASEPAGENAME}}
 
|Bread crumb={{BASEPAGENAME}}
 
|Name={{{Title|{{SUBPAGENAME}} }}}
 
|Name={{{Title|{{SUBPAGENAME}} }}}
 
|Form=Chapter
 
|Form=Chapter
}}<!---
 
 
---><div class="container-fluid"><div class="row">{{#set:
 
|Introductory text={{{Introductory text|}}}
 
|Item={{PAGENAME}}
 
|Topic={{BASEPAGENAME}}
 
|Has parent page={{BASEPAGENAME}}
 
|Superitem={{BASEPAGENAME}}
 
}}<!---
 
 
---><div class="col-md-9"><!---
 
 
{{Topic buttons}}
 
 
{{Show document on other page
 
|Topic={{BASEPAGENAME}}
 
 
}}
 
}}
 
+
}}{{#if:{{{Introductory text|}}}|<div class="well">{{{Introductory text|}}}</div>}}
Only when not 'Content only' :
+
{{{Text chapter|}}}<!---
 
+
--->
---->
+
{{#if:{{{Paragraphs|}}} |
{{{Text chapter|}}}
 
 
{{{Paragraphs|}}}
 
{{{Paragraphs|}}}
{{#ifeq: {{#var:Content only|No}} | Yes|  |
 
<br>
 
{{Navigation handbook new
 
|Topic=
 
|Chapter={{PAGENAME}}
 
|Paragraph=
 
}}
 
<!----{{Headertabs handbook|Topic={{BASEPAGENAME}}}}---->
 
</div>
 
<div class="col-md-3 noprint" style="padding-left:3px">{{#vardefine:@totalpagereport|{{#show:{{#var:@topic}}|?Total page report|link=none}}}}<!---
 
 
{{#if:{{#var:@totalpagereport}}|<div style="margin-bottom:10px;">{{Show document link for
 
|Text=Download entire topic
 
|Document={{#var:@totalpagereport}}
 
|Video=
 
|Link type=button
 
|Button class=btn-warning btn-warning big-button panel-alert-ecom
 
|Text class=
 
}}</div>}}
 
 
---->
 
<div class="panel panel-default">
 
<div class="panel-body">
 
<center><span style="font-size: 30px;">{{#ask: [[Item::{{FULLPAGENAME}}]]|?Chapter level|format=template|template=Chapter level}}</span></center>
 
</div>
 
<!---
 
ecommercewiki:
 
 
{{Visual
 
|Visual={{{Visual|}}}
 
}}
 
{{Show hosts
 
|Chapter={{PAGENAME}}
 
}}
 
{{Show curators
 
|Chapter={{PAGENAME}}
 
}}
 
{{Members expert group
 
|Chapter={{PAGENAME}}
 
|Topic={{BASEPAGENAME}}
 
}}
 
 
{{Right hand share page|Sharing page type=Chapter}}
 
{{Show alert with link
 
|Go to form=
 
|Go to page=Special:Contact
 
|Message=
 
 
}}
 
}}
-----></div></div>
+
{{#if:{{#var:embedchapter}}||</div>}}
 +
{{#if: {{#var:embedchapter}}||<div class="col-md-3">
 +
{{Chapter navigation}}
 
</div>
 
</div>
[[Category:Chapter]] [[Category:Topic content]]
+
</div>}}{{#if:{{#var:embedchapter}} |</div>|[[Category:Chapter]] }}</includeonly>
}} <!-- Only when not 'Content only' -->
 
</includeonly>
 

Latest revision as of 13:44, 21 September 2017


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

{{Chapter
|Title=
|Date created=
|Introductory text=
|Text chapter=
}}

Edit the page to see the template text.