|
|
Line 2: |
Line 2: |
| | | | | |
| {{#switch:1 | | {{#switch:1 |
| | |
| | <!-- enfusion:// --> |
| | <!-- {{#ifeq:{{#sub:{{{link}}}|0|43}}|https://enfusionengine.com/api/redirect?to=|class="enfusion-redirect"|class="enfusion"}} --> |
| | |{{#if: |
| | {{#pos:{{{link}}}|enfusion://}} |
| | |1|0}}= <span class="enfusion">{{#if: {{{text|}}} | [{{#replace:{{{link}}}| |_}} {{{text}}}] | [{{#replace:{{{link}}}| |_}} {{#explode:{{{link}}}|/|-1}}] }}</span> |
|
| |
|
| <!-- Bohemia Interactive --> | | <!-- Bohemia Interactive --> |
| | <!-- must be below Enfusion in case of enfusionengine.com redirection --> |
| |{{#if: | | |{{#if: |
| {{#pos:{{{link}}}|bistudio.com}} | | {{#pos:{{{link}}}|bistudio.com}} |
Line 13: |
Line 20: |
| {{#pos:{{{link}}}|vigorgame.com}} | | {{#pos:{{{link}}}|vigorgame.com}} |
| |1|0}}= <span class="bohemia">[{{{link}}} {{#if:{{{text|}}}|{{{text}}}|{{{link}}}}}]</span> | | |1|0}}= <span class="bohemia">[{{{link}}} {{#if:{{{text|}}}|{{{text}}}|{{{link}}}}}]</span> |
|
| |
| <!-- enfusion:// -->
| |
| <!-- {{#ifeq:{{#sub:{{{link}}}|0|43}}|https://enfusionengine.com/api/redirect?to=|class="enfusion-redirect"|class="enfusion"}} -->
| |
| |{{#if:
| |
| {{#pos:{{{link}}}|enfusion://}}
| |
| |1|0}}= <span class="enfusion">{{#if: {{{text|}}} | [{{#replace:{{{link}}}| |_}} {{{text}}}] | [{{#replace:{{{link}}}| |_}} {{#explode:{{{link}}}|/|-1}}] }}</span>
| |
|
| |
|
| <!-- web.archive.org --> | | <!-- web.archive.org --> |
Line 209: |
Line 210: |
| ** {{Link/External|link= https://enfusionengine.com}} | | ** {{Link/External|link= https://enfusionengine.com}} |
| ** {{Link/External|link= https://dayz.com}} | | ** {{Link/External|link= https://dayz.com}} |
| ** {{Link/External|link= https://silica.com}} | | ** {{Link/External|link= https://silicagame.com}} |
| ** {{Link/External|link= https://vigorgame.com}} | | ** {{Link/External|link= https://vigorgame.com}} |
| * {{Link/External|link= enfusion://ScriptEditor/scripts/Game/generated/EPlayerRole.c;13|text= EPlayerRole}} | | * {{Link/External|link= enfusion://ScriptEditor/scripts/Game/generated/EPlayerRole.c;13|text= EPlayerRole}} |
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
|
- armaholic.com
- armedassault.com
- dev-heaven.net
- flashpoint1985.com
- pastebin.jonasscholz.de
- 6thsense.eu
|
- ofp.gamepark.cz
- ofp.gamepark.eu
- ofp.gamezone.cz
- ofp.info
- ofpr.info FTP links (ftp://ofpr.info, ftp://ftp.ofpr.info, ofpr.info/ofpd)
|
- bistudio.com / bohemia.net / armaplatform.com / enfusionengine.com / dayz.com / silicagame.com / vigorgame.com
- enfusion:// links
- steampowered.com / steamcommunity.com
- discord.com / discord.gg
- wikipedia.org / wiktionary.org
- web.archive.org
|
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
Examples
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://community.bistudio.com/wiki/setDir|text= setDir}}
* {{Link/External|link= https://community.bohemia.net/wiki/setDir|text= setDir}}
|
|
* {{Link/External|link= https://www.armaholic.com}}
** {{Link/External|link= https://www.armaholic.com/page.php?id=1}}
** {{Link/External|link= https://www.armaholic.com/page.php?id=1|text= My {{arma1}} mod}}
* {{Link/External|link= https://www.armedassault.com}}
** {{Link/External|link= http://www.armedassault.com/william/|text= William Porter's Blog}}
* {{Link/External|link= https://dev-heaven.net}}
* {{Link/External|link= https://www.flashpoint1985.com}}
* {{Link/External|link= https://pastebin.jonasscholz.de}}
|
- -dead link-
- -dead link-
- My Armed Assault mod (dead link)
- -dead link-
- William Porter's Blog (dead link)
- -dead link-
- -dead link-
- -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://ofpr.info}}
* {{Link/External|link= ftp://ofpr.info}}
|
|
* {{Link/External|link= https://bistudio.com}}
** {{Link/External|link= https://bohemia.net}}
** {{Link/External|link= https://armaplatform.com}}
** {{Link/External|link= https://enfusionengine.com}}
** {{Link/External|link= https://dayz.com}}
** {{Link/External|link= https://silica.com}}
** {{Link/External|link= https://vigorgame.com}}
* {{Link/External|link= enfusion://ScriptEditor/scripts/Game/generated/EPlayerRole.c;13|text= EPlayerRole}}
** {{Link/External|link= enfusion://ScriptEditor/scripts/Game/generated/EPlayerRole.c;13}}
** {{Link/External|link= https://enfusionengine.com/api/redirect?to=enfusion://ScriptEditor/scripts/Game/generated/EPlayerRole.c;13|text= EPlayerRole}}
** {{Link/External|link= enfusion://ResourceManager/~ArmaReforger:UI/layouts/Menus/MainMenu/MainMenu.layout}}
* {{Link/External|link= https://en.wikipedia.org/}}
** {{Link/External|link= https://en.wikipedia.org/|text= An article}}
** {{Link/External|link= https://en.wikipedia.org/Arma_2}}
** {{Link/External|link= https://en.wikipedia.org/Arma_2|text= an {{arma2}} article}}
* {{Link/External|link= https://en.wiktionary.org/}}
** {{Link/External|link= https://en.wiktionary.org/wiki/arma}}
* {{Link/External|link= https://steampowered.com/}}
** {{Link/External|link= https://steamcommunity.com/sharedfiles/filedetails/2206040060}}
* {{Link/External|link= http://web.archive.org/web/20080401075137/http://www.armedassault.com/william/|text= William Porter's Blog}}
* {{Link/External|link= https://discord.com/}}
* {{Link/External|link= https://discord.com/invite/arma|Arma Discord Server}}
* {{Link/External|link= https://youtube.com/}}
* {{Link/External|link= https://youtu.be/|text= Short YouTube link}}
|
|