Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Documentation: Difference between revisions

Template page
Updated design from [https://en.brickimedia.org/ Brickipedia].
m Fix.
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div style="width:100%; border:1px solid #AAA; clear:both; position: relative; background:#ECFCF4; color:#000"><div style="margin-left:6px; margin-right:6px; margin-top:6px; margin-bottom:6px">{{#if:{{#pos:{{NAMESPACE}}|Template}}|<div style="text-align:left"><div style="float:right">[[{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit]]</div>[[File:Template-info.png|50px]] <span style="font-size:17px; font-weight:bold">Template documentation</span></div>
<includeonly>{{#invoke:Documentation|doc}}__NOEDITSECTION__</includeonly><noinclude>{{/doc}}</noinclude>
-------------}}
:''This documentation is transcluded from [[{{{1|{{FULLPAGENAME}}/doc}}}]].'' <small>([{{fullurl:{{{1|{{FULLPAGENAME}}/doc}}}|action=edit edit}}] | [{{fullurl:{{{1|{{FULLPAGENAME}}/doc}}}|action=history}} history])</small>
{{#ifexist: {{FULLPAGENAME}}/sandbox|:''This template has a [[{{FULLPAGENAME}}/sandbox|sandbox]]''&nbsp;<small>([{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit}} edit])</small>&nbsp;{{#ifexist: {{FULLPAGENAME}}/testcases|''and''|''for editors to experiment.''}}}}&nbsp;{{#ifexist: {{FULLPAGENAME}}/testcases|[[{{FULLPAGENAME}}/testcases|''testcases'']]&nbsp;<small>([{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} edit])</small>&nbsp;''for editors to experiment.''}} {{#ifexist: {{FULLPAGENAME}}/sandbox/test|''There is also a [[{{FULLPAGENAME}}/sandbox/test|sandbox test]] for editors to test their changes to the sandbox.''|}}
{{{{{1|{{FULLPAGENAME}}/doc}}}}}<br clear="all">
</div></div></includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 17:19, 8 April 2022

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Documentation/doc. Changes can be proposed in the talk page.
Template:Documentation invokes function doc in Module:Documentation using Lua.

The documentation template is transcluded in the template/module documentation. This template should only be used on subpages titled "doc".

Usage

Place {{Documentation}} at the top of the documentation page.

If the page to be documented is a subpage, use {{Documentation|<pagename of page to be documented>}} at the top of the documentation page. For example, Template:Foo/bar's documentation page would use {{Documentation|<Template:Foo/bar>}}.

The template will attempt to auto detect and link {{#Invoke:}} calls on template documentations or the require()/mw.loadData() depedency list on module documentations. If you want to supress the auto generated dependency list, use {{Documentation}}

Note

This template links to a /doc that may appear useless, however, it exists in order to link navboxes and userboxes to their base template's documentation.


TemplateData

The documentation template is transcluded in the template/module documentation. This template should only be used on subpages titled "doc".

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
No parameters specified
Cookies help us deliver our services. By using our services, you agree to our use of cookies.