Link – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (HashLink → Link/Hash) |
Lou Montana (talk | contribs) m (Add Link/Internal usage) |
||
Line 2: | Line 2: | ||
| {{#if:{{#pos:{{{link|{{{1|}}}}}}|<nowiki/>://}} | | {{#if:{{#pos:{{{link|{{{1|}}}}}}|<nowiki/>://}} | ||
| {{Link/External|link= {{{link|{{{1}}}}}}|text= {{{text|{{{2|}}}}}}}} | | {{Link/External|link= {{{link|{{{1}}}}}}|text= {{{text|{{{2|}}}}}}}} | ||
| {{Link/Internal|link= {{{link|{{{1}}}}}}|text= {{{text|{{{2|}}}}}}}} | |||
}} | }} | ||
| -no link provided-{{TemplateCase||[[Category:Link template usage error]]}} | | -no link provided-{{TemplateCase||[[Category:Link template usage error]]}} | ||
}}</includeonly><noinclude>{{Doc/Template | }}</includeonly><noinclude>{{Doc/Template | ||
|descr= This template combines {{Template|Link/External}} and {{Template|Link/ | |descr= This template combines {{Template|Link/External}} and {{Template|Link/Internal}} under one entrypoint. | ||
It also adds the page to the [[:Category:Link template usage error|Link template usage error]] category on usage error. | It also adds the page to the [[:Category:Link template usage error|Link template usage error]] category on usage error. | ||
Revision as of 15:37, 7 March 2023
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 |