(Remove aria complementary role because it's incorrect in this context; see: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/complementary_role) |
(Updated formatting.) |
||
Line 1: | Line 1: | ||
<includeonly>{| class="article-table plainlinks" style="width:100% |
<includeonly>{| class="article-table plainlinks" style="width:100%" |
||
|- style="font-size:18px |
|- style="font-size:18px" |
||
! style="padding: |
! style="padding:0" | <div style="width:100%; padding:3px 0; text-align:center" class="color1">Template Documentation</div> |
||
|- |
|- |
||
| ''Note: portions of the template sample may not be visible without values provided.'' |
| ''Note: portions of the template sample may not be visible without values provided.'' |
||
Line 9: | Line 9: | ||
| Editors can experiment in this template's [{{fullurl:{{FULLPAGENAMEE}}/sandbox|action=edit}} sandbox] and [{{fullurl:{{FULLPAGENAMEE}}/testcases}} test case] pages. |
| Editors can experiment in this template's [{{fullurl:{{FULLPAGENAMEE}}/sandbox|action=edit}} sandbox] and [{{fullurl:{{FULLPAGENAMEE}}/testcases}} test case] pages. |
||
|} |
|} |
||
<div style="margin:0 1em |
<div style="margin:0 1em"> |
||
{{{{{1|{{PAGENAME}}/doc}}}}}</div></includeonly><noinclude>{{Documentation}} |
{{{{{1|{{PAGENAME}}/doc}}}}}</div></includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 20:18, 22 August 2022
Template Documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
- Description
- This template is used to insert documentation on template pages.
- Syntax
- Type
<noinclude>
at the end of the template page.{{Documentation}}
</noinclude>
General usage
On the Template page
Template code<noinclude> {{Documentation}} </noinclude>
On the Template/doc page
; Description : This template is used to do something. ; Dependencies: :* Uses (some CSS, JS, file, or other template). ; Syntax : Type <code>{{T|Templatename}}</code> somewhere. ; Sample output : <code><nowiki>{{Templatename|foo}}</nowiki></code> gives... : {{Templatename|foo}} <includeonly>Any categories for the template itself </includeonly><noinclude> [[Category:Template documentation]] </noinclude>
Use any or all of the above description/syntax/sample output sections. You may also want to add "see also" or further usage information sections.
Note that the above example also uses {{T}}
.
Dependencies
- Templates
- Template:Tocright (Template:Tocright/doc)
TemplateData
This template is used to display documentation on template pages. It also adds some tools to help the editor to modify the /doc subpage and the template.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Custom Documentation Location | 1 | The name of the custom /doc subpage.
| String | optional |
Inline Documentation Content | content | Content if documentation page will not be transcluded
| String | optional |
Custom Sandbox Location | sandbox | Specifies the /sandbox subpage location
| String | optional |
Heading text | heading | Changes the default "Documentation" header to a different one
| String | optional |
Custom footer content | footer | Replaces the default link box with a custom one
| Unbalanced wikitext | optional |