Template:ContentPartsTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(47 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>
<div style="float:left; clear:left; ">
{{#ifexpr:{{PropertyTestTemplate
{{#ifexpr:{{PropertyTestTemplate|prop=belongsToPage|page={{PAGENAME}}|reverse=1}}>0|
  |prop=BelongsToPage
<b>{{{PagePartHeader|}}}</b>
  |page= {{#titleparts:{{FULLPAGENAME}}|1}}
   <ul>
  |reverse=1}}>0
{{#ask:[[{{PAGENAME}}]]|mainlabel=|? HasPageLabel=|link=none|format=template|template=PagePartTemplate}}
|
{{#ask: [[BelongsToPage:: {{PAGENAME}}]]|mainlabel=|? HasPageLabel=|? HasSequence=|sort=HasSequence|link=none|format=template|template=PagePartTemplate}}
  <div class="toc">
</ul>
<strong>{{{PagePartHeader|}}}</strong>
</div>
   <ol>
  {{#ask:[[ {{#titleparts:{{FULLPAGENAME}}|1}}]][[!AggregatedComponent]]
  |mainlabel=
  |? HasPageLabel=
  |link=none
  |format=Plainlist
  |template=PagePartTemplate
  }}
  {{#ask:[[BelongsToPage::{{#titleparts: {{FULLPAGENAME}}|1}}]][[!AggregatedComponent]]
  |mainlabel=
  |? HasPageLabel=
  |? HasSequence=
  |sort=HasSequence
  |link=none
  |format=Plainlist
  |template=PagePartTemplate
  }}{{addInfoPartsTemplate}}</ol></div>
|}}
|}}

Latest revision as of 16:50, 10 March 2020

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

{{ContentPartsTemplate
|PagePartHeader=
}}