Link/External – Template
Lou Montana (talk | contribs) m (Add GoogleDrive/OneDrive styles) |
Lou Montana (talk | contribs) (Add Facebook link type) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
<!-- enfusion:// - must be above enfusionengine.com --> | <!-- enfusion:// - must be above enfusionengine.com --> | ||
|{{#if: | |{{#if: | ||
{{#pos:{{{link}}}|enfusion://}} | {{#pos:{{{link}}}|enfusion://}} | ||
|1|0}}= <span class="enfusion">{{#if: {{{text|}}} | [{{#replace:{{{link}}}| |_}} {{{text}}}] | [{{#replace:{{{link}}}| |_}} {{#explode:{{{link}}}|/|-1}}] }}</span> | |1|0}}= <span class="enfusion">{{#ifeq:{{#sub:{{{link}}}|0|43}}|https://enfusionengine.com/api/redirect?to=<!-- do NOT use redirects, just raw links --> | ||
| {{#if: {{{text|}}} | [{{#replace:{{#sub:{{{link}}}|43}}| |_}} {{{text}}}] | [{{#replace:{{#sub:{{{link}}}|43}}| |_}} {{#explode:{{{link}}}|/|-1}}] }} -redirect link provided-{{TemplateCase||[[Category:Link template usage error]]}} | |||
| {{#if: {{{text|}}} | [{{#replace:{{{link}}}| |_}} {{{text}}}] | [{{#replace:{{{link}}}| |_}} {{#explode:{{{link}}}|/|-1}}] }} | |||
}}</span> | |||
<!-- Bohemia Interactive --> | <!-- Bohemia Interactive --> | ||
Line 24: | Line 26: | ||
{{#pos:{{{link}}}|silicagame.com}} | {{#pos:{{{link}}}|silicagame.com}} | ||
{{#pos:{{{link}}}|vigorgame.com}} | {{#pos:{{{link}}}|vigorgame.com}} | ||
|1|0}}= <span class="bohemia">[{{{link}}} | |1|0}}= <span class="bohemia">[{{{link}}} {{{text|{{{link}}}}}}]</span> | ||
<!-- web.archive.org --> | <!-- web.archive.org --> | ||
Line 43: | Line 45: | ||
{{#pos:{{{link}}}|steampowered.com}} | {{#pos:{{{link}}}|steampowered.com}} | ||
{{#pos:{{{link}}}|steamcommunity.com}} | {{#pos:{{{link}}}|steamcommunity.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 {{#explode:{{{link}}}|/filedetails/|1}}|{{{link}}}}}}}]</span> | {{#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> | |||
<!-- Discord --> | <!-- Discord --> | ||
Line 49: | Line 52: | ||
{{#pos:{{{link}}}|discord.gg}} | {{#pos:{{{link}}}|discord.gg}} | ||
{{#pos:{{{link}}}|discord.com}} | {{#pos:{{{link}}}|discord.com}} | ||
|1|0}}= <span class="discord" title="Discord link">[{{{link}}} {{#if:{{{text|}}}|{{{ | |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 --> | |||
|{{#if: | |||
{{#pos:{{{link}}}|.x.com}} | |||
{{#pos:{{{link}}}|/x.com}} | |||
{{#pos:{{{link}}}|.twitter.com}} | |||
{{#pos:{{{link}}}|/twitter.com}} | |||
|1|0}}= <span class="twitter-x" title="Twitter/X link">[{{{link}}} {{{text|{{{link}}}}}}]</span> | |||
<!-- YouTube --> | <!-- YouTube --> | ||
Line 55: | Line 71: | ||
{{#pos:{{{link}}}|youtu.be}} | {{#pos:{{{link}}}|youtu.be}} | ||
{{#pos:{{{link}}}|youtube.com}} | {{#pos:{{{link}}}|youtube.com}} | ||
|1|0}}= <span class="youtube">[{{{link}}} | |1|0}}= <span class="youtube">[{{{link}}} {{{text|{{{link}}}}}}]</span> | ||
<!-- ofp.info fallback --> | <!-- ofp.info fallback --> | ||
Line 68: | Line 84: | ||
{{#pos:{{{link}}}|ftp://www.ofpr.info}} | {{#pos:{{{link}}}|ftp://www.ofpr.info}} | ||
|1|0}}= <span class="ofp-faguss-link" title="Old link: {{{link}}}">[https://ofp-faguss.com/addonsearch.php?searchfor={{URLENCODE:{{{link}}}}} {{#if:{{{text|}}}|{{{text}}}|ofpr.info link}}]</span> <span class="ofp-faguss-info">link courtesy of<br>[https://ofp-faguss.com/ OFP-Faguss.com]</span> | |1|0}}= <span class="ofp-faguss-link" title="Old link: {{{link}}}">[https://ofp-faguss.com/addonsearch.php?searchfor={{URLENCODE:{{{link}}}}} {{#if:{{{text|}}}|{{{text}}}|ofpr.info link}}]</span> <span class="ofp-faguss-info">link courtesy of<br>[https://ofp-faguss.com/ OFP-Faguss.com]</span> | ||
<!-- AAN Online fallback - Kudos to Karel for it --> | |||
|{{#if: | |||
{{#pos:{{{link}}}|aan-online.com}} | |||
|1|0}}= <span class="aan-online" title="AAN Online article - courtesy of Karel Mořický">[{{#replace:{{#replace:{{{link}}}|www.aan-online.com|aan.moricky.com}}|aan-online.com|aan.moricky.com}} {{{text|{{{link}}}}}}]</span> | |||
<!-- drives --> | <!-- drives --> | ||
Line 78: | Line 99: | ||
{{#pos:{{{link}}}|1drv.ms/}} | {{#pos:{{{link}}}|1drv.ms/}} | ||
|1|0}}= <span class="onedrive">[{{{link}}} {{{text|{{{link}}}}}}]</span> | |1|0}}= <span class="onedrive">[{{{link}}} {{{text|{{{link}}}}}}]</span> | ||
<!-- dead links --> | <!-- dead links --> | ||
|{{#if: | |{{#if: | ||
{{#pos:{{{link}}}|6thsense.eu}} | {{#pos:{{{link}}}|6thsense.eu}} | ||
{{#pos:{{{link}}}|acemod.net}} | |||
{{#pos:{{{link}}}|armaholic.com}} | {{#pos:{{{link}}}|armaholic.com}} | ||
{{#pos:{{{link}}}|armaholic.eu}} | {{#pos:{{{link}}}|armaholic.eu}} | ||
Line 86: | Line 109: | ||
{{#pos:{{{link}}}|bohemiainteractive.com}} | {{#pos:{{{link}}}|bohemiainteractive.com}} | ||
{{#pos:{{{link}}}|dev-heaven.net}} | {{#pos:{{{link}}}|dev-heaven.net}} | ||
{{#pos:{{{link}}}|dyndns.org}} | |||
{{#pos:{{{link}}}|flashpoint1985.com}} | {{#pos:{{{link}}}|flashpoint1985.com}} | ||
{{#pos:{{{link}}}|pastebin.jonasscholz.de}} | {{#pos:{{{link}}}|pastebin.jonasscholz.de}} | ||
Line 116: | Line 140: | ||
{{!}} | {{!}} | ||
* 6thsense.eu | * 6thsense.eu | ||
* acemod.net | |||
* armaholic.com | * armaholic.com | ||
* armaholic.eu | * armaholic.eu | ||
Line 121: | Line 146: | ||
* bohemiainteractive.com | * bohemiainteractive.com | ||
* dev-heaven.net | * dev-heaven.net | ||
* dyndns.org | |||
* flashpoint1985.com | * flashpoint1985.com | ||
* pastebin.jonasscholz.de | * pastebin.jonasscholz.de | ||
Line 126: | Line 152: | ||
* withsix.com | * withsix.com | ||
{{!}} | {{!}} | ||
* aan-online.com (aan.moricky.com) | |||
* ofp.gamepark.cz | * ofp.gamepark.cz | ||
* ofp.gamepark.eu | * ofp.gamepark.eu | ||
Line 138: | Line 165: | ||
* 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 | * enfusion:// links | ||
* steampowered.com / steamcommunity.com | * steampowered.com / steamcommunity.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 | |||
* drive.google.com | |||
* onedrive.live.com / 1drv.ms | |||
{{!}}} | {{!}}} | ||
|param1= link= | |param1= link= | ||
Line 170: | Line 201: | ||
|example5= <nowiki/> | |example5= <nowiki/> | ||
<nowiki>* {{Link/External|link= https://www.6thsense.eu}}</nowiki><br> | <nowiki>* {{Link/External|link= https://www.6thsense.eu}}</nowiki><br> | ||
<nowiki>* {{Link/External|link= https://www.acemod.net}}</nowiki><br> | |||
<nowiki>* {{Link/External|link= https://www.armaholic.com}}</nowiki><br> | <nowiki>* {{Link/External|link= https://www.armaholic.com}}</nowiki><br> | ||
<nowiki>** {{Link/External|link= https://www.armaholic.com/page.php?id=1}}</nowiki><br> | <nowiki>** {{Link/External|link= https://www.armaholic.com/page.php?id=1}}</nowiki><br> | ||
Line 178: | Line 210: | ||
<nowiki>* {{Link/External|link= http://www.bohemiainteractive.com}}</nowiki><br> | <nowiki>* {{Link/External|link= http://www.bohemiainteractive.com}}</nowiki><br> | ||
<nowiki>* {{Link/External|link= https://dev-heaven.net}}</nowiki><br> | <nowiki>* {{Link/External|link= https://dev-heaven.net}}</nowiki><br> | ||
<nowiki>* {{Link/External|link= https://mywebsite.dyndns.org}}</nowiki><br> | |||
<nowiki>* {{Link/External|link= https://www.flashpoint1985.com}}</nowiki><br> | <nowiki>* {{Link/External|link= https://www.flashpoint1985.com}}</nowiki><br> | ||
<nowiki>* {{Link/External|link= https://pastebin.jonasscholz.de}}</nowiki><br> | <nowiki>* {{Link/External|link= https://pastebin.jonasscholz.de}}</nowiki><br> | ||
Line 185: | Line 218: | ||
|result5= <nowiki/> | |result5= <nowiki/> | ||
* {{Link/External|link= https://www.6thsense.eu}} | * {{Link/External|link= https://www.6thsense.eu}} | ||
* {{Link/External|link= https://www.acemod.net}} | |||
* {{Link/External|link= https://www.armaholic.com}} | * {{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}} | ||
Line 193: | Line 227: | ||
* {{Link/External|link= http://www.bohemiainteractive.com}} | * {{Link/External|link= http://www.bohemiainteractive.com}} | ||
* {{Link/External|link= https://dev-heaven.net}} | * {{Link/External|link= https://dev-heaven.net}} | ||
* {{Link/External|link= https://mywebsite.dyndns.org}} | |||
* {{Link/External|link= https://www.flashpoint1985.com}} | * {{Link/External|link= https://www.flashpoint1985.com}} | ||
* {{Link/External|link= https://pastebin.jonasscholz.de}} | * {{Link/External|link= https://pastebin.jonasscholz.de}} | ||
Line 204: | Line 239: | ||
<nowiki>* {{Link/External|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/External|link= http://ofpr.info}}</nowiki><br> | <nowiki>* {{Link/External|link= http://ofpr.info}}</nowiki><br> | ||
<nowiki>* {{Link/External|link= ftp://ofpr.info}}</nowiki> | <nowiki>* {{Link/External|link= ftp://ofpr.info}}</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> | |||
|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 210: | Line 247: | ||
* {{Link/External|link= http://ofpr.info}} | * {{Link/External|link= http://ofpr.info}} | ||
* {{Link/External|link= ftp://ofpr.info}} | * {{Link/External|link= ftp://ofpr.info}} | ||
* {{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}} | |||
<!-- marked websites --> | <!-- marked websites --> | ||
Line 237: | Line 276: | ||
<nowiki>* {{Link/External|link= https://steampowered.com/}}</nowiki><br> | <nowiki>* {{Link/External|link= https://steampowered.com/}}</nowiki><br> | ||
<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= 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://twitter.com/}}</nowiki><br> | |||
<nowiki>* {{Link/External|link= https://twitter.com/ArmaPlatform}}</nowiki><br> | |||
<nowiki>* {{Link/External|link= https://youtube.com/}}</nowiki><br> | <nowiki>* {{Link/External|link= https://youtube.com/}}</nowiki><br> | ||
<nowiki>* {{Link/External|link= https://youtu.be/|text= Short YouTube link}}</nowiki><br> | <nowiki>* {{Link/External|link= https://youtu.be/|text= Short YouTube link}}</nowiki><br> | ||
Line 267: | Line 313: | ||
* {{Link/External|link= https://steampowered.com/}} | * {{Link/External|link= https://steampowered.com/}} | ||
** {{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= 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://twitter.com/}} | |||
* {{Link/External|link= https://twitter.com/ArmaPlatform}} | |||
* {{Link/External|link= https://www.twitter.com/}} | |||
* {{Link/External|link= https://youtube.com/}} | * {{Link/External|link= https://youtube.com/}} | ||
* {{Link/External|link= https://youtu.be/|text= Short YouTube link}} | * {{Link/External|link= https://youtu.be/|text= Short YouTube link}} | ||
Line 275: | Line 329: | ||
|example8= <nowiki/> | |example8= <nowiki/> | ||
<nowiki>* {{Link/External|link= https://drive.google.com}}</nowiki><br> | <nowiki>* {{Link/External|link= https://drive.google.com}}</nowiki><br> | ||
<nowiki>* {{Link/External|link= https://drive.google.com|text= GDrive}}</nowiki><br> | |||
<nowiki>* {{Link/External|link= https://onedrive.live.com}}</nowiki><br> | <nowiki>* {{Link/External|link= https://onedrive.live.com}}</nowiki><br> | ||
<nowiki>* {{Link/External|link= https://1drv.ms/}}</nowiki> | <nowiki>* {{Link/External|link= https://1drv.ms/}}</nowiki><br> | ||
<nowiki>* {{Link/External|link= https://onedrive.live.com|text= OneDrive}}</nowiki><br> | |||
|result8= <nowiki/> | |result8= <nowiki/> | ||
* {{Link/External|link= https://drive.google.com}} | * {{Link/External|link= https://drive.google.com}} | ||
* {{Link/External|link= https://drive.google.com|text= GDrive}} | |||
* {{Link/External|link= https://onedrive.live.com}} | * {{Link/External|link= https://onedrive.live.com}} | ||
* {{Link/External|link= https://1drv.ms/}} | * {{Link/External|link= https://1drv.ms/}} | ||
* {{Link/External|link= https://onedrive.live.com|text= OneDrive}} | |||
}}</noinclude> | }}</noinclude> |
Latest revision as of 19:08, 19 November 2024
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}} |