Difference between revisions of "Template:Documentation/preload"

From Project: Gorgon Wiki
Jump to: navigation, search
m (copy-over from latest version on http://templates.wikia.com/wiki/Template:Documentation/preload)
m (Sample output: Added overflow:auto;)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
;Description
+
<includeonly><<noinclude/>includeonly>
:This template is used to do something.
+
<!-- Categories/interwikis for the template itself -->
;Dependencies:<!-- delete if N/A -->
+
<<noinclude/>/includeonly><<noinclude/>noinclude>
:* Uses (some CSS, JS, file, or other template).<!-- delete if N/A -->
+
<!-- Categories/interwikis for this documentation itself -->
;Syntax
+
[[Category:Template documentation|{{PAGENAME}}]]
:Type {{t|{{<includeonly>subst:</includeonly>#titleparts:{{<includeonly>subst:</includeonly>PAGENAME}}|1}}|param1<!-- delete if N/A -->|namedparam&#61;<!-- delete if N/A -->|style=code}} somewhere.
+
<<noinclude/>/noinclude></includeonly>
;Sample output
+
<dl>
 +
== <dt>Description</dt> ==
 +
<dd>This template is used to do something.</dd>
 +
== <dt>Dependencies</dt> ==<!-- delete if N/A -->
 +
<dd>
 +
*Uses (some CSS, JS, file, or other template).<!-- delete if N/A -->
 +
*Uses for this documentation:
 +
**{{t|SPW}} = Wikia specific to link back to original.
 +
**{{t|t}} = To show clickable template mentions.
 +
**{{t|para}} = To show parameter usage.
 +
**{{t|-}} and {{t|Lorem ipsum}} = To format the output of the samples.
 +
</dd>
 +
 
 +
== <dt>Syntax</dt> ==
 +
<dd>Type {{t|{{<includeonly>subst:</includeonly>#titleparts:{{<includeonly>subst:</includeonly>PAGENAME}}|1}}|param1<!-- delete if N/A -->|namedparam&#61;<!-- delete if N/A -->|style=code}} somewhere.
 +
</dd>
 +
===<dt>Parameters</dt>===
 +
<dd>
 +
*<i>Recommended | Required | Optional</i>: {{para|namedparameter}}
 +
*:Your explanation here.
 +
*:Default: {{para|namedparameter|<var>value</var>}}
 +
</dd>
 +
== <dt>Sample output</dt> ==
 +
<!-- Use one or the other layout versions below -->
 +
<!-- /start: For a tabular sample output -->
 +
<dd>
 
{| class="wikitable"
 
{| class="wikitable"
 
|+ Sample output
 
|+ Sample output
 
! Code !! Output
 
! Code !! Output
 
|-
 
|-
| style="background-color:silver;" |
+
| style="background-color:silver; overflow:auto;" | <code>
<syntaxhighlight lang="c" line="on">
+
<nowiki>{{</nowiki>{{<includeonly>subst:</includeonly>#titleparts:{{<includeonly>subst:</includeonly>PAGENAME}}|1}}<nowiki>|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}</nowiki>
{{<includeonly>subst:</includeonly>#titleparts:{{<includeonly>subst:</includeonly>PAGENAME}}|1}}|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}
+
</code>
</syntaxhighlight>
+
:gives...
:<code><nowiki>{{</nowiki>{{<includeonly>subst:</includeonly>#titleparts:{{<includeonly>subst:</includeonly>PAGENAME}}|1}}<nowiki>|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}</nowiki></code> gives...
+
| style="background-color:silver; overflow:auto;" |
| style="background-color:silver;" |
 
 
{{{{<includeonly>subst:</includeonly>#titleparts:{{<includeonly>subst:</includeonly>PAGENAME}}|1}}|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}
 
{{{{<includeonly>subst:</includeonly>#titleparts:{{<includeonly>subst:</includeonly>PAGENAME}}|1}}|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}
 
|}
 
|}
;See also:<!-- delete if N/A -->
+
</dd>
:* [[Template:<!-- Some other template -->]]<!-- delete if N/A -->
+
<!-- /end: For a tabular sample output -->
:* [[<!-- Some other related page -->]]<!-- delete if N/A -->
+
 
<includeonly><<noinclude/>includeonly>
+
<!-- /start: For a vertical sample output -->
<!-- Categories/interwikis for the template itself -->
+
<dd><dl>
<<noinclude/>/includeonly><<noinclude/>noinclude>
+
===Sample:1===
<!-- Categories/interwikis for this documentation itself -->
+
<dt style="font-family:monospace,Courier; font-weight:normal; border:2px solid teal; border-radius:1em; overflow:auto;">
[[Category:Template documentation|{{PAGENAME}}]]
+
<nowiki>{{</nowiki>{{<includeonly>subst:</includeonly>#titleparts:{{<includeonly>subst:</includeonly>PAGENAME}}|1}}<nowiki>|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}</nowiki>
<<noinclude/>/noinclude></includeonly>
+
</dt>
 +
<dd>gives...</dd>
 +
<dd style="border:2px solid teal; border-radius:1em; overflow:auto;">
 +
{{{{<includeonly>subst:</includeonly>#titleparts:{{<includeonly>subst:</includeonly>PAGENAME}}|1}}|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}
 +
</dd>
 +
 
 +
</dl></dd>
 +
<!-- /end: For a vertical sample output -->
 +
 
 +
== <dt>See also</dt> ==<!-- delete if N/A -->
 +
<dd>
 +
*{{t|<!-- Some other template's name -->}}<!-- delete if N/A -->
 +
*[[<!-- Some other related page -->]]<!-- delete if N/A -->
 +
</dd>
 +
 
 +
</dl>

Latest revision as of 18:53, 10 May 2016

Description

This template is used to do something.

Dependencies

  • Uses (some CSS, JS, file, or other template).
  • Uses for this documentation:
    • {{SPW}} = Wikia specific to link back to original.
    • {{t}} = To show clickable template mentions.
    • {{para}} = To show parameter usage.
    • {{-}} and {{Lorem ipsum}} = To format the output of the samples.

Syntax

Type {{Documentation|param1|namedparam=}} somewhere.

Parameters

  • Recommended | Required | Optional: |namedparameter=
    Your explanation here.
    Default: |namedparameter=value

Sample output

Sample output
Code Output

{{Documentation|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}

gives...
Template documentation (for the above template, sometimes hidden or invisible) [create]
This template doesn't have any documentation yet! Help out by writing some. There may also be documentation on Wikia Templates which can be copied.
This template currently doesn't have any documentation; you can create it if you know how the template is used. (What is this?)
If you're done making changes, please refresh the text.
Please add categories and interwikis to foo1. (View all subpages of this page.)

Sample:1

{{Documentation|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}
gives...

Template documentation (for the above template, sometimes hidden or invisible) [create]
This template doesn't have any documentation yet! Help out by writing some. There may also be documentation on Wikia Templates which can be copied.
This template currently doesn't have any documentation; you can create it if you know how the template is used. (What is this?)
If you're done making changes, please refresh the text.
Please add categories and interwikis to foo1. (View all subpages of this page.)

See also

  • {{[[Template:|]]}}
  • [[]]

Retrieved from "http://wiki.projectgorgon.com/w/index.php?title=Template:Documentation/preload&oldid=15335"