Difference between revisions of "Template:Documentation/preload"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Moving category logic to top)
m (Making all sections a definition list. Enhanced section syntax with deps)
Line 5: Line 5:
 
[[Category:Template documentation|{{PAGENAME}}]]
 
[[Category:Template documentation|{{PAGENAME}}]]
 
<<noinclude/>/noinclude></includeonly>
 
<<noinclude/>/noinclude></includeonly>
== Description ==
+
<dl>
:This template is used to do something.
+
== <dt>Description</dt> ==
== Dependencies ==<!-- delete if N/A -->
+
<dd>This template is used to do something.</dd>
:* Uses (some CSS, JS, file, or other template).<!-- delete if N/A -->
+
== <dt>Dependencies</dt> ==<!-- delete if N/A -->
 
+
<dd>
== Syntax ==
+
*Uses (some CSS, JS, file, or other template).<!-- delete if N/A -->
: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>
== Sample output ==
+
== <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> ==
 +
<dd>
 
{| class="wikitable"
 
{| class="wikitable"
 
|+ Sample output
 
|+ Sample output
Line 24: Line 34:
 
{{{{<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 -->}}
 
|}
 
|}
 +
</dd>
 +
== <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>
  
== See also ==<!-- delete if N/A -->
+
</dl>
:* [[Template:<!-- Some other template -->]]<!-- delete if N/A -->
 
:* [[<!-- Some other related page -->]]<!-- delete if N/A -->
 

Revision as of 05:04, 1 May 2016

Description

This template is used to do something.

Dependencies

  • Uses (some CSS, JS, file, or other template).

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.)

See also

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