The wiki upgrade is complete. If you notice anything that seems to be functioning incorrectly, please file a bug report.
|
[dismiss] |
User:Tub/Sandbox/Material categorization
From Guild Wars Wiki
Contents |
[edit] Purpose
This template is used to easily categorize articles into any fitting categories in Category:Drops common crafting material, Category:Drops rare crafting material, Category:Contains common crafting material and Category:Contains rare crafting material.
[edit] Usage
{{Material categorization|categoryprefix|materials}}.
[edit] Parameters
- unnamed parameter 1
- The prefix for the category name, either "Drops" or "Contains".
- unnamed parameter 2
- A text containing links to material pages. This can be as chaotic and free-form as some data entered on {{Item infobox}}, e.g. 4-5 [[Bolt of Cloth|Bolts of Cloth]]<br>4-5 [[Tanned Hide Square]]s
Due to ambiguity between Steel Ingot / Deldrimor Steel Ingot and Leather Square / Elonian Leather Square, a mere mention of the material is not enough, it needs to be linked.
[edit] Examples
- {{Material categorization|Drops|4-5 [[Bolt of Cloth|Bolts of Cloth]]<br>4-5 [[Tanned Hide Square]]s}} →
Category:Drops clothCategory:Drops hide
- {{Material categorization|Drops|4-5 Bolts of Cloth<br>4-5 Tanned Hide Squares}} →
Category:Material list without links
- {{Material categorization|Drops| }} →
- {{Material categorization|Contains|[[Deldrimor Steel Ingot]]s<br />[[Elonian Leather square]]s}} →
Category:Contains deldrimor steelCategory:Contains elonian leather
- {{Material categorization|Contains|[[Steel Ingot]]s<br />[[Leather square]]s}} →
Category:Contains leatherCategory:Contains steel
[edit] Notes
- This template is a clutch, born out of necessity due to shortsighted implementations of {{Item infobox}} and others. Don't even think about adding something similar to GW2W, design proper templates from the get-go instead.
- If no links are found in a material text, the page goes to Material list without links for review.