Template:Preload/doc: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
Trimoon (talk | contribs)
Initial setup.
 
Trimoon (talk | contribs)
m Added Abilities
 
(7 intermediate revisions by the same user not shown)
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
== Usage ==
:Type {{t|Preload|param1<!-- delete if N/A -->|namedparam&#61;<!-- delete if N/A -->|style=code}} somewhere.
The generated pages are tobe included inside the main article page.
;Sample output
<dl>
{| class="wikitable"
<dt>On the main article page use:</dt>
|+ Sample output
<dd><pre style="overflow:auto;">
! Code !! Output
<!-- transclusing tables for easier edits/updates -->
|-
{{:{{msg:BASEPAGENAME}}/Items}}
| style="background-color:silver;" |
{{:{{msg:BASEPAGENAME}}/Abilities}}
<syntaxhighlight lang="c" line="on">
{{:{{msg:BASEPAGENAME}}/Recipes}}
Preload|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}
{{:{{msg:BASEPAGENAME}}/Level Up Rewards}}
</syntaxhighlight>
</pre></dd>
:<code><nowiki>{{</nowiki>Preload<nowiki>|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}</nowiki></code> gives...
<dt>To generate the page to be used above:</dt>
| style="background-color:silver;" |
<dd>After using the code(s) above:<br/>
{{Preload|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}
#Follow the generated link on the article page.
|}
#Use something similar to <code>{{((}}subst:Preload/Recipe pages{{))}}</code>, or any other listed below for specific goals, on the respective sub-page and <b><u>save it</u></b> !
;See also:<!-- delete if N/A -->
#Repeat steps 1-2 as many times as needed for the respective sub-page(s).
:* [[Template:<!-- Some other template -->]]<!-- delete if N/A -->
#Now you are free to add specific info on the respective sub-page(s).
:* [[<!-- Some other related page -->]]<!-- delete if N/A -->
</dd>
</dl>
 
== List for specific goals ==
*{{t|Preload/Item pages|type=code}}
*:To pre-populate new <i>/Items</i> pages.
*{{t|Preload/Recipe pages|type=code}}
*:To pre-populate new <i>/Recipes</i> pages.
*{{t|Preload/Level Up Reward pages|type=code}}
*:To pre-populate new <i>/Level Up Rewards</i> pages.
*{{t|Preload/Ability pages|type=code}}
*:To pre-populate new <i>/Abilities</i> pages.
<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>

Latest revision as of 16:58, 9 May 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.

Usage

The generated pages are tobe included inside the main article page.

On the main article page use:
<!-- transclusing tables for easier edits/updates -->
{{:{{msg:BASEPAGENAME}}/Items}}
{{:{{msg:BASEPAGENAME}}/Abilities}}
{{:{{msg:BASEPAGENAME}}/Recipes}}
{{:{{msg:BASEPAGENAME}}/Level Up Rewards}}
To generate the page to be used above:
After using the code(s) above:
  1. Follow the generated link on the article page.
  2. Use something similar to {{subst:Preload/Recipe pages}}, or any other listed below for specific goals, on the respective sub-page and save it !
  3. Repeat steps 1-2 as many times as needed for the respective sub-page(s).
  4. Now you are free to add specific info on the respective sub-page(s).

List for specific goals