Difference between revisions of "Template:Topic"

From Venlo Samenwerkingswijzer
 
(33 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
</pre>
 
</pre>
  
 
+
</noinclude><includeonly>{{#vardefine:embedchapter|do not embed }}{{#set:
</noinclude><includeonly><!---
+
|Superitem=
 
 
--->{{#set:  
 
|Display title={{{Title|{{SUBPAGENAME}} }}}
 
|Superitem=Handbook
 
 
|Expert group topic={{{Expert group topic|}}}
 
|Expert group topic={{{Expert group topic|}}}
 
|Topic={{PAGENAME}}
 
|Topic={{PAGENAME}}
|Date created={{{Date created|}}}  
+
|Date created={{{Date created|}}}
 
|Visual={{{Visual|}}}  
 
|Visual={{{Visual|}}}  
 
|Total page report={{{Total page report|}}}
 
|Total page report={{{Total page report|}}}
}}<!---
+
|Introductory text={{{Introductory text|}}}
 
+
}}{{#vardefine: Topic | {{PAGENAME}} }}
vars
+
{{Page title
 
+
|Name={{{Title|{{SUBPAGENAME}} }}}  
--->{{#vardefine:Topic|{{PAGENAME}} }}<!---
+
|Form=Topic
--->{{#vardefine:@topic|{{PAGENAME}}}}{{#vardefine:Ordernumber|0}}<!---
+
}}
 
+
<div class="container-fluid">  
---->{{#set: Additional expert={{{Additional expert|}}} }}<!---
 
 
 
--->{{#vardefine: Additional expert | {{{Additional expert|}}} }}<!---
 
 
 
see Template:Topic buttons
 
{{#vardefine:@context|{{#show:{{FULLPAGENAME}}|?Page ID#|link=none}}}}
 
 
 
---><div class="container-fluid">  
 
 
<div class="row">
 
<div class="row">
<div class="col-md-9">{{#if: {{{Visual|}}} | {{Show visual
+
<div class="col-md-3" style="margin-left:0px; padding-right:25px;">{{TOC |class=sticky inhoudsopgave noprint |style=font-size:70% }}
|Visual={{{Visual|}}}
+
</div><div class="col-md-9" style=";">
|Text={{PAGENAME}}
+
{{#if: {{{Introductory text|}}} |<div class="row"><div class="well well-default">{{{Introductory text|}}}</div></div>}}
}} }}<!---
+
{{#if:{{{Chapters|}}}| {{{Chapters|}}} }}<br>
<div style="margin-bottom:5px;">{{#if: {{{Total page report|}}} |{{Show document link for
+
</div></div></div>
|Text=Download this topic as a total report
+
{{#ifeq: {{#var:Content only|No}} | Yes|| [[Category:Topic]] }}
|Document={{{Total page report|}}}
+
</includeonly>
|Video=
 
|Link type=button
 
|Button class=btn-warning {{Country specific |Element=btn-warning}} big-button panel-alert-ecom
 
|Text class=
 
}} }}</div>---><!---
 
 
 
Topic buttons
 
{{Topic buttons}}
 
 
 
-->{{Page title
 
|Title={{{Title|}}}
 
|Form=
 
}}<!---
 
 
 
{{Show document on other page
 
|Topic={{PAGENAME}}
 
}}
 
 
 
Introductory text:
 
 
 
---->{{#if: {{{Introductory text|}}} | {{{Introductory text|}}} }}<!---
 
 
 
Link to chapters?
 
 
 
--->{{#if:{{{Chapters|}}}| {{{Chapters|}}} }}<br><!---
 
 
 
--->{{#ifeq: {{#var:Content only|No}} | Yes|  | [[Category:Topic]] [[Category:Topic content]]}}</div>
 
<div class="col-md-3 noprint" style="padding-left:3px">
 
<div class="panel panel-default panel-default">
 
<!-----
 
 
 
{{#ifeq: {{#var:Content only|No}} | Yes|  | {{Show hosts
 
|Topic={{PAGENAME}}
 
}}
 
{{Show curators
 
|Topic={{PAGENAME}}
 
}}
 
{{Members expert group
 
|Topic={{PAGENAME}}
 
|Additional expert={{{Additional expert|}}}
 
}}
 
{{Right hand share page|Sharing page type=Topic}}
 
{{Show alert with link
 
|Go to form=
 
|Go to page=Special:Contact
 
|Message=ws-question-want-to-contribute
 
|Class=bottom-alert
 
}} }}
 
 
 
----></div></div></div></div><!----
 
 
 
autocreate pages
 
 
 
{{#createpageifnotex:{{BASEPAGENAME}}/Experts
 
|<nowiki>{{Topic subpage
 
|Section=Experts
 
}}</nowiki>
 
}}{{#createpageifnotex:{{BASEPAGENAME}}/Reports
 
|<nowiki>{{Topic subpage
 
|Section=Reports
 
}}</nowiki>
 
}}{{#createpageifnotex:{{BASEPAGENAME}}/Events
 
|<nowiki>{{Topic subpage
 
|Section=Events
 
}}</nowiki>
 
}}{{#createpageifnotex:{{BASEPAGENAME}}/Courses
 
|<nowiki>{{Topic subpage
 
|Section=Courses
 
}}</nowiki>
 
}}{{#createpageifnotex:{{BASEPAGENAME}}/Q and A
 
|<nowiki>{{Topic subpage
 
|Section=Q and A
 
}}</nowiki>
 
}}
 
 
 
Comments:
 
 
 
--->{{#ifingroup:wsadmin|{{Comments}}}}</includeonly>
 

Latest revision as of 10:22, 14 September 2017


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

{{Topic
|Title=
|Date created=
|Expert group topic=
|Additional expert=Expert that has to be shown for this topic although he/she should not be shown as an expert in general
|introductory text=
|Meta description=
|Visual=
|Total page report=
}}