Link/External – Template
Lou Montana (talk | contribs) (Add steamstatic.com to Steam links) |
Lou Montana (talk | contribs) (Add armareforger:// and steam:// protocols) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
| | | | ||
{{#switch:1 | {{#switch:1 | ||
<!-- | |||
protocols | |||
--> | |||
<!-- enfusion:// - must be above enfusionengine.com --> | <!-- enfusion:// - must be above enfusionengine.com --> | ||
| Line 10: | Line 14: | ||
| {{#if: {{{text|}}} | [{{#replace:{{{link}}}| |_}} {{{text}}}] | [{{#replace:{{{link}}}| |_}} {{#explode:{{{link}}}|/|-1}}] }} | | {{#if: {{{text|}}} | [{{#replace:{{{link}}}| |_}} {{{text}}}] | [{{#replace:{{{link}}}| |_}} {{#explode:{{{link}}}|/|-1}}] }} | ||
}}</span> | }}</span> | ||
<!-- armareforger:// --> | |||
|{{#if: | |||
{{#pos:{{{link}}}|armareforger://}} | |||
|1|0}}= <span class="armar">{{#if: {{{text|}}} | [{{#replace:{{{link}}}| |_}} {{{text}}}] | [{{#replace:{{{link}}}| |_}} {{#explode:{{{link}}}|/|-1}}] }}</span> | |||
<!-- steam:// --> | |||
|{{#if: | |||
{{#pos:{{{link}}}|steam://}} | |||
|1|0}}= <span class="steam">{{#if: {{{text|}}} | [{{{link}}} {{{text}}}] | {{{link}}} }}</span> | |||
<!-- | |||
domains | |||
--> | |||
<!-- Bohemia Interactive --> | <!-- Bohemia Interactive --> | ||
| Line 45: | Line 63: | ||
{{#pos:{{{link}}}|steampowered.com}} | {{#pos:{{{link}}}|steampowered.com}} | ||
{{#pos:{{{link}}}|steamcommunity.com}} | {{#pos:{{{link}}}|steamcommunity.com}} | ||
{{#pos:{{{link}}}|steamgames.com}} | |||
{{#pos:{{{link}}}|steamstatic.com}} | {{#pos:{{{link}}}|steamstatic.com}} | ||
|1|0}}= <span class="steam" title="{{#if:{{#pos:{{{link}}}|steamcommunity.com}}|Steam Community file|Steam link}}">[{{{link}}} {{#if:{{{text|}}}|{{{text}}}|{{#if:{{#explode:{{{link}}}|/filedetails/|1}}|Steam File {{#replace:{{#explode:{{{link}}}|/filedetails/|1}}|?id=}}|{{{link}}}}}}}]</span> | |1|0}}= <span class="steam" title="{{#if:{{#pos:{{{link}}}|steamcommunity.com}}|Steam Community file|Steam link}}">[{{{link}}} {{#if:{{{text|}}}|{{{text}}}|{{#if:{{#explode:{{{link}}}|/filedetails/|1}}|Steam File {{#replace:{{#explode:{{{link}}}|/filedetails/|1}}|?id=}}|{{{link}}}}}}}]</span> | ||
| Line 53: | Line 72: | ||
{{#pos:{{{link}}}|discord.com}} | {{#pos:{{{link}}}|discord.com}} | ||
|1|0}}= <span class="discord" title="Discord link">[{{{link}}} {{{text|{{{link}}}}}}]</span> | |1|0}}= <span class="discord" title="Discord link">[{{{link}}} {{{text|{{{link}}}}}}]</span> | ||
<!-- Facebook --> | |||
|{{#if: | |||
{{#pos:{{{link}}}|facebook.com}} | |||
|1|0}}= <span class="facebook" title="Facebook link">[{{{link}}} {{{text|{{{link}}}}}}]</span> | |||
<!-- Twitter / X --> | <!-- Twitter / X --> | ||
| Line 81: | Line 105: | ||
<!-- AAN Online fallback - Kudos to Karel for it --> | <!-- AAN Online fallback - Kudos to Karel for it --> | ||
|{{#if: | |||
{{#pos:{{{link}}}|aan.moricky.com}} | |||
|1|0}}= <span class="aan-online" title="AAN Online article - courtesy of Karel Mořický">[{{{link}}} {{{text|{{{link}}}}}}]</span> | |||
|{{#if: | |{{#if: | ||
{{#pos:{{{link}}}|aan-online.com}} | {{#pos:{{{link}}}|aan-online.com}} | ||
| Line 159: | Line 186: | ||
{{!}} | {{!}} | ||
* bistudio.com / bohemia.net / arma2.com / arma3.com / armareforger.com / arma4.com / armaplatform.com / enfusionengine.com / dayz.com / takeonthegame.com / silicagame.com / vigorgame.com | * bistudio.com / bohemia.net / arma2.com / arma3.com / armareforger.com / arma4.com / armaplatform.com / enfusionengine.com / dayz.com / takeonthegame.com / silicagame.com / vigorgame.com | ||
* enfusion:// links | * {{hl|enfusion://}}, {{hl|steam://}} and {{hl|armareforger://}} links | ||
* steampowered.com / steamcommunity.com / steamstatic.com | * steampowered.com / steamcommunity.com / steamgames.com / steamstatic.com | ||
* discord.com / discord.gg | * discord.com / discord.gg | ||
* wikipedia.org / wiktionary.org | * wikipedia.org / wiktionary.org | ||
* web.archive.org | * web.archive.org | ||
* youtube.com / youtu.be | * youtube.com / youtu.be | ||
* facebook.com | |||
* twitter.com / x.com | * twitter.com / x.com | ||
* drive.google.com | * drive.google.com | ||
| Line 236: | Line 264: | ||
<nowiki>* {{Link/External|link= http://www.aan-online.com/en/europe/29-black-element-rebrand-corporate-image.html}}</nowiki><br> | <nowiki>* {{Link/External|link= http://www.aan-online.com/en/europe/29-black-element-rebrand-corporate-image.html}}</nowiki><br> | ||
<nowiki>** {{Link/External|link= http://www.aan-online.com/en/europe/29-black-element-rebrand-corporate-image.html|text= AAN Online explanation article}}</nowiki> | <nowiki>** {{Link/External|link= http://www.aan-online.com/en/europe/29-black-element-rebrand-corporate-image.html|text= AAN Online explanation article}}</nowiki> | ||
<nowiki>* {{Link/External|link= http://www.aan.moricky.com/en/europe/29-black-element-rebrand-corporate-image.html}}</nowiki><br> | |||
<nowiki>** {{Link/External|link= http://www.aan.moricky.com/en/europe/29-black-element-rebrand-corporate-image.html|text= AAN Online explanation article}}</nowiki> | |||
|result6= <nowiki/> | |result6= <nowiki/> | ||
* {{Link/External|link= http://ofp.gamepark.cz/index.php?showthis=2302}} | * {{Link/External|link= http://ofp.gamepark.cz/index.php?showthis=2302}} | ||
| Line 243: | Line 273: | ||
* {{Link/External|link= http://www.aan-online.com/en/europe/29-black-element-rebrand-corporate-image.html}} | * {{Link/External|link= http://www.aan-online.com/en/europe/29-black-element-rebrand-corporate-image.html}} | ||
** {{Link/External|link= http://www.aan-online.com/en/europe/29-black-element-rebrand-corporate-image.html|text= AAN Online explanation article}} | ** {{Link/External|link= http://www.aan-online.com/en/europe/29-black-element-rebrand-corporate-image.html|text= AAN Online explanation article}} | ||
* {{Link/External|link= http://www.aan.moricky.com/en/europe/29-black-element-rebrand-corporate-image.html}} | |||
** {{Link/External|link= http://www.aan.moricky.com/en/europe/29-black-element-rebrand-corporate-image.html|text= AAN Online explanation article}} | |||
<!-- marked websites --> | <!-- marked websites --> | ||
| Line 271: | Line 303: | ||
<nowiki>** {{Link/External|link= https://steamcommunity.com/sharedfiles/filedetails/2206040060}}</nowiki><br> | <nowiki>** {{Link/External|link= https://steamcommunity.com/sharedfiles/filedetails/2206040060}}</nowiki><br> | ||
<nowiki>** {{Link/External|link= https://steamcommunity.com/sharedfiles/filedetails/?id=2206040060}}</nowiki><br> | <nowiki>** {{Link/External|link= https://steamcommunity.com/sharedfiles/filedetails/?id=2206040060}}</nowiki><br> | ||
<nowiki>** {{Link/External|link= https://partner.steamgames.com/doc/store/application/dlc}}</nowiki><br> | |||
<nowiki>** {{Link/External|link= http://cdn.akamai.steamstatic.com/steam/apps/107410/manuals/Arma_3_keylayout_ENG.pdf|text= {{arma3}} keyboard layout}}</nowiki><br> | <nowiki>** {{Link/External|link= http://cdn.akamai.steamstatic.com/steam/apps/107410/manuals/Arma_3_keylayout_ENG.pdf|text= {{arma3}} keyboard layout}}</nowiki><br> | ||
<nowiki>* {{Link/External|link= http://web.archive.org/web/20080401075137/http://www.armedassault.com/william/|text= William Porter's Blog}}</nowiki><br> | <nowiki>* {{Link/External|link= http://web.archive.org/web/20080401075137/http://www.armedassault.com/william/|text= William Porter's Blog}}</nowiki><br> | ||
<nowiki>* {{Link/External|link= https://discord.com/}}</nowiki><br> | <nowiki>* {{Link/External|link= https://discord.com/}}</nowiki><br> | ||
<nowiki>* {{Link/External|link= https://discord.com/invite/arma|Arma Discord Server}}</nowiki><br> | <nowiki>* {{Link/External|link= https://discord.com/invite/arma|Arma Discord Server}}</nowiki><br> | ||
<nowiki>* {{Link/External|link= https://facebook.com/}}</nowiki><br> | |||
<nowiki>* {{Link/External|link= https://www.facebook.com/armaplatform}}</nowiki><br> | |||
<nowiki>* {{Link/External|link= https://x.com/}}</nowiki><br> | <nowiki>* {{Link/External|link= https://x.com/}}</nowiki><br> | ||
<nowiki>* {{Link/External|link= https://twitter.com/}}</nowiki><br> | <nowiki>* {{Link/External|link= https://twitter.com/}}</nowiki><br> | ||
| Line 306: | Line 341: | ||
** {{Link/External|link= https://steamcommunity.com/sharedfiles/filedetails/2206040060}} | ** {{Link/External|link= https://steamcommunity.com/sharedfiles/filedetails/2206040060}} | ||
** {{Link/External|link= https://steamcommunity.com/sharedfiles/filedetails/?id=2206040060}} | ** {{Link/External|link= https://steamcommunity.com/sharedfiles/filedetails/?id=2206040060}} | ||
** {{Link/External|link= https://partner.steamgames.com/doc/store/application/dlc}} | |||
** {{Link/External|link= http://cdn.akamai.steamstatic.com/steam/apps/107410/manuals/Arma_3_keylayout_ENG.pdf|text= {{arma3}} keyboard layout}} | ** {{Link/External|link= http://cdn.akamai.steamstatic.com/steam/apps/107410/manuals/Arma_3_keylayout_ENG.pdf|text= {{arma3}} keyboard layout}} | ||
* {{Link/External|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}} | ||
* {{Link/External|link= https://discord.com/}} | * {{Link/External|link= https://discord.com/}} | ||
* {{Link/External|link= https://discord.com/invite/arma|text= Arma Discord Server}} | * {{Link/External|link= https://discord.com/invite/arma|text= Arma Discord Server}} | ||
* {{Link/External|link= https://www.facebook.com}} | |||
* {{Link/External|link= https://www.facebook.com/armaplatform}} | |||
* {{Link/External|link= https://x.com/}} | * {{Link/External|link= https://x.com/}} | ||
* {{Link/External|link= https://twitter.com/}} | * {{Link/External|link= https://twitter.com/}} | ||
| Line 329: | Line 367: | ||
* {{Link/External|link= https://1drv.ms/}} | * {{Link/External|link= https://1drv.ms/}} | ||
* {{Link/External|link= https://onedrive.live.com|text= OneDrive}} | * {{Link/External|link= https://onedrive.live.com|text= OneDrive}} | ||
<!-- protocols --> | |||
|example9= <nowiki/> | |||
<nowiki>* {{Link|steam://}}</nowiki><br> | |||
<nowiki>* {{Link|steam://install/1890860}}</nowiki><br> | |||
<nowiki>* {{Link|steam://install/1890860|install on Steam}}</nowiki><br> | |||
<nowiki>* {{Link|enfusion://}}</nowiki><br> | |||
<nowiki>* {{Link|enfusion://aaa/bbb/ccc.et}}</nowiki><br> | |||
<nowiki>* {{Link|enfusion://aaa/bbb/ccc.et|something.et}}</nowiki><br> | |||
<nowiki>* {{Link|armareforger://}}</nowiki><br> | |||
<nowiki>* {{Link|armareforger://aaa/bbb/ccc.c}}</nowiki><br> | |||
<nowiki>* {{Link|armareforger://aaa/bbb/ccc.c|something something}}</nowiki> | |||
|result9= | |||
* {{Link|steam://}} | |||
* {{Link|steam://install/1890860}} | |||
* {{Link|steam://install/1890860|install on Steam}} | |||
* {{Link|enfusion://}} | |||
* {{Link|enfusion://aaa/bbb/ccc.et}} | |||
* {{Link|enfusion://aaa/bbb/ccc.et|something.et}} | |||
* {{Link|armareforger://}} | |||
* {{Link|armareforger://aaa/bbb/ccc.c}} | |||
* {{Link|armareforger://aaa/bbb/ccc.c|something something}} | |||
}}</noinclude> | }}</noinclude> | ||
Latest revision as of 23:33, 10 December 2025
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 for Bohemia Interactive website- |
|
* {{Link/External|link= https://www.bohemia.net|text= {{Name|bi}} website}} |
|
|
* {{Link/External|link= https://www.6thsense.eu}} |
|
|
* {{Link/External|link= http://ofp.gamepark.cz/index.php?showthis=2302}} |
|
|
* {{Link/External|link= https://bistudio.com}} |
|
|
* {{Link/External|link= https://drive.google.com}} |
|
|
* {{Link|steam://}} |
* steam://
|