Link/External – Template
Lou Montana (talk | contribs) (Add Discord link) |
Lou Montana (talk | contribs) (Add BI websites) |
||
Line 2: | Line 2: | ||
| | | | ||
{{#switch:1 | {{#switch:1 | ||
<!-- Bohemia Interactive --> | |||
|{{#if: | |||
{{#pos:{{{link}}}|bistudio.com}} | |||
{{#pos:{{{link}}}|bohemia.net}} | |||
{{#pos:{{{link}}}|armaplatform.com}} | |||
{{#pos:{{{link}}}|enfusionengine.com}} | |||
{{#pos:{{{link}}}|dayz.com}} | |||
{{#pos:{{{link}}}|silica.com}} | |||
{{#pos:{{{link}}}|vigorgame.com}} | |||
|1|0}}= <span class="bohemia">{{#if: {{{text|}}} | [{{#replace:{{{link}}}| |_}} {{{text}}}] | [{{#replace:{{{link}}}| |_}} {{#explode:{{{link}}}|/|-1}}] }}</span> | |||
<!-- enfusion:// --> | <!-- enfusion:// --> | ||
Line 98: | Line 109: | ||
}} | }} | ||
{{!}} | {{!}} | ||
* bistudio.com / bohemia.net / armaplatform.com / enfusionengine.com / dayz.com / silica.com / vigorgame.com | |||
* enfusion:// links | * enfusion:// links | ||
* steampowered.com / steamcommunity.com | * steampowered.com / steamcommunity.com | ||
Line 161: | Line 173: | ||
<!-- marked websites --> | <!-- marked websites --> | ||
|example7= <nowiki/> | |example7= <nowiki/> | ||
<nowiki>* {{Link/External|link= https://bistudio.com}}</nowiki><br> | |||
<nowiki>** {{Link/External|link= https://bohemia.net}}</nowiki><br> | |||
<nowiki>** {{Link/External|link= https://armaplatform.com}}</nowiki><br> | |||
<nowiki>** {{Link/External|link= https://enfusionengine.com}}</nowiki><br> | |||
<nowiki>** {{Link/External|link= https://dayz.com}}</nowiki><br> | |||
<nowiki>** {{Link/External|link= https://silica.com}}</nowiki><br> | |||
<nowiki>** {{Link/External|link= https://vigorgame.com}}</nowiki><br> | |||
<nowiki>* {{Link/External|link= enfusion://ScriptEditor/scripts/Game/generated/EPlayerRole.c;13|text= EPlayerRole}}</nowiki><br> | <nowiki>* {{Link/External|link= enfusion://ScriptEditor/scripts/Game/generated/EPlayerRole.c;13|text= EPlayerRole}}</nowiki><br> | ||
<nowiki>** {{Link/External|link= enfusion://ScriptEditor/scripts/Game/generated/EPlayerRole.c;13}}</nowiki><br> | <nowiki>** {{Link/External|link= enfusion://ScriptEditor/scripts/Game/generated/EPlayerRole.c;13}}</nowiki><br> | ||
Line 177: | Line 196: | ||
<nowiki>* {{Link/External|link= https://discord.com/invite/arma|Arma Discord Server}}</nowiki> | <nowiki>* {{Link/External|link= https://discord.com/invite/arma|Arma Discord Server}}</nowiki> | ||
|result7= <nowiki/> | |result7= <nowiki/> | ||
* {{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|text= EPlayerRole}} | ||
** {{Link/External|link= enfusion://ScriptEditor/scripts/Game/generated/EPlayerRole.c;13}} | ** {{Link/External|link= enfusion://ScriptEditor/scripts/Game/generated/EPlayerRole.c;13}} |
Revision as of 11:19, 28 June 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}} | 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= https://bistudio.com}} |