Habbo Wiki
m (Protected "Template:Documentation" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
(Updating.)
Tag: sourceedit
 
Line 1: Line 1:
<noinclude><div style="display:none;"></noinclude><div style="border:1px solid black; margin:1em; margin-top:3em;"><div style="background:#ddd; color:#111; padding:1em; margin:0em;">'''Template documentation''' <span style="font-size:85%;">(for the above template, sometimes hidden or invisible)</span><span style="float:right;">[[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [{{purge|purge}}] </span></div><div style="padding:1em; padding-bottom:0em; margin:0em;">{{tocright}}
+
<div style="border:1px solid #000000; border-radius:10px; margin:1em; margin-top:3em;"><div style="border-bottom:1px solid #000000; border-top-left-radius:10px; border-top-right-radius:10px; background:#ddd; color:#111; padding:0.5em 0.5em 1.5em 0.5em; margin:0em;">'''Template documentation''' <span style="font-size:85%;">(for the above template, sometimes hidden or invisible)</span><span class="mw-editsection plainlinks" id="doc_editlinks" style="float:right; font-size:85%;">{{
  +
#if: {{{doc exist|yes}}}
  +
| [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=view}} view]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history]] [{{purge|refresh}}]
  +
| <!--/doc doesn't exist-->
  +
[[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{
  +
#if: {{{preload|}}}
  +
| {{urlencode:{{{preload}}}}}
  +
| {{#ifeq: {{SUBJECTSPACE}} | {{ns:File}}
  +
| Template:Documentation/preload-filespace
  +
| Template:Documentation/preload
  +
}} }} }} create]]
  +
}}</span></div><div style="padding:1em; padding-bottom:0em; margin:0em;">{{ #if: {{{notoc|}}} | {{notoc}} | {{tocright}} }}
 
{{{{PAGENAME}}/doc}}
 
{{{{PAGENAME}}/doc}}
</div><br style="clear:both;"/><div style="border-top: 1px solid black; background:#ddd; color:#111; padding:0.5em; margin:0em; font-size:85%; text-align:right;">The above [[m:Help:Template documentation|Template documentation]] is [[mw:Help:Transclusion|transcluded]] from [[{{{docpage|{{FULLPAGENAME}}/doc}}}]]. <small style="font-style: normal">([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit] &#124; [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history])</small><br />Please add categories and interwikis to the [[{{{docpage|{{FULLPAGENAME}}/doc}}}|/doc]] subpage.<br />[[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this template]]</div></div><noinclude></div>
+
</div><br style="clear:both;"/><div style="border-top:1px solid #000000; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; background:#ddd; color:#111; padding:0.5em; margin:0em; font-size:85%; text-align:right;">The above [[Project:Template documentation|Template documentation]] is [[m:Transclusion|transcluded]] from [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}}} {{FULLPAGENAME}}/doc]. <small style="font-style: normal">([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit] &#124; [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history])</small><br />Editors can experiment in this template’s {{
  +
#ifexist: {{{sandbox| {{FULLPAGENAME}}/sandbox }}}
{{documentation}}[[Category:Template documentation| ]]</noinclude>
 
  +
| [[{{{sandbox| {{FULLPAGENAME}}/sandbox }}}|sandbox]] <small style="font-style: normal">([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit }} edit] {{!}} [{{fullurl:Special:ComparePages | page1={{#if:{{{1|}}}|{{case preserving encode|{{{1|}}}}}|{{NAMESPACEE}}:{{BASEPAGENAMEE}}}}&page2={{NAMESPACEE}}:{{BASEPAGENAMEE}}/sandbox}} diff])</small>
  +
| sandbox <small style="font-style: normal">([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload=Template:Documentation/preload-sandbox }} create])</small>
  +
}} and {{
  +
#ifexist: {{{testcases| {{FULLPAGENAME}}/testcases }}}
  +
| [[{{{testcases| {{FULLPAGENAME}}/testcases }}}|testcases]] <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit }} edit])</small>
  +
| testcases <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-testcases }} create])</small>
  +
}} pages<br />Please add categories and interwikis to the [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}}} /doc] subpage.<br />[[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this template]]</div></div>

Latest revision as of 05:38, 16 September 2015

Template documentation (for the above template, sometimes hidden or invisible)[view] [edit] [history] [refresh]

Description

Template:Documentation is used to insert descriptions on template pages.

Syntax

<noinclude>{{documentation}}</noinclude>

at the end of the template page.

General usage

On the Template page

Template code<includeonly>Any categories to be inserted into articles by the template</includeonly><noinclude>
{{documentation}}</noinclude>

Information icon4.svg Note: Depending on the template, you may need to insert the {{clr}} template (or complete a table/div) just before inserting <noinclude>{{documentation}}</noinclude>.

The line break is also useful as it helps prevent the documentation template "running into" previous code.

On the Template/doc page

<noinclude>{{documentation subpage}}</noinclude>
=== Description ===

'''{{FULLPAGENAME}}''' is used to do something.

=== Syntax ===

 {{tlx|templatename}}

=== Parameters ===

;{{para|foo}} : purpose of foo

=== Examples ===

 {{tlx|templatename}}

;produces…

{{templatename}}


{{tlx|templatename|<var>foo</var>}}

;produces …

{{templatename|foo}}

=== See also ===


<includeonly>
Any categories for the template itself
</includeonly>

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.

Information icon4.svg Note: The above example also uses Template:Tlx.


The above Template documentation is transcluded from Template:Documentation/doc. (edit | history)
Editors can experiment in this template’s sandbox (create) and testcases (create) pages
Please add categories and interwikis to the /doc subpage.
Subpages of this template