Link – Template
Lou Montana (talk | contribs) m (Add Link/Internal usage) |
Lou Montana (talk | contribs) m (Add example) |
||
Line 14: | Line 14: | ||
|param2= text | |param2= text | ||
|descr2= (Optional, possibly named parameter) text to be displayed | |descr2= (Optional, possibly named parameter) text to be displayed | ||
|example1= <nowiki>{{Link}}</nowiki> | |example1= <nowiki>{{Link}}</nowiki> | ||
|result1= {{Link}} | |result1= {{Link}} | ||
|example2= <nowiki>{{Link|http://}}</nowiki> | |example2= <nowiki>{{Link|http://}}</nowiki> | ||
|result2= {{Link|http://}} | |result2= {{Link|http://}} | ||
|example3= <nowiki>{{Link|link= http://ofp.gamepark.cz/index.php?showthis=2302}}</nowiki> | |example3= <nowiki>{{Link|link= http://ofp.gamepark.cz/index.php?showthis=2302}}</nowiki> | ||
|result3= {{Link|link= http://ofp.gamepark.cz/index.php?showthis=2302}} | |result3= {{Link|link= http://ofp.gamepark.cz/index.php?showthis=2302}} | ||
|example4= <nowiki/> | |example4= <nowiki/> | ||
<nowiki>{{Link|setDir}}</nowiki><br> | <nowiki>{{Link|setDir}}</nowiki><br> | ||
Line 25: | Line 29: | ||
<nowiki>{{Link|setDir#notes|setDir and nothing else}}</nowiki> | <nowiki>{{Link|setDir#notes|setDir and nothing else}}</nowiki> | ||
|result4= {{Link|setDir}}<br>{{Link|setDir#notes}}<br>{{Link|setDir#notes|setDir and nothing else}} | |result4= {{Link|setDir}}<br>{{Link|setDir#notes}}<br>{{Link|setDir#notes|setDir and nothing else}} | ||
|example5= <nowiki/> | |example5= <nowiki/> | ||
<nowiki>{{Link|#}}</nowiki><br> | <nowiki>{{Link|#}}</nowiki><br> | ||
Line 30: | Line 35: | ||
<nowiki>{{Link|#Usage|The Usage chapter}}</nowiki> | <nowiki>{{Link|#Usage|The Usage chapter}}</nowiki> | ||
|result5= {{Link|#}}<br>{{Link|#Usage}}<br>{{Link|#Usage|The Usage chapter}} | |result5= {{Link|#}}<br>{{Link|#Usage}}<br>{{Link|#Usage|The Usage chapter}} | ||
|example6= <nowiki/> | |example6= <nowiki/> | ||
<nowiki>{{Link|Arma Reforger:Getting Started}}</nowiki><br> | <nowiki>{{Link|Arma Reforger:Getting Started}}</nowiki><br> | ||
Line 36: | Line 42: | ||
<nowiki>{{Link|Arma Reforger:Getting Started#Play in Single Player|Play in Single Player}}</nowiki> | <nowiki>{{Link|Arma Reforger:Getting Started#Play in Single Player|Play in Single Player}}</nowiki> | ||
|result6= {{Link|Arma Reforger:Getting Started}}<br>{{Link|Arma Reforger:Getting Started|Test}}<br>{{Link|Arma Reforger:Getting Started#Play in Single Player}}<br>{{Link|Arma Reforger:Getting Started#Play in Single Player|Play in Single Player}} | |result6= {{Link|Arma Reforger:Getting Started}}<br>{{Link|Arma Reforger:Getting Started|Test}}<br>{{Link|Arma Reforger:Getting Started#Play in Single Player}}<br>{{Link|Arma Reforger:Getting Started#Play in Single Player|Play in Single Player}} | ||
|example7= <nowiki/> | |||
<nowiki>{{Link|setDir}}</nowiki><br> | |||
<nowiki>{{Link|Arma Reforger:Getting Started}}</nowiki><br> | |||
<nowiki>{{Link|Template:Messagebox}}</nowiki><br> | |||
<nowiki>{{Link|Template:Messagebox|Messagebox Template}}</nowiki><br> | |||
<nowiki>{{Link|Template:Messagebox#Usage}}</nowiki><br> | |||
<nowiki>{{Link|Template:Messagebox#Usage|Messagebox template usage}}</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}} | |||
}}</noinclude> | }}</noinclude> |
Revision as of 01:56, 4 March 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|link= http://ofp.gamepark.cz/index.php?showthis=2302}} | ofpr.info link link courtesy of OFP-Faguss.com |
{{Link|setDir}} |
setDir setDir - notes setDir and nothing else |
{{Link|#}} |
[[#|]] 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 |