Do you have questions about the Slow Burn webisodes? Submit them here!

Template:Delink

From Heroes Wiki

Revision as of 00:07, 15 January 2008 by MiamiVolts (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Usage

{{Delink
  |linktext=<string with link in it>
  |nolink=<Optional character(s) to precede string if it didn't contain a link to begin with;
           default is the X character>
  |noprecede=<Optional; set true to trim off the first character>
}}

This template returns the string inside a link preceded by [ or |; or the original string preceded by X or the specified "nolink" character(s), if not a link.

Notes

  • If the link destination is different from the shown text, only the shown text is returned.
  • The nolink option is useful to combine with an external sub call to trim whitespace. If a link is passed, the output will be preceded with the [ or | character depending on whether or not it is a piped link.
  • This template only delinks if the link occupies the entire string (beginning to end).
Heroes Merchandise