Difference between revisions of "Template:Topic"

From Venlo Samenwerkingswijzer
 
(23 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
</pre>
 
</pre>
  
 
+
</noinclude><includeonly>{{#vardefine:embedchapter|do not embed }}{{#set:  
</noinclude><includeonly><!---
 
 
 
--->{{#set:  
 
 
|Superitem=
 
|Superitem=
 
|Expert group topic={{{Expert group topic|}}}
 
|Expert group topic={{{Expert group topic|}}}
Line 27: Line 24:
 
|Total page report={{{Total page report|}}}
 
|Total page report={{{Total page report|}}}
 
|Introductory text={{{Introductory text|}}}
 
|Introductory text={{{Introductory text|}}}
}}<!---
+
}}{{#vardefine: Topic | {{PAGENAME}} }}
 
 
vars
 
 
 
---->{{#vardefine:Topic|{{PAGENAME}} }}<!---
 
---->{{#vardefine:@topic|{{PAGENAME}}}}{{#vardefine:Ordernumber|0}}<!---
 
 
 
---->{{#set: Additional expert={{{Additional expert|}}} }}<!---
 
 
 
--->{{#vardefine: Additional expert | {{{Additional expert|}}} }}<!---
 
 
 
see Template:Topic buttons
 
{{#vardefine:@context|{{#show:{{FULLPAGENAME}}|?Page ID#|link=none}}}}
 
 
 
--->
 
 
{{Page title
 
{{Page title
 
|Name={{{Title|{{SUBPAGENAME}} }}}  
 
|Name={{{Title|{{SUBPAGENAME}} }}}  
 
|Form=Topic
 
|Form=Topic
}}<!---
+
}}
 
+
<div class="container-fluid">  
---><div class="container-fluid">  
 
 
<div class="row">
 
<div class="row">
<div class="col-md-12">{{#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|}}}
 
|Video=
 
|Link type=button
 
|Button class=btn-warning btn-warning big-button panel-alert-ecom
 
|Text class=
 
}} }}</div>---><!---
 
 
 
Topic buttons
 
{{Topic buttons}}
 
 
 
{{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:
 
 
 
---><!--
 
{{Navigation below
 
|1=
 
}} -->
 
 
</includeonly>
 
</includeonly>

Latest revision as of 11: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=
}}