Template:Variant main/doc: Difference between revisions

(Created page with "{{Documentation}} The '''Variant main''' template is used on pages that list common properties among variants of a certain category. ==Usage== <pre> {{Variant main|type}} </pre> where <code>type</code> is a freely filled parameter pertaining to the type of the category (i.e. item, monster, skill node, etc.) ==Example== <pre> {{Variant main|item}} </pre> produces {{Variant main|item}}")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Documentation}}
{{Documentation}}


The '''Variant main''' template is used on pages that list common properties among [[variant]]s of a certain category.
The '''Variant main''' template is used on pages that list common properties among [[variant]]s of a certain category, and adds [[:Category:Variant categories]] to the page.


==Usage==
==Usage==
<pre>
<pre>
{{Variant main|type}}
{{Variant main|type|type2}}
</pre>
</pre>
where <code>type</code> is a freely filled parameter pertaining to the type of the category (i.e. item, monster, skill node, etc.)
where <code>type</code> and <code>type2</code> are freely filled parameter pertaining to the type of the category (i.e. item, monster, skill node, etc.). Type 2 is optional.


==Example==
==Example==
===Single type===
<pre>
<pre>
{{Variant main|item}}
{{Variant main|item}}
Line 15: Line 16:
produces
produces
{{Variant main|item}}
{{Variant main|item}}

===Item and related skill node===
<pre>
{{Variant main|item|skill node}}
</pre>
produces
{{Variant main|item|skill node}}

Latest revision as of 09:01, 1 November 2024

This is a documentation subpage for Template:Variant main.
It contains usage information, categories, and other content that is not part of the original template page.

The Variant main template is used on pages that list common properties among variants of a certain category, and adds Category:Variant categories to the page.

Usage

{{Variant main|type|type2}}

where type and type2 are freely filled parameter pertaining to the type of the category (i.e. item, monster, skill node, etc.). Type 2 is optional.

Example

Single type

{{Variant main|item}}

produces

Item and related skill node

{{Variant main|item|skill node}}

produces