Template:ContentPartsTemplate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
{{ContentPartsTemplate | {{ContentPartsTemplate | ||
|PagePartHeader= | |PagePartHeader= | ||
|subpage | |||
}} | }} | ||
</pre> | </pre> | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
{{#ifexpr:{{{subpage|}}}| | |||
<table align="left" class="toc"><tr><td><div><h2>{{{PagePartHeader|}}}</h2></div> | |||
<ol> | |||
{{#ask:[[{{#titleparts: {{PAGENAME}}|1}}]]|mainlabel=|? HasPageLabel=|link=none|format=template|template=PagePartTemplate}} | |||
{{#ask: [[BelongsToPage:: {{#titleparts: {{PAGENAME}}|1}} ]]|mainlabel=|? HasPageLabel=|? HasSequence=|sort=HasSequence|link=none|format=template|template=PagePartTemplate}} | |||
</ol> | |||
</td></tr> | |||
</table> | |||
| | |||
{{#ifexpr:{{PropertyTestTemplate|prop=belongsToPage|page={{PAGENAME}}|reverse=1}}>0| | {{#ifexpr:{{PropertyTestTemplate|prop=belongsToPage|page={{PAGENAME}}|reverse=1}}>0| | ||
<table align="left" class="toc"><tr><td><div><h2>{{{PagePartHeader|}}}</h2></div> | <table align="left" class="toc"><tr><td><div><h2>{{{PagePartHeader|}}}</h2></div> | ||
Line 12: | Line 22: | ||
{{#ask:[[{{PAGENAME}}]]|mainlabel=|? HasPageLabel=|link=none|format=template|template=PagePartTemplate}} | {{#ask:[[{{PAGENAME}}]]|mainlabel=|? HasPageLabel=|link=none|format=template|template=PagePartTemplate}} | ||
{{#ask: [[BelongsToPage:: {{PAGENAME}}]]|mainlabel=|? HasPageLabel=|? HasSequence=|sort=HasSequence|link=none|format=template|template=PagePartTemplate}} | {{#ask: [[BelongsToPage:: {{PAGENAME}}]]|mainlabel=|? HasPageLabel=|? HasSequence=|sort=HasSequence|link=none|format=template|template=PagePartTemplate}} | ||
</ol> | </ol></td></tr> | ||
</table> | </table> | ||
|}} | |}} | ||
}} |
Revision as of 14:58, 19 November 2013
Template to display the subpages of a page. It should be called in the following format:
{{ContentPartsTemplate |PagePartHeader= |subpage }}