Toggle menu
24K
663
183
158.1K
HausaDictionary.com | Hausa English Translations
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:documentation subpage: Difference between revisions

Template page
*>Hydriz
Using Lua module
 
*>Kephir
+dummy comment
Line 1: Line 1:
{{#invoke:Documentation subpage|run
<includeonly><!-- if not on a /documentation subpage, do nothing -->{{#ifeq:{{FULLPAGENAME}}|Template:documentation|<{{lc:}}!-- dummy comment to prevent a newline from appearing -->|{{#ifeq:{{SUBPAGENAME}}|documentation|</includeonly><!--
| 1 = {{{1|}}}
 
| override = {{{override|doc}}}
-->{{maintenance box|grey
| defaultsort = {{{defaultsort|{{PAGENAME}}}}}
| documentation
}}<noinclude>
| title = Documentation for [[{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]. <sup class="plainlinks">&#x5b;[{{fullurl:{{SUBJECTSPACE}}:{{BASEPAGENAME}}|action=edit}} edit]&#x5d;</sup>
{{documentation}}
| image = [[File:Edit-copy green.svg|40px]]
<!-- Categories, interwikis and TemplateData goes to the /doc subpage -->
| text = This page contains [[Help:Documenting templates and modules|usage information]], [[WT:Categorization|categories]], [[Help:Interwiki linking|interwiki links]] and other content describing the {{#switch:{{NAMESPACE}}|Module=module|#default=template}}.
</noinclude>
}}<!--
 
--><includeonly><!--
-->{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}|[[Category:Documentation subpages]]|[[Category:Orphaned documentation subpages]]}}<!--
-->|<{{lc:}}!-- dummy comment to prevent a newline from appearing -->}}}}</includeonly><noinclude>{{documentation}}

Revision as of 13:31, 20 November 2014

Template:maintenance box

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

This template is used on template documentation subpages to add a notice at the top of the page and add them to Category:Template documentation pages.

Usage

{{documentation subpage
| 1 = Parent page
| override = The sub-page name
| defaultsort = The way to sort the page in categories
}}

This template is added to the top of template and module documentation pages, and adds a header when on the page itself. Nothing will shown when the documentation page is viewed from the parent template.

TemplateData

This is the TemplateData documentation for the template used by the new VisualEditor.

Documentation subpage

Template for identifying template documentation pages.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Main page1

The page name which the template documentation is for.

Page nameoptional
Sub-pageoverride

The name of the sub-page that the documentation is on.

Stringoptional
Default sortdefaultsort

How the page is sorted in the category.

Default
{{PAGENAME}}
Stringoptional