Template:ContentPartsTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
(Created page with "<noinclude> Template to display the subpages of a page. It should be called in the following format: <pre> {{ContentPartsTemplate |PagePartHeader= }} </pre> </noinclude><inclu...")
 
No edit summary
 
(48 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
{{InfoBoxStyleTemplate}}
  |prop=BelongsToPage
{{#ifexpr:{{PropertyTestTemplate|prop=belongsToPage|page={{PAGENAME}}|reverse=1}}>0|
  |page= {{#titleparts:{{FULLPAGENAME}}|1}}
   <tr>{{InfoBoxCellStyleTemplate}}<b>{{{PagePartHeader|}}}</b></td></tr>
  |reverse=1}}>0
   <tr><td>
|
   <ul>
   <div class="toc">
{{#ask:[[{{PAGENAME}}]]|mainlabel=|? HasPageLabel=|link=none|format=template|template=PagePartTemplate}}
<strong>{{{PagePartHeader|}}}</strong>
{{#ask: [[BelongsToPage:: {{PAGENAME}}]]|mainlabel=|? HasPageLabel=|? HasSequence=|sort=HasSequence|link=none|format=template|template=PagePartTemplate}}
   <ol>
</ul>
   {{#ask:[[ {{#titleparts:{{FULLPAGENAME}}|1}}]][[!AggregatedComponent]]
  </td></tr>
  |mainlabel=
</table>
  |? 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=
}}