Link – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add more examples)
m (Text replacement - "{{Link|:Category:" to "{{Link|Category:")
 
Line 66: Line 66:
|result7= {{Link|setDir}}<br>{{Link|Arma Reforger:Getting Started}}<br>{{Link|Template:Messagebox}}<br>{{Link|Template:Messagebox|Messagebox Template}}<br>{{Link|Template:Messagebox#Usage}}<br>{{Link|Template:Messagebox#Usage|Messagebox template usage}}<br>{{Link|mailto:support@example.com|support e-mail}}
|result7= {{Link|setDir}}<br>{{Link|Arma Reforger:Getting Started}}<br>{{Link|Template:Messagebox}}<br>{{Link|Template:Messagebox|Messagebox Template}}<br>{{Link|Template:Messagebox#Usage}}<br>{{Link|Template:Messagebox#Usage|Messagebox template usage}}<br>{{Link|mailto:support@example.com|support e-mail}}


|example8= <nowiki>* {{Link|Category:Arma 3}}</nowiki><br><nowiki>* {{Link|:Category:Arma 3}}</nowiki><br><nowiki>* {{Link|link= Category:Arma 3}}</nowiki><br><nowiki>* {{Link|link= :Category:Arma 3}}</nowiki><br><nowiki>* {{Link|link= Category:Arma 3 |text=}}</nowiki><br><nowiki>* {{Link|link= :Category:Arma 3 |text=}}</nowiki><br><nowiki>* {{Link|link= Category:Arma 3 |text= A3's category}}</nowiki><br><nowiki>* {{Link|link= :Category:Arma 3 |text= A3's category}}</nowiki>
|example8= <nowiki>* {{Link|Category:Arma 3}}</nowiki><br><nowiki>* {{Link|Category:Arma 3}}</nowiki><br><nowiki>* {{Link|link= Category:Arma 3}}</nowiki><br><nowiki>* {{Link|link= :Category:Arma 3}}</nowiki><br><nowiki>* {{Link|link= Category:Arma 3 |text=}}</nowiki><br><nowiki>* {{Link|link= :Category:Arma 3 |text=}}</nowiki><br><nowiki>* {{Link|link= Category:Arma 3 |text= A3's category}}</nowiki><br><nowiki>* {{Link|link= :Category:Arma 3 |text= A3's category}}</nowiki>
|result8= <nowiki/>
|result8= <nowiki/>
* {{Link|Category:Arma 3}}
* {{Link|Category:Arma 3}}
* {{Link|:Category:Arma 3}}
* {{Link|Category:Arma 3}}
* {{Link|link= Category:Arma 3}}
* {{Link|link= Category:Arma 3}}
* {{Link|link= :Category:Arma 3}}
* {{Link|link= :Category:Arma 3}}

Latest revision as of 15:52, 16 October 2024

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://}}
{{Link|https://}}
{{Link|ftp://}}
{{Link|enfusion://}}
{{Link|mailto:}}

http://
https://
ftp://
[enfusion:// ]
mailto:

{{Link|https://ofp.gamepark.cz/index.php?showthis{{=}}2302}}
{{Link|link= https://ofp.gamepark.cz/index.php?showthis=2302}}
{{Link|https://www.arma3.com/}}
{{Link|https://www.arma3.com/|{{arma3}} website}}
ofpr.info link link courtesy of
OFP-Faguss.com

ofpr.info link link courtesy of
OFP-Faguss.com

[1]
Arma 3 website

{{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}}
{{Link|link= #Usage|text=}}
{{Link|link= #Usage|text= The Usage chapter}}

[[#|]]
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

{{Link|setDir}}
{{Link|Arma Reforger:Getting Started}}
{{Link|Template:Messagebox}}
{{Link|Template:Messagebox|Messagebox Template}}
{{Link|Template:Messagebox#Usage}}
{{Link|Template:Messagebox#Usage|Messagebox template usage}}
{{Link|mailto:support@example.com|support e-mail}}

setDir
Arma Reforger:Getting Started
Messagebox
Messagebox Template
Messagebox - Usage
Messagebox template usage
support e-mail
* {{Link|Category:Arma 3}}
* {{Link|Category:Arma 3}}
* {{Link|link= Category:Arma 3}}
* {{Link|link= :Category:Arma 3}}
* {{Link|link= Category:Arma 3 |text=}}
* {{Link|link= :Category:Arma 3 |text=}}
* {{Link|link= Category:Arma 3 |text= A3's category}}
* {{Link|link= :Category:Arma 3 |text= A3's category}}