Jump to content

Template:Documentation: Difference between revisions

From Honkai: Nexus Anima Wiki
FANDOM (talk | contribs)
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
 
m Protected "Template:Documentation": High-Risk Module ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{| class="article-table plainlinks" style="width:100%;"
<includeonly>{{#invoke:documentation|main}}</includeonly><noinclude>{{Documentation|type=Documentation}}</noinclude>
|- style="font-size:18px;"
! style="padding:0px;" | <div style="width:100%; padding:3px 0px; text-align:center;" class="color1">Template documentation</div>
|-
| ''Note: portions of the template sample may not be visible without values provided.''
|-
| View or edit [[{{{1|Template:{{PAGENAMEE}}/doc}}}|this documentation]]. ([[Template:Documentation|About template documentation]])
|-
| 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;">
{{{{{1|{{PAGENAME}}/doc}}}}}</div></includeonly><noinclude>{{Documentation}}[[Category:Documentation templates]]</noinclude>

Latest revision as of 20:23, 29 August 2025

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.
This template uses Module:Documentation, a script written in Lua.
This template uses CSS found at MediaWiki:Documentation.css (edit | hist).

This template is used to insert documentation to template pages.

Syntax

  • {{Documentation}} will produce the documentation template.
  • {{Documentation|foo}} will fill in the documentation from the "foo" template.
  • {{Documentation|content = This template does something}} will fill in the documentation with the content "This template does something." (not recommended except for very, very short documentation)
  • {{Documentation|heading = Important information}} will replace the default heading with "Important information".
  • {{Documentation|type = category}} will add the "category Templates" category.

Template Data

This template is used to insert descriptions on template pages.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Custom Documentation Page1

Page containing the documentation

Default
{{FULLPAGENAME}}/doc
Page nameoptional
Headingheading

Custom heading

Default
[[File:Template-icon.svg|50px|link=|alt=Documentation icon]] Documentation
Lineoptional
Preload Pagepreload

The page to preload if the `/doc` subpage doesn't exist.

Default
Template:Documentation/preload
Page nameoptional
Contentcontent

Custom documentation content, prevents transclusion of `/doc` subpage.

Contentoptional
Typetype

Category to categorize template in.

Stringsuggested