Template:Preload/doc: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
Trimoon (talk | contribs)
Initial setup.
 
Trimoon (talk | contribs)
m Initial doc.
Line 1: Line 1:
;Description
;Description
:This template is used to do something.
:This template does not do anything it self, it's just a collection of 'preload' templates to be used when creating new pages.
;Dependencies:<!-- delete if N/A -->
:They will most likely be used either by a <b><i>&preload=</i></b> url parameter or a <b><i>[[mw:help:subst#Usage|subst]]:</i></b> parser function.
:* Uses (some CSS, JS, file, or other template).<!-- delete if N/A -->
 
;Syntax
;List for specific goals:
:Type {{t|Preload|param1<!-- delete if N/A -->|namedparam&#61;<!-- delete if N/A -->|style=code}} somewhere.
*{{t|Preload/Item pages|type=code}}
;Sample output
*:To pre-populate new <i>Item pages</i>.
{| class="wikitable"
|+ Sample output
! Code !! Output
|-
| style="background-color:silver;" |
<syntaxhighlight lang="c" line="on">
Preload|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}
</syntaxhighlight>
:<code><nowiki>{{</nowiki>Preload<nowiki>|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}</nowiki></code> gives...
| style="background-color:silver;" |
{{Preload|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}
|}
;See also:<!-- delete if N/A -->
:* [[Template:<!-- Some other template -->]]<!-- delete if N/A -->
:* [[<!-- Some other related page -->]]<!-- delete if N/A -->
<includeonly>
<includeonly>
<!-- Categories/interwikis for the template itself -->
<!-- Categories/interwikis for the template itself -->
[[Category:Formatting templates]]
</includeonly><noinclude>
</includeonly><noinclude>
<!-- Categories/interwikis for this documentation itself -->
<!-- Categories/interwikis for this documentation itself -->
[[Category:Template documentation|{{PAGENAME}}]]
[[Category:Template documentation|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 08:25, 16 April 2016

Description
This template does not do anything it self, it's just a collection of 'preload' templates to be used when creating new pages.
They will most likely be used either by a &preload= url parameter or a subst: parser function.
List for specific goals