Template:ContentPartsTemplate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
{{#ifexpr:{{PropertyTestTemplate | {{#ifexpr:{{PropertyTestTemplate | ||
|prop=belongsToPage | |||
|page= {{#titleparts:{{PAGENAME}}|1}} | |||
|reverse=1}}>0 | |||
| | |||
<table align="left" class="toc"><tr><td><div><b>{{{PagePartHeader|}}}</b></div> | <table align="left" class="toc"><tr><td><div><b>{{{PagePartHeader|}}}</b></div> | ||
<ol> | <ol> | ||
Line 33: | Line 32: | ||
|template=PagePartTemplate | |template=PagePartTemplate | ||
}} | }} | ||
{{#ifexpr:{{PropertyTestTemplate | |||
|prop=belongsToTextPage | |||
|page= {{#titleparts:{{PAGENAME}}|1}} | |||
|reverse=1}}>0 | |||
| | |||
<div style="text-indent:50px">Additional info </div> | |||
{{#ask:[[BelongsToTextPage::{{#titleparts: {{PAGENAME}}|1}}]] | |||
|mainlabel= | |||
|mainlabel= | |||
|link=none | |||
|format=template | |||
|template=PagePartTemplate | |||
}} | |||
|}} | |||
</ol></td></tr> | </ol></td></tr> | ||
</table> | </table> | ||
|}} | |}} | ||
Revision as of 17:33, 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 }}