Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Help:Templates: Difference between revisions

Help page
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 26: Line 26:
| forum = The DB Forum Topic URL, example: [https://dreambot.org/forums/index.php?/topic/29148-g-fishing-add-on-auto-restock-integrated-muling-easy-setup-quickstart-supported/ {{{title|{{PAGENAME}}}}}]
| forum = The DB Forum Topic URL, example: [https://dreambot.org/forums/index.php?/topic/29148-g-fishing-add-on-auto-restock-integrated-muling-easy-setup-quickstart-supported/ {{{title|{{PAGENAME}}}}}]
| purchase = [https://dreambot.org/forums/index.php?/store/product/811-gaioaccountbuilder/ Monthly - Lifetime] for Scirpts with Monthly & Lifetime pages combined, or the following for scripts with two purchase pages for monthly and lifetime: [https://dreambot.org/forums/index.php?/store/product/740-gfishing/ Monthly] - [https://dreambot.org/forums/index.php?/store/product/739-gfishing-lifetime/ Lifetime]
| purchase = [https://dreambot.org/forums/index.php?/store/product/811-gaioaccountbuilder/ Monthly - Lifetime] for Scirpts with Monthly & Lifetime pages combined, or the following for scripts with two purchase pages for monthly and lifetime: [https://dreambot.org/forums/index.php?/store/product/740-gfishing/ Monthly] - [https://dreambot.org/forums/index.php?/store/product/739-gfishing-lifetime/ Lifetime]
| video1 =
| video2 = [https://www.youtube.com/watch?v=fCN5ZirTHwI Duo: Rags Low Level]
| video3 = [https://www.youtube.com/watch?v=hOwtrygBGU8 Duo: Severely Underleveled]
}}
}}
</pre>
</pre>


It's possible to define a title= if required, however if not defined, then it'll just use the page name, i.e GFishing. This means the icon would also be GFishing.png since it fetches the page name, or will be title.png.
[[GYama]] and [[GRevs]] have a modified version of this, to support the multi purchases of the different scripts. You can find them at [[Template:Yama-Infobox]] and [[Template:Revs-Infobox]]. The difference here is purchase is purchase1, purchase2, purchase3 etc.
 
It's possible to define a title= if required, however if not defined, then it'll just use the page name, i.e GFishing. This means the icon would also be GFishing.png since it fetches the page name, or will be title.png. An example can be found at [[GRevs]].


== Priority-LevelOffSet ==
== Priority-LevelOffSet ==
Line 51: Line 56:
{{PAGENAME}} is fetch the page name which will always be the skill name.
{{PAGENAME}} is fetch the page name which will always be the skill name.


== StandaloneToGAIO ==


== TargetLevel-TargetLevelOffset ==
[[Template:StandaloneToGAIO]]
 
[[Template:TargetLevel-TargetLevelOffset]]
 
This is being removed, and instead skill templates will use ifeq statements for gaio=no to display or gaio=yes to hide.


=== Usage ===
=== Usage ===


This template is used on [[Skilling]] pages under the GSkill Header and before the GSkill template. An example can be found at [[GFishing]].
This template is used in [[Skilling]] template pages under the First Header. It uses ifeq statement to show if gaio=no. An example can be found at [[Template:GFishing]] of the text and template usage, and [[GFishing]] for the gaio=no part.


=== Documentation ===
=== Documentation ===


To use this template, include the following code on a page:
To use this template, include the following code on a page:
The following example is used on the [[Template:GFishing]] page.


<pre>
<pre>
{{Template:TargetLevel-TargetLevelOffset}}
{{Template:StandaloneToGAIO|skill=XXX}}
</pre>
</pre>


Replace XXX with the skill this template is being used for, i.e Fishing


== StandaloneToGAIO ==
== Back to AIO ==


[[Template:StandaloneToGAIO]]
[[Template:BacktoAIO]]


=== Usage ===
=== Usage ===


This template is used on standalone [[Skilling]] pages under the First Header and before the Targetlevel-TargetLevelOffset template. An example can be found at [[GFishing]].
This template is used in [[GAIO]] pages at the end to take the user back to the GAIO page. For example, [[Fishing]].


=== Documentation ===
=== Documentation ===


To use this template, include the following code on a page:
To use this template, include the following code on a page: The following example is used on the [[Template:GFishing]] page.
 
<pre>
{{Template:BacktoAIO}}
</pre>


The following example is used on the [[GFishing]] page.
On pages that contain a header that is auto collapsed like [[Pest_Control]] in it's case, Equipment. Having the above at the end of the page would hide it in the collapsed header. So it is placed there if somebody is at the end of the Equipment header, but it's also placed in the [[Template:GPestControl]] as an ifeq statement to show before the Equipment Header. It's a small QOL for readers.


<pre>
<pre>
{{Template:StandaloneToGAIO|skill=XXX}}
{{#ifeq:{{{gaio|yes}}}|yes|{{Template:BacktoAIO}}}}
</pre>
</pre>
Replace XXX with the skill this template is being used for, i.e Fishing