Link – Template

From Bohemia Interactive Community
Revision as of 16:37, 7 March 2023 by Lou Montana (talk | contribs) (Add Link/Internal usage)
Jump to navigation Jump to search

This template combines {{Link/External}} and {{Link/Internal}} 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}}
{{Link|setDir#notes}}
{{Link|setDir#notes|setDir and nothing else}}

setDir
setDir - notes
setDir and nothing else

{{Link|#}}
{{Link|#Usage}}
{{Link|#Usage|The Usage chapter}}

[[#|]]
Usage
The Usage chapter

{{Link|Arma Reforger:Getting Started}}
{{Link|Arma Reforger:Getting Started|Test}}
{{Link|Arma Reforger:Getting Started#Play in Single Player}}
{{Link|Arma Reforger:Getting Started#Play in Single Player|Play in Single Player}}

Arma Reforger:Getting Started
Test
Arma Reforger:Getting Started - Play in Single Player
Play in Single Player