Link – Template

From Bohemia Interactive Community
Revision as of 19:01, 27 May 2022 by Lou Montana (talk | contribs) (Template creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template combines {{ExternalLink}} and {{HashLink}} under one entrypoint. It also adds the page to the Link template usage error category on usage error.

This template is used on these pages.

Usage

{{Link|link|text}}

  • link: (possibly named parameter) the URL or the local link, hashed or not (Operation Flashpoint#Introduction)
  • text: (Optional, possibly named parameter) text to be displayed
Examples
Code Result
{{Link}} -no link provided-
{{Link|http://}} http://
{{Link|link= http://ofp.gamepark.cz/index.php?showthis=2302}} ofpr.info link link courtesy of
OFP-Faguss.com
{{Link|setDir}} setDir
{{Link|setDir#notes}} setDir - notes
{{Link|setDir#notes|setDir and nothing else}} setDir and nothing else