Template:Term Link

From Dungeons and Dragons Wiki
Jump to: navigation, search
Template documentation (for the above template, sometimes hidden or invisible)

A helper template, intended to be used by other templates in order to avoid edition dependent redirect pages of shared terminology.

Usage

Template:Strength

{{Term Link|Strength}}

Template:Str

{{Term Link|Strength|Str}}

Functionality

Provides a link to the SRD page or 4e Index entry, based on the calling page's location:

  • SRD pages or pages with a 3 as the leading character in the identifier are pointed to the SRD page of the 1st passed parameter.
    • NOTE: Does not check if SRD page exists before linking. If a template is called to link to a missing SRD page, just create the necessary SRD redirect. SRD redirects are much better than main namespace redirects in this instance.
  • Pages with a 4 as the leading character in the identifier are pointed to the anchor on the 4e index of the 1st passed parameter.
    • NOTE: Missing anchors simply point to the top of the page. These will be harder to identify than missing SRD pages.

The second passed parameter is used as an optional display text for the link, as seen in the second example above.


Visit Template:Term Link/doc to edit this text! (How does this work?)