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
 
(3 intermediate revisions by the same user not shown)
Line 56: 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