Open main menu

Project: Gorgon Wiki β

Changes

Template:Preload/doc

646 bytes added, 12:58, 9 May 2016
m
Added Abilities
;== Description==:This template is does not do anything it self, it's just a collection of 'preload' templates to be used to do somethingwhen creating new pages.;Dependencies:They will most likely be used either by a <b><i>&preload=</i><!-- delete if N/A --b>:* Uses (some CSS, JS, file, url parameter or other template).a <b><!-- delete if N/A --i>;Syntax[[mw:help:Type {{tsubst#Usage|Preload|param1subst]]:<!-- delete if N/A --i>|namedparam&#61;<!-- delete if N/A --b>|style=code}} somewhereparser function.;Sample output{| class="wikitable"= Usage ==|+ Sample outputThe generated pages are tobe included inside the main article page.! Code !! Output<dl>|-<dt>On the main article page use:</dt>| <dd><pre style="background-coloroverflow:silverauto;" |<syntaxhighlight lang="c" line="on">Preload|foo1<!-- delete if Ntransclusing tables for easier edits/A updates -->|foo2=<!-- delete if N{{:{{msg:BASEPAGENAME}}/Items}}{{:{{msg:BASEPAGENAME}}/Abilities}}{{:{{msg:BASEPAGENAME}}/Recipes}}{{:{{msg:BASEPAGENAME}}/A -->Level Up Rewards}}</syntaxhighlightpre></dd><dt>To generate the page to be used above:</dt><dd>After using the code(s) above:<br/>#Follow the generated link on the article page.#Use something similar to <nowikicode>{{((}}subst:Preload/Recipe pages{{))}}</nowikicode>, or any other listed below for specific goals, on the respective sub-page and <b>Preload<nowikiu>|foo1save it<!-- delete if N/A --u>|foo2=</b> !#Repeat steps 1-2 as many times as needed for the respective sub- delete if N/A page(s).#Now you are free to add specific info on the respective sub-->}}page(s).</nowikidd></codedl> gives...| style== List for specific goals =="background-color:silver;" |*{{t|Preload/Item pages|foo1type=code}}*:To pre-populate new <!-- delete if Ni>/A -->|foo2=Items<!-- delete if N/A --i>}}pages.*{{t|Preload/Recipe pages|type=code}};See also*:To pre-populate new <i>/Recipes<!-- delete if N/A --i>pages.*{{t|Preload/Level Up Reward pages|type=code}}:* [[Template:To pre-populate new <!-- Some other template --i>]]/Level Up Rewards<!-- delete if N/A --i>pages.*{{t|Preload/Ability pages|type=code}}*:* [[To pre-populate new <!-- Some other related page --i>]]/Abilities<!-- delete if N/A --i>pages.
<includeonly>
<!-- Categories/interwikis for the template itself -->
[[Category:Formatting templates]]
</includeonly><noinclude>
<!-- Categories/interwikis for this documentation itself -->
[[Category:Template documentation|{{PAGENAME}}]]
</noinclude>
1,071
edits