This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

Template:Delink

From Heroes Wiki
Revision as of 21:34, 13 January 2008 by imported>MiamiVolts (test defaulting X precede character)
Jump to navigation Jump to 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>
}}

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).