Template:dNetHack artifact
| {{{{{color}}}|{{{glyph}}}}} DNetHack artifact (No tile) | |
|---|---|
| Base item | [[{{{base}}}]] |
| Appearance | (same as base item) |
| Affiliation | {{{affiliation}}} |
| Generation | must be gifted |
| Wishable? | no |
| Properties | (see below) |
| When carried | (none) |
| When used | (none) |
| When invoked | (none) |
| Base size | (base item standard) |
| Base price | {{{cost}}} zm |
| Weight | {{{weight}}} |
| Base material | [[{{{material}}}]] |
This template is designed for use with articles that cover artifacts in dNetHack, notdNetHack and notnotdNetHack, and should be called as follows:
{{dNetHack artifact
|color=red
|glyph=_
|tile=[[Image:Iron chain.png]]
|name=Wrath of the Flabberghast
|base=wand of nothing
|appearance=writhing red-and-pitch-black wand
|affiliation=<ul><li>[[unaligned]]</li><li>[[intelligent artifacts|intelligent]]</li></ul>
|generated=<ul><li>[[crowning]] only</li></ul>
|smalldmg=1d2 '''+6d7''' '''x2'''
|largedmg=1d2 '''+6d7''' '''x2'''
|dmgtype=slashing
|skill=whip
|skill2=flail
|skill3=morning star
|attr=dexterity
|used=applied
|properties=<ul><li>sets [[luck]] to -13 upon generation</li></ul>
|whencarried=<ul><li>[[conflict]]</li><li>causes banning from [[shop]]s</li></ul>
|whenwielded=<ul><li>[[bloodthirsty]]</li></ul>
|whenused=<ul><li>attacks all surrounding monsters</li></ul>
|wheninvoked=<ul><li>[[aggravate monster]]</li><li>[[cause fear]]</li></ul>
|size=gigantic
|cost=9001
|weight=20
|material=flesh
}}
While this template is intended to be for artifacts that are not artifact weapons, many artifacts in these variants have applicable damage and to-hit bonuses due to their base item types being armor or jewelry for body parts that the hero can use in attacks—this covers helms for headbutt attacks; rings and gloves for unarmed combat (e.g. bare hands and martial arts), and/or for similar attacks such as claw attacks; and boots for kick attacks. Additionally, some artifacts are capable of having their base items changed, either through their own innate abilities or by a hero performing a specific action, e.g. naming an artifact or reshaping it at a forge. With this in mind, the template for artifact weapons in these variants is located at {{dNetHack artifact weapon}}.
The fields used in the template are described as follows:
| Field | Description | Required? |
|---|---|---|
| color | name of the color template to use for the glyph | required |
| glyph | character representing this item (check the base item) | required |
| tile | tile representing this item | defaults to [[Image:{{{base}}}.png]]; shows (No tile) if the filename is not valid |
| name | name of the artifact | defaults to {{PAGENAME}} |
| base | the base item for this artifact | required |
| appearance | any special unidentified appearance the artifact has | defaults to (same as base item) |
| affiliation | the alignment, role, race, and whether it is intelligent | required |
| generation | the means by which the artifact can be found | defaults to "must be gifted" |
| wishable | can the artifact be wished for | defaults to "no" |
| Damage vs. small | damage against small monsters when used as a weapon | not displayed if unused |
| Damage vs. large | damage against large monsters when used as a weapon | not displayed if unused |
| (Bonus) versus | specific monsters that the damage bonuses target, if any | not displayed if unused |
| Damage type | form of damage dealt when used as a weapon | not displayed if unused |
| To-hit bonus | added bonus to hit chances | not displayed if unused; should be wrapped in <nowiki> tags |
| Primary skill | first skill utilized by artifact as a weapon | not displayed if unused |
| Secondary skill | secondary skill that can be utilized by the artifact | not displayed if unused |
| Tertiary skill | tertiary skill that can be utilized by the artifact | not displayed if unused |
| Primary attribute | attribute that provides damage bonuses to the artifact when attacking | not displayed if unused |
| Second attribute | second attribute that can provide damage bonuses to the artifact when attacking | not displayed if unused |
| Tertiary attribute | third attribute that can provide damage bonuses to the artifact when attacking | not displayed if unused |
| properties | traits of the artifact that don't fit into the below sections | defaults to (see below) |
| whencarried | effect when carried | defaults to (none) |
| whenwielded | effect while wielded | not displayed if unused |
| used | displayed instead of "used" in When used | defaults to "used" |
| whenused | effect when applied/worn/whatever | defaults to (none) |
| wheninvoked | effect when invoked | defaults to (none) |
| size | artifact's size, which affects how many hands a hero or monster of a given size must wield it with |
defaults to (base item standard) |
| cost | base cost of this artifact | required |
| weight | weight of this artifact; to remove the "(+10/positive enchant)" note (e.g. for stones), add a noenchant=yes parameter |
required |
| material | the material of the artifact | required |