Link/External – Template
Lou Montana (talk | contribs) (Add Steam & Wiktionary link icon) |
Lou Montana (talk | contribs) (Add Enfusion link) |
||
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> | |||
<!-- web.archive.org --> | <!-- web.archive.org --> | ||
Line 123: | Line 129: | ||
<!-- marked websites --> | <!-- marked websites --> | ||
|example7= <nowiki/> | |example7= <nowiki/> | ||
<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= https://enfusionengine.com/api/redirect?to=enfusion://ScriptEditor/scripts/Game/generated/EPlayerRole.c;13|text= EPlayerRole}}</nowiki><br> | |||
<nowiki>** {{Link/External|link= enfusion://ResourceManager/~ArmaReforger:UI/layouts/Menus/MainMenu/MainMenu.layout}}</nowiki><br> | |||
<nowiki>* {{Link/External|link= https://en.wikipedia.org/}}</nowiki><br> | <nowiki>* {{Link/External|link= https://en.wikipedia.org/}}</nowiki><br> | ||
<nowiki>** {{Link/External|link= https://en.wikipedia.org/|text= An article}}</nowiki><br> | <nowiki>** {{Link/External|link= https://en.wikipedia.org/|text= An article}}</nowiki><br> | ||
Line 133: | Line 143: | ||
<nowiki>* {{Link/External|link= http://web.archive.org/web/20080401075137/http://www.armedassault.com/william/|text= William Porter's Blog}}</nowiki> | <nowiki>* {{Link/External|link= http://web.archive.org/web/20080401075137/http://www.armedassault.com/william/|text= William Porter's Blog}}</nowiki> | ||
|result7= <nowiki/> | |result7= <nowiki/> | ||
* {{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/}} | ||
** {{Link/External|link= https://en.wikipedia.org/|text= An article}} | ** {{Link/External|link= https://en.wikipedia.org/|text= An article}} |
Revision as of 14:00, 12 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.
Filtered | Redirected |
---|---|
|
|
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}} | Bohemia Interactive 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}} |