Difference between revisions of "Template:Ifexist subpage"

From blackwiki
Jump to navigation Jump to search
imported>Michael Anon
(Removed link to the subpage – the content can be altered using the edit link already available)
imported>Michael Anon
(Removed yet another new line)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#ifexist:{{FULLPAGENAME}}/{{{1}}}|
+
<includeonly>{{#ifexist:{{FULLPAGENAME}}/{{{1|}}}|{{../box-header|{{SUBPAGENAME}} {{{1}}} | {{FULLPAGENAME}}/{{{1}}} }} {{ {{FULLPAGENAME}}/{{{1}}} }} {{../box-footer|}} }}</includeonly><noinclude>
{{../box-header|{{SUBPAGENAME}} {{{1}}} | {{FULLPAGENAME}}/{{{1}}} }}
+
{{documentation}}</noinclude>
{{ {{FULLPAGENAME}}/{{{1}}} }}
 
{{../box-footer|}} }} }}
 
</includeonly>
 
<noinclude>
 
{{documentation}}
 
</noinclude>
 

Latest revision as of 19:59, 14 September 2012

Template documentation[view] [edit] [history] [purge]

Usage

{{Subpage | <subpagename>}} 
for example: {{subpage |November 2006}} {{Subpage | 1}}

This will output a box on this page containing the contents of the subpage if the subpage exists.

Typical usage

See also

Portal content templates

Main portal page formatting templates

Templates that configure links

Selected page templates, used on subpages of older portals

Related templates