Template:Ft/doc



The template ft displays the level of a trap and its effect – if triggered – in superscripted and italicized style behind the word its placed after, while simultaneously linking to the Find Traps article and the one with the trap's effect. The latter is often similar to a regular article for e.g. some spell, though disambiguated by the "(trap)" suffix.

This template uses named parameters. It is possible to omit either the trap difficulty or its effect, and only the respectively other will be displayed.

For now (again), only one of the two trap difficulties is used. Hence the parameter is named generally "dif". The template currently doesn't distinguish between the mechanical correct "Trap detection -" and "Trap removal difficulty".
 * When examining a trapped container or a floor trap with Near Infinity, the higher of these two values has to be used by this template, as long as not both difficulties are implemented.

The "trap" parameter refers to the "Trap script" field in Near Infinity, found a few lines below the difficulties.

Usage
Type, following any "trapped" note or mentioned container/door/floor, where   should be replaced by the higher of the two trap difficulties and   by the given effect in the script, often a variation of a standard spell (use copy+paste on the effect's name, e.g. "Agannazar's Scorcher" – the template cares about the correct linking).


 * Examples


 * results in

[…], hidden in the wall behind a trap […]

[…], hidden in the wall behind a trap […]

[…], hidden in the wall behind a trap […]