Template:ContentPartsTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Template to display the subpages of a page. subpage = 0 means main page and subpage = 1 subpage.
Template to display main page and subpages of an 'object'
It should be called in the following format:
<pre>
<pre>
{{ContentPartsTemplate
{{ContentPartsTemplate
Line 8: Line 7:
</pre>
</pre>
</noinclude><includeonly>
</noinclude><includeonly>
{{#ifexpr:{{PropertyTestTemplate|prop=belongsToPage|page={{BASENAME}}|reverse=1}}>0|
{{#ifexpr:{{PropertyTestTemplate
   <table align="left" class="toc">
  |prop=BelongsToPage
  <tr><td><div><b>{{{PagePartHeader|}}}</b></div>
  |page= {{#titleparts:{{FULLPAGENAME}}|1}}
  |reverse=1}}>0
|
   <div class="toc">
<strong>{{{PagePartHeader|}}}</strong>
   <ol>
   <ol>
  {{#ask:[[{{BASENAME}}]]  
  {{#ask:[[ {{#titleparts:{{FULLPAGENAME}}|1}}]][[!AggregatedComponent]]
    |mainlabel=
  |mainlabel=
    |? HasPageLabel=
  |? HasPageLabel=
    |link=none
  |link=none
    |format=template
  |format=Plainlist
    |template=PagePartTemplate
  |template=PagePartTemplate
  }}
  }}
  {{#ask: [[BelongsToPage::{{BASENAME}}]]
  {{#ask:[[BelongsToPage::{{#titleparts: {{FULLPAGENAME}}|1}}]][[!AggregatedComponent]]
    |mainlabel=
  |mainlabel=
    |? HasPageLabel=
  |? HasPageLabel=
    |? HasSequence=
  |? HasSequence=
    |sort=HasSequence
  |sort=HasSequence
    |link=none
  |link=none
    |format=template
  |format=Plainlist
    |template=PagePartTemplate
  |template=PagePartTemplate
    }}
  }}{{addInfoPartsTemplate}}</ol></div>
  </ol>
  </td></tr>
</table>
|}}
|}}
<!-- <div style="text-indent:50px">Additional info
<ul><li>Learning technology and something</li> </ul></div>-->

Latest revision as of 16:50, 10 March 2020

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

{{ContentPartsTemplate
|PagePartHeader=
}}