Link/External – Template
Lou Montana (talk | contribs) m (Text replacement - "" to "") |
Lou Montana (talk | contribs) (Add community.bistudio.com & community.bohemia.net "bad template usage" category) |
||
Line 48: | Line 48: | ||
{{#pos:{{{link}}}|pastebin.jonasscholz.de}} | {{#pos:{{{link}}}|pastebin.jonasscholz.de}} | ||
{{#pos:{{{link}}}|6thsense.eu}} | {{#pos:{{{link}}}|6thsense.eu}} | ||
|1|0}}= <span title="Old link: {{{link}}}">{{#if:{{{text|}}}|''{{{text}}}'' <sub>(dead link)</sub>|''-dead link-''}}</span> | |1|0}}= <span title="Old link: {{{link}}}">{{#if:{{{text|}}}|''{{{text}}}'' <sub style="font-size: .8em">(dead link)</sub>|''-dead link-''}}</span> | ||
<!-- default link --> | <!-- default link --> | ||
|#default= {{#if: {{{text|}}} | [{{#replace:{{{link}}}| |_}} {{{text}}}] | {{#replace:{{{link}}}| |_}} }} | <!-- | ||
community.bistudio.com | |||
community.bohemia.net | |||
= add to [[:Category:Link template usage error]] | |||
--> | |||
|#default= {{#if: {{{text|}}} | [{{#replace:{{{link}}}| |_}} {{{text}}}] | {{#replace:{{{link}}}| |_}} }}{{#if: | |||
{{#pos:{{{link}}}|community.bistudio.com}} | |||
{{#pos:{{{link}}}|community.bohemia.net}} | |||
| <sub style="font-size: .66em">''[[:Category:Link template usage error|BIKI]]''</sub>{{TemplateCase||[[Category:Link template usage error]]}} | |||
}} | |||
}} | }} | ||
| -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= 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. | ||
It also replaces spaces in links by underscores. It adds the page to [[:Category:Link template usage error|Link template usage error]] category in case of improper formatting. | It also replaces spaces in links by underscores. It adds the page to [[:Category:Link template usage error|Link template usage error]] category in case of improper formatting or BIKI link. | ||
{{{!}} class="wikitable valign-top" | {{{!}} class="wikitable valign-top" | ||
Line 98: | Line 107: | ||
|result3= {{Link/External|text= {{Name|bi}} website}} | |result3= {{Link/External|text= {{Name|bi}} website}} | ||
|example4= <nowiki>{{Link/External|link= https://www.bohemia.net|text= {{Name|bi}} website}}</nowiki> | |example4= <nowiki/> | ||
|result4= {{Link/External|link= https://www.bohemia.net|text= {{Name|bi}} website}} | <nowiki>* {{Link/External|link= https://www.bohemia.net|text= {{Name|bi}} website}}</nowiki><br> | ||
<nowiki>* {{Link/External|link= https://community.bistudio.com/wiki/setDir|text= setDir}}</nowiki><br> | |||
<nowiki>* {{Link/External|link= https://community.bohemia.net/wiki/setDir|text= setDir}}</nowiki> | |||
|result4= <nowiki/> | |||
* {{Link/External|link= https://www.bohemia.net|text= {{Name|bi}} website}} | |||
* {{Link/External|link= https://community.bistudio.com/wiki/setDir|text= setDir}} | |||
* {{Link/External|link= https://community.bohemia.net/wiki/setDir|text= setDir}} | |||
<!-- dead websites --> | <!-- dead websites --> |
Revision as of 13:02, 28 April 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 or BIKI link.
Filtered | Redirected | Decorated |
---|---|---|
|
|
|
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}} |
|
* {{Link/External|link= https://www.armaholic.com}} |
|
* {{Link/External|link= http://ofp.gamepark.cz/index.php?showthis=2302}} |
|
* {{Link/External|link= enfusion://ScriptEditor/scripts/Game/generated/EPlayerRole.c;13|text= EPlayerRole}} |