Template:Material categorization

Da Guild Wars - Wiki italiano non ufficiale.
Versione del 4 gen 2024 alle 18:15 di MusPuiDiTe (discussione | contributi) (Creata pagina con "<onlyinclude>{{#if: {{{1|}}} | {{ #if: {{#pos: {{lc:{{{1}}}}} | {{.(}}oss }} | Categoria:Contiene osso}}{{ #if: {{#pos: {{lc:{{{1}}}}} | {{.(}}frammento di chitina }}{{#pos: {{lc:{{{1|}}}}} | {{.(}}frammenti di chitina }} | Categoria:Contiene chitina}}{{ #if: {{#pos: {{lc:{{{1}}}}} | {{.(}}rotolo di tessuto grezzo}}{{#pos: {{lc:{{{1|}}}}} | {{.(}}rotoli di tessuto grezzo}} | Categoria:Contiene tessuto}}{{ #if: {{#pos: {{lc:{{{1}}}}} | {{.(}}mucchio di polvere...")
(diff) ← Versione meno recente | Versione attuale (diff) | Versione più recente → (diff)
Jump to navigation Jump to search


Purpose

This template is used to easily categorize articles into any fitting categories in Category:Contains common crafting material and Category:Contains rare crafting material.

Usage

This template is to be inserted into the templates {{Item infobox}} and {{Weapon infobox}}, it is not to be added directly to the article.

{{Material categorization|materials}}

Parameters

unnamed parameter 1
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.

Examples

These examples merely show links of the categories that would be found, the actual template categorises instead.

{{Material categorization|[[Deldrimor Steel Ingot]]s<br />[[Elonian Leather square]]s}}
Category:Contains deldrimor steel Category:Contains elonian leather


{{Material categorization|[[Steel Ingot]]s<br />[[Leather square]]s}}
Category:Contains steel Category:Contains leather


{{Material categorization| }}
Does not categorise.

Notes

  • If no links are found in a material text, the page goes to Category:Material list without links for review.
  • 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.