Template:Linkappend

From Tygron Support wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


This template can be used to quickly and consistently create links which refer to various topics, in which the topics are to be listed as a simple phrase but all links are appended, prepended, or otherwise consistently modified.

A good example is for a nav template such as Template:WaterOverlay result nav, in which a listing of result types is given, structurally appended with the term "result type" and "(Water Overlay)",

Examples:

{{linkappend|Result types|post= (Heat Overlay)}}
[[Result types (Heat Overlay)|Result types]]
{{linkappend|Attribute|pre=Select |post= (TQL)}}
[[Select Attribute (TQL)|Attribute]]
{{linkappend|Attribute|lc=true|pre=Select |post= (TQL)}}
[[select attribute (TQL)|Attribute]]

Parameters:

  • 1 Text to show ánd the main text of the link
  • pre: text to prefix to the link url
  • post: text to postfix to the link url
  • pred: text to prefix to the link text
  • postd: text to postfix to the link text
  • lc: if present, lowercase the main text of link url itself (not the pre/postfixes, and not the displayed text)
  • uc: if present, uppercase the main text of the displayed text (not the pre/postfixes, and not the main text of the link url)