Template:ContentPartsTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
</pre>
</pre>
</noinclude><includeonly>
</noinclude><includeonly>
{{#ifexpr:{{{subpage|}}}|
{{#ifexpr:{{PropertyTestTemplate
<table align="left" class="toc"><tr><td><div><b>{{{PagePartHeader|}}}</b></div>
  |prop=belongsToPage
  |page= {{#titleparts:{{PAGENAME}}
  |1}}
  |reverse=1}}>0
  |
  <table align="left" class="toc"><tr><td><div><b>{{{PagePartHeader|}}}</b></div>
   <ol>
   <ol>
{{#ask:[[{{#titleparts: {{PAGENAME}}|1}}]]|mainlabel=|? HasPageLabel=|link=none|format=template|template=PagePartTemplate}}
  {{#ask:[[ {{#titleparts:{{PAGENAME}}|1}}]]
{{#ask: [[BelongsToPage:: {{#titleparts: {{PAGENAME}}|1}} ]]|mainlabel=|? HasPageLabel=|? HasSequence=|sort=HasSequence|link=none|format=template|template=PagePartTemplate}}
  |mainlabel=
</ol>
  |? HasPageLabel=
   </td></tr>
  |link=none
</table>
  |format=template
|
  |template=PagePartTemplate
{{#ifexpr:{{PropertyTestTemplate|prop=belongsToPage|page= {{#titleparts:{{PAGENAME}}|1}}|reverse=1}}>0|
   }}
<table align="left" class="toc"><tr><td><div><b>{{{PagePartHeader|}}}</b></div>
   {{#ask:[[BelongsToPage::{{#titleparts: {{PAGENAME}}|1}}]]
   <ol>
  |mainlabel=
{{#ask:[[ {{#titleparts: {{PAGENAME}}|1}}]]|mainlabel=|? HasPageLabel=|link=none|format=template|template=PagePartTemplate}}
  |? HasPageLabel=
{{#ask:[[BelongsToPage::{{#titleparts: {{PAGENAME}}|1}}]]|mainlabel=|? HasPageLabel=|? HasSequence=|sort=HasSequence|link=none|format=template|template=PagePartTemplate}}
  |? HasSequence=
</ol></td></tr>
  |sort=HasSequence
</table>
  |link=none
  |format=template
  |template=PagePartTemplate
  }}
  </ol></td></tr>
  </table>
|}}
|}}
 
}}
<!-- <div style="text-indent:50px">Additional info  
<!-- <div style="text-indent:50px">Additional info  
  <ul><li>Learning technology and something</li> </ul></div>-->
  <ul><li>Learning technology and something</li> </ul></div>-->

Revision as of 17:11, 10 January 2014

Template to display the subpages of a page. subpage = 0 means main page and subpage = 1 subpage. It should be called in the following format:

{{ContentPartsTemplate
|PagePartHeader=
|subpage
}}