Difference between revisions of "Template:ContentPartsTemplate"

From IMAGE
Jump to: navigation, search
(37 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
Template to display the subpages of a page. It should be called in the following format:
+
Template to display main page and subpages of an 'object'
 
<pre>
 
<pre>
 
{{ContentPartsTemplate
 
{{ContentPartsTemplate
Line 7: Line 7:
 
</pre>
 
</pre>
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{{#ifexpr:{{PropertyTestTemplate|prop=belongsToPage|page={{PAGENAME}}|reverse=1}}>0|
+
{{#ifexpr:{{PropertyTestTemplate
<div align="right"><table class="toc"><tr><td><div><h2>{{{PagePartHeader|}}}</h2></div>
+
  |prop=BelongsToPage
 +
  |page= {{#titleparts:{{FULLPAGENAME}}|1}}
 +
  |reverse=1}}>0
 +
|
 +
  <div class="toc">
 +
<strong>{{{PagePartHeader|}}}</strong>
 
   <ol>
 
   <ol>
{{#ask:[[{{PAGENAME}}]]|mainlabel=|? HasPageLabel=|link=none|format=template|template=PagePartTemplate}}
+
  {{#ask:[[ {{#titleparts:{{FULLPAGENAME}}|1}}]]
{{#ask: [[BelongsToPage:: {{PAGENAME}}]]|mainlabel=|? HasPageLabel=|? HasSequence=|sort=HasSequence|link=none|format=template|template=PagePartTemplate}}
+
  |mainlabel=
</ol>
+
  |? HasPageLabel=
</table></div>
+
  |link=none
 +
  |format=template
 +
  |template=PagePartTemplate
 +
  }}
 +
  {{#ask:[[BelongsToPage::{{#titleparts: {{FULLPAGENAME}}|1}}]]
 +
  |mainlabel=
 +
  |? HasPageLabel=
 +
  |? HasSequence=
 +
  |sort=HasSequence
 +
  |link=none
 +
  |format=template
 +
  |template=PagePartTemplate
 +
  }}{{addInfoPartsTemplate}}</ol></div>
 
|}}
 
|}}

Revision as of 19:15, 29 April 2016

Template to display main page and subpages of an 'object'

{{ContentPartsTemplate
|PagePartHeader=
}}