Template

Documentation subpage: Difference between revisions

From Joomla! Documentation

CirTap (talk | contribs)
No edit summary
 
CirTap (talk | contribs)
mNo edit summary
Line 3: Line 3:
</includeonly><div class="messagebox" id="template_doc_page_viewed_directly" style="text-align: center">
</includeonly><div class="messagebox" id="template_doc_page_viewed_directly" style="text-align: center">
This subpage contains [[Project:Template documentation|documentation]], [[Project:Categories|categories]] and other content that is not part of the template.<br /><span style="font-size:0.9em;">To view the {{lc:{{NAMESPACE}}}} page itself, see {{{1|[[{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}.</span></div>
This subpage contains [[Project:Template documentation|documentation]], [[Project:Categories|categories]] and other content that is not part of the template.<br /><span style="font-size:0.9em;">To view the {{lc:{{NAMESPACE}}}} page itself, see {{{1|[[{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}.</span></div>
{{DEFAULTSORT:{{PAGENAME}}}}{{#if:{{{inhibit|}}}|<!-- skip -->|[[Category:Documentation subpages<noinclude>| </noinclude>]]}}
{{DEFAULTSORT:{{PAGENAME}}}}{{#if:{{{inhibit|}}}|<!-- skip -->|[[Category:Documentation subpages<noinclude>| </noinclude><includeonly>|{{BASEPAGENAME}}</includeonly>]]}}
<includeonly>}}</includeonly><noinclude>
<includeonly>}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 13:30, 27 October 2007

This subpage contains documentation, categories and other content that is not part of the template.
To view the template page itself, see Template:Documentation subpage.

[view] [edit] [history]

Template documentation


Provides the header message on documentation subpages as featured in the {{documentation}} template.

Functions/Features

If used on a "/sandbox" subpage the template transcludes {{template sandbox notice}} otherwise {{pp-semi-template}} is transcluded by default. Like it's mother template, {{documentation}}, it is not restricted to the Template namespace.

Usage

Should be present on any documentation subpage.

{{documentation subpage}}

Parameters

Parameter Name Parameter Description req./opt.
override=otherpage to use another "documentation" page than /doc Optional
doc-notice=non-empty-value any value other then show (the default) will prevent display of the box message "This is a documentation subpage for..."" Optional
inhibit=non-empty-value any value provided will categorise the documentation page into [[Category:{{SUBJECTSPACE}} documentation]] or (for Main articles) into [[Category:Article documentation]] Optional

Stylesheet

CSS rules to include in [[MediaWiki::commons.js]] or [[MediaWiki::monobook.js]]

div.messagebox
#template_doc_page_viewed_directly