Link/External – Template
Lou Montana (talk | contribs) m (Fix Wikipedia system) |
Lou Montana (talk | contribs) m (Fix examples) |
||
Line 42: | Line 42: | ||
}} | }} | ||
}} | }} | ||
| -no | | -no link provided-{{TemplateCase||[[Category:Link template usage error]]}} | ||
}}</includeonly><noinclude>{{Doc/Template | }}</includeonly><noinclude>{{Doc/Template | ||
|descr= External link template allows external URLs filter/styliser depending on the domain name. | |descr= External link template allows external URLs filter/styliser depending on the domain name. | ||
Line 71: | Line 71: | ||
|param2= text= | |param2= text= | ||
|descr2= (Optional, named parameter) the link's text | |descr2= (Optional, named parameter) the link's text | ||
|example1= <nowiki>{{Link}}</nowiki> | |example1= <nowiki>{{Link/External}}</nowiki> | ||
|result1= {{Link}} | |result1= {{Link/External}} | ||
|example2= <nowiki>{{Link|link= https://www.bohemia.net}}</nowiki> | |example2= <nowiki>{{Link/External|link= https://www.bohemia.net}}</nowiki> | ||
|result2= {{Link|link= https://www.bohemia.net}} | |result2= {{Link/External|link= https://www.bohemia.net}} | ||
|example3= <nowiki>{{Link|text= | |example3= <nowiki>{{Link/External|text= {{Name|bi}} website}}</nowiki> | ||
|result3= {{Link|text= | |result3= {{Link/External|text= {{Name|bi}} website}} | ||
|example4= <nowiki>{{Link|link= https://www.bohemia.net|text= | |example4= <nowiki>{{Link/External|link= https://www.bohemia.net|text= {{Name|bi}} website}}</nowiki> | ||
|result4= {{Link|link= https://www.bohemia.net|text= | |result4= {{Link/External|link= https://www.bohemia.net|text= {{Name|bi}} website}} | ||
|example5= | |example5= | ||
<nowiki>* {{Link|link= https://www.armaholic.com}}</nowiki><br> | <nowiki>* {{Link/External|link= https://www.armaholic.com}}</nowiki><br> | ||
<nowiki>* {{Link|link= https://www.armedassault.com}}</nowiki><br> | <nowiki>* {{Link/External|link= https://www.armedassault.com}}</nowiki><br> | ||
<nowiki>* {{Link|link= https://dev-heaven.net}}</nowiki><br> | <nowiki>* {{Link/External|link= https://dev-heaven.net}}</nowiki><br> | ||
<nowiki>* {{Link|link= https://www.flashpoint1985.com}}</nowiki><br> | <nowiki>* {{Link/External|link= https://www.flashpoint1985.com}}</nowiki><br> | ||
<nowiki>* {{Link|link= https://pastebin.jonasscholz.de}}</nowiki> | <nowiki>* {{Link/External|link= https://pastebin.jonasscholz.de}}</nowiki> | ||
|result5= <nowiki/> | |result5= <nowiki/> | ||
* {{Link|link= https://www.armaholic.com}} | * {{Link/External|link= https://www.armaholic.com}} | ||
* {{Link|link= https://www.armedassault.com}} | * {{Link/External|link= https://www.armedassault.com}} | ||
* {{Link|link= https://dev-heaven.net}} | * {{Link/External|link= https://dev-heaven.net}} | ||
* {{Link|link= https://www.flashpoint1985.com}} | * {{Link/External|link= https://www.flashpoint1985.com}} | ||
* {{Link|link= https://pastebin.jonasscholz.de}} | * {{Link/External|link= https://pastebin.jonasscholz.de}} | ||
|example6= <nowiki>{{Link|link= https://www.armaholic.com/page.php?id=1|text= My {{arma1}} mod}}</nowiki> | |example6= <nowiki>{{Link/External|link= https://www.armaholic.com/page.php?id=1|text= My {{arma1}} mod}}</nowiki> | ||
|result6= {{Link|link= https://www.armaholic.com/page.php?id=1|text= My {{arma1}} mod}} | |result6= {{Link/External|link= https://www.armaholic.com/page.php?id=1|text= My {{arma1}} mod}} | ||
|example7= <nowiki>* {{Link|link= http://ofp.gamepark.cz/index.php?showthis=2302}}</nowiki><br> | |example7= <nowiki>* {{Link/External|link= http://ofp.gamepark.cz/index.php?showthis=2302}}</nowiki><br> | ||
<nowiki>* {{Link|link= http://ofp.gamepark.cz/index.php?showthis=2302|text= Screen shot of the week 21}}</nowiki><br> | <nowiki>* {{Link/External|link= http://ofp.gamepark.cz/index.php?showthis=2302|text= Screen shot of the week 21}}</nowiki><br> | ||
<nowiki>* {{Link|link= http://ofpr.info}}</nowiki><br> | <nowiki>* {{Link/External|link= http://ofpr.info}}</nowiki><br> | ||
<nowiki>* {{Link|link= ftp://ofpr.info}}</nowiki> | <nowiki>* {{Link/External|link= ftp://ofpr.info}}</nowiki> | ||
|result7= <nowiki/> | |result7= <nowiki/> | ||
* {{Link|link= http://ofp.gamepark.cz/index.php?showthis=2302}} | * {{Link/External|link= http://ofp.gamepark.cz/index.php?showthis=2302}} | ||
* {{Link|link= http://ofp.gamepark.cz/index.php?showthis=2302|text= Screen shot of the week 21}} | * {{Link/External|link= http://ofp.gamepark.cz/index.php?showthis=2302|text= Screen shot of the week 21}} | ||
* {{Link|link= http://ofpr.info}} | * {{Link/External|link= http://ofpr.info}} | ||
* {{Link|link= ftp://ofpr.info}} | * {{Link/External|link= ftp://ofpr.info}} | ||
|example8= <nowiki>* {{Link|link= http://www.armedassault.com/william/|text= William Porter's Blog}}</nowiki><br> | |example8= <nowiki>* {{Link/External|link= http://www.armedassault.com/william/|text= William Porter's Blog}}</nowiki><br> | ||
<nowiki>* {{Link|link= http://web.archive.org/web/20080401075137/http://www.armedassault.com/william/|text= William Porter's Blog}}</nowiki> | <nowiki>* {{Link/External|link= http://web.archive.org/web/20080401075137/http://www.armedassault.com/william/|text= William Porter's Blog}}</nowiki> | ||
|result8= <nowiki/> | |result8= <nowiki/> | ||
* {{Link|link= http://www.armedassault.com/william/|text= William Porter's Blog}} | * {{Link/External|link= http://www.armedassault.com/william/|text= William Porter's Blog}} | ||
* {{Link|link= http://web.archive.org/web/20080401075137/http://www.armedassault.com/william/|text= William Porter's Blog}} | * {{Link/External|link= http://web.archive.org/web/20080401075137/http://www.armedassault.com/william/|text= William Porter's Blog}} | ||
|example9= <nowiki>* {{Link|link= https://en.wikipedia.org/}}</nowiki><br> | |example9= <nowiki>* {{Link/External|link= https://en.wikipedia.org/}}</nowiki><br> | ||
<nowiki>* {{Link|link= https://en.wikipedia.org/|text= An article}}</nowiki><br> | <nowiki>* {{Link/External|link= https://en.wikipedia.org/|text= An article}}</nowiki><br> | ||
<nowiki>* {{Link|link= https://en.wikipedia.org/Arma_2}}</nowiki><br> | <nowiki>* {{Link/External|link= https://en.wikipedia.org/Arma_2}}</nowiki><br> | ||
<nowiki>* {{Link|link= https://en.wikipedia.org/Arma_2|text= an {{arma2}} article}}</nowiki> | <nowiki>* {{Link/External|link= https://en.wikipedia.org/Arma_2|text= an {{arma2}} article}}</nowiki> | ||
|result9= <nowiki/> | |result9= <nowiki/> | ||
* {{Link|link= https://en.wikipedia.org/}} | * {{Link/External|link= https://en.wikipedia.org/}} | ||
* {{Link|link= https://en.wikipedia.org/|text= An article}} | * {{Link/External|link= https://en.wikipedia.org/|text= An article}} | ||
* {{Link|link= https://en.wikipedia.org/wiki/Arma_2}} | * {{Link/External|link= https://en.wikipedia.org/wiki/Arma_2}} | ||
* {{Link|link= https://en.wikipedia.org/wiki/Arma_2|text= an {{arma2}} article}} | * {{Link/External|link= https://en.wikipedia.org/wiki/Arma_2|text= an {{arma2}} article}} | ||
}}</noinclude> | }}</noinclude> |
Revision as of 15:09, 7 March 2023
External link template allows external URLs filter/styliser depending on the domain name. It also replaces spaces in links by underscores. It adds the page to Link template usage error category in case of improper formatting.
Filtered | Redirected |
---|---|
|
|
This template is used on these pages.
Usage
{{Link/External|link=|text=}}
- link=: (named parameter) the URL
- text=: (Optional, named parameter) the link's text
Code | Result |
---|---|
{{Link/External}} | -no link provided- |
{{Link/External|link= https://www.bohemia.net}} | https://www.bohemia.net |
{{Link/External|text= {{Name|bi}} website}} | -no link provided- |
{{Link/External|link= https://www.bohemia.net|text= {{Name|bi}} website}} | Bohemia Interactive website |
* {{Link/External|link= https://www.armaholic.com}} * {{Link/External|link= https://www.armedassault.com}} |
|
{{Link/External|link= https://www.armaholic.com/page.php?id=1|text= My {{arma1}} mod}} | My Armed Assault mod (dead link) |
* {{Link/External|link= http://ofp.gamepark.cz/index.php?showthis=2302}} * {{Link/External|link= http://ofp.gamepark.cz/index.php?showthis=2302|text= Screen shot of the week 21}} |
|
* {{Link/External|link= http://www.armedassault.com/william/|text= William Porter's Blog}} * {{Link/External|link= http://web.archive.org/web/20080401075137/http://www.armedassault.com/william/|text= William Porter's Blog}} |
|
* {{Link/External|link= https://en.wikipedia.org/}} * {{Link/External|link= https://en.wikipedia.org/|text= An article}} |