Link – Template
Lou Montana (talk | contribs) (Add mailto protocol support) |
Lou Montana (talk | contribs) m (Add more examples) |
||
Line 12: | Line 12: | ||
|param1= link | |param1= link | ||
|descr1= (possibly named parameter) the URL or the local link, hashed or not ({{hl|Operation Flashpoint#Introduction}}) | |descr1= (possibly named parameter) the URL or the local link, hashed or not ({{hl|Operation Flashpoint#Introduction}}) | ||
|param2= text | |param2= text | ||
|descr2= (Optional, possibly named parameter) text to be displayed | |descr2= (Optional, possibly named parameter) text to be displayed | ||
Line 18: | Line 19: | ||
|result1= {{Link}} | |result1= {{Link}} | ||
|example2= <nowiki>{{Link|http://}}</nowiki> | |example2= <nowiki/> | ||
|result2= {{Link|http://}} | <nowiki>{{Link|http://}}</nowiki><br> | ||
<nowiki>{{Link|https://}}</nowiki><br> | |||
<nowiki>{{Link|ftp://}}</nowiki><br> | |||
<nowiki>{{Link|enfusion://}}</nowiki><br> | |||
<nowiki>{{Link|mailto:}}</nowiki> | |||
|result2= <nowiki/> | |||
{{Link|http://}}<br> | |||
{{Link|https://}}<br> | |||
{{Link|ftp://}}<br> | |||
{{Link|enfusion://}}<br> | |||
{{Link|mailto:}} | |||
|example3= <nowiki>{{Link|link= | |example3= <nowiki>{{Link|https://ofp.gamepark.cz/index.php?showthis{{=}}2302}}</nowiki><br><nowiki>{{Link|link= https://ofp.gamepark.cz/index.php?showthis=2302}}</nowiki><br><nowiki>{{Link|https://www.arma3.com/}}</nowiki><br><nowiki>{{Link|https://www.arma3.com/|{{arma3}} website}}</nowiki> | ||
|result3= {{Link|link= | |result3= {{Link|https://ofp.gamepark.cz/index.php?showthis{{=}}2302}}<br>{{Link|link= https://ofp.gamepark.cz/index.php?showthis=2302}}<br>{{Link|https://www.arma3.com/}}<br>{{Link|https://www.arma3.com/|{{arma3}} website}} | ||
|example4= <nowiki/> | |example4= <nowiki/> | ||
Line 33: | Line 44: | ||
<nowiki>{{Link|#}}</nowiki><br> | <nowiki>{{Link|#}}</nowiki><br> | ||
<nowiki>{{Link|#Usage}}</nowiki><br> | <nowiki>{{Link|#Usage}}</nowiki><br> | ||
<nowiki>{{Link|#Usage|The Usage chapter}}</nowiki> | <nowiki>{{Link|#Usage|The Usage chapter}}</nowiki><br> | ||
|result5= {{Link|#}}<br>{{Link|#Usage}}<br>{{Link|#Usage|The Usage chapter}} | <nowiki>{{Link|link= #Usage|text=}}</nowiki><br> | ||
<nowiki>{{Link|link= #Usage|text= The Usage chapter}}</nowiki> | |||
|result5= {{Link|#}}<br>{{Link|#Usage}}<br>{{Link|#Usage|The Usage chapter}}<br>{{Link|link= #Usage|text=}}<br>{{Link|link= #Usage|text= The Usage chapter}} | |||
|example6= <nowiki/> | |example6= <nowiki/> | ||
Line 52: | Line 65: | ||
<nowiki>{{Link|mailto:support@example.com|support e-mail}}</nowiki> | <nowiki>{{Link|mailto:support@example.com|support e-mail}}</nowiki> | ||
|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> | |||
|result8= <nowiki/> | |||
* {{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}} | |||
}}</noinclude> | }}</noinclude> |
Revision as of 14:49, 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
Code | Result |
---|---|
{{Link}} | -no link provided- |
{{Link|http://}} |
http:// |
{{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}} |
setDir setDir - notes setDir and nothing else |
{{Link|#}} |
[[#|]] Usage The Usage chapter Usage The Usage chapter |
{{Link|Arma Reforger:Getting Started}} |
Arma Reforger:Getting Started Test Arma Reforger:Getting Started - Play in Single Player Play in Single Player |
{{Link|setDir}} |
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}} |