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
 
(13 intermediate revisions by the same user not shown)
Line 21: Line 21:
<pre>
<pre>
{{Template:Script_Infobox
{{Template:Script_Infobox
| icon= GFishing.png
| icon= {{{title|{{PAGENAME}}}}}.png
| type = [[Free, Premium or Instanced]]
| type = [[Free, Premium or Instanced]]
| category = [[GAIO, PVM, Wildy, Skilling, Minigames, Miscellaneous]]
| category = [[GAIO, PVM, Wildy, Skilling, Minigames, Miscellaneous]]
| 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/ GFishing]
| 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>
[[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 44: Line 51:


<pre>
<pre>
{{Template:Priority-LevelOffSet|skill=XXX}}
{{Template:Priority-LevelOffSet|skill={{PAGENAME}}}}
</pre>
 
{{PAGENAME}} is fetch the page name which will always be the skill name.
 
== StandaloneToGAIO ==
 
[[Template:StandaloneToGAIO]]
 
=== Usage ===
 
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 ===
 
To use this template, include the following code on a page:
 
The following example is used on the [[Template:GFishing]] page.
 
<pre>
{{Template:StandaloneToGAIO|skill=XXX}}
</pre>
</pre>


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


== Back to AIO ==


== Template:TargetLevel_TargetLevelOffset ==
[[Template:BacktoAIO]]
 
[[Template:TargetLevel_TargetLevelOffset]]


=== 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 [[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>
 
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:TargetLevel-TargetLevelOffset}}
{{#ifeq:{{{gaio|yes}}}|yes|{{Template:BacktoAIO}}}}
</pre>
</pre>