Link/External – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Add web.archive.org exception) |
Lou Montana (talk | contribs) m (smoler) |
||
Line 3: | Line 3: | ||
{{#if: {{#pos:{{{link}}}|web.archive.org}} | {{#if: {{#pos:{{{link}}}|web.archive.org}} | ||
| | | | ||
{{#if: {{{text|}}} | <span title="web.archive.org backup">{{#if: {{{text|}}} | ||
| [{{#replace:{{{link}}}| |_}} {{{text}}}] | | [{{#replace:{{{link}}}| |_}} {{{text}}}] | ||
| {{#replace:{{{link}}}| |_}} | | {{#replace:{{{link}}}| |_}} | ||
}} <sub style="font-size: .8em">( | }} <sub style="font-size: .8em">(archive)</sub></span> | ||
| | | | ||
{{#if: | {{#if: |
Revision as of 14:18, 26 July 2021
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 ExternalLink 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 |
---|---|
{{ExternalLink}} | -no links defined- |
{{ExternalLink|link= https://www.bohemia.net}} | https://www.bohemia.net |
{{ExternalLink|text= BI website}} | -no links defined- |
{{ExternalLink|link= https://www.bohemia.net|text= BI website}} | BI website |
{{ExternalLink|link= https://www.armaholic.com}} | -dead link- |
{{ExternalLink|link= https://www.armaholic.com/page.php?id=1|text= My {{arma1}} mod}} | My Armed Assault mod (dead link) |
* {{ExternalLink|link= http://ofp.gamepark.cz/index.php?showthis=2302}} * {{ExternalLink|link= http://ofp.gamepark.cz/index.php?showthis=2302|text= Screen shot of the week 21}} |
|
* {{ExternalLink|link= http://www.armedassault.com/william/|text= William Porter's Blog}} * {{ExternalLink|link= http://web.archive.org/web/20080401075137/http://www.armedassault.com/william/|text= William Porter's Blog}} |
|