Link/External – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Add flashpoint1985.com to the list of filtered sites) |
Lou Montana (talk | contribs) m (Fix output format, add ofpr.info link) |
||
Line 6: | Line 6: | ||
{{#pos:{{{link}}}|ofp.gamezone.cz}} | {{#pos:{{{link}}}|ofp.gamezone.cz}} | ||
{{#pos:{{{link}}}|ofp.info}} | {{#pos:{{{link}}}|ofp.info}} | ||
| [https://ofp-faguss.com/addonsearch.php?searchfor={{URLENCODE:{{{link}}}}} {{#if:{{{text|}}}|{{{text}}}|ofpr.info link}}] <small>( | | [https://ofp-faguss.com/addonsearch.php?searchfor={{URLENCODE:{{{link}}}}} {{#if:{{{text|}}}|{{{text}}}|ofpr.info link}}] <small>(courtesy of [https://ofp-faguss.com/ OFP-Faguss.com])</small> | ||
| | | | ||
{{#if: | {{#if: | ||
Line 13: | Line 13: | ||
{{#pos:{{{link}}}|dev-heaven.net}} | {{#pos:{{{link}}}|dev-heaven.net}} | ||
{{#pos:{{{link}}}|flashpoint1985.com}} | {{#pos:{{{link}}}|flashpoint1985.com}} | ||
| {{#if:{{{text|}}}|''{{{text}}}'' (dead link)|''-dead link-''}} | | {{#if:{{{text|}}}|''{{{text}}}'' <small>(dead link)</small>|''-dead link-''}} | ||
| | | | ||
{{#if: {{{text|}}} | {{#if: {{{text|}}} | ||
Line 34: | Line 34: | ||
* ofp.gamepark.eu | * ofp.gamepark.eu | ||
* ofp.gamezone.cz | * ofp.gamezone.cz | ||
* ofp.info {{cc|ofpr.info is valid}} | * ofp.info {{cc|[http://ofpr.info ofpr.info] is valid}} | ||
|param1= link= | |param1= link= | ||
|descr1= (named parameter) the URL | |descr1= (named parameter) the URL |
Revision as of 20:38, 5 June 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.
Currently listed dead sites:
- armaholic.com
- armedassault.com
- dev-heaven.net
- flashpoint1985.com
- ofp.gamepark.cz
- ofp.gamepark.eu
- ofp.gamezone.cz
- ofp.info // ofpr.info is valid
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://en.wikipedia.org/wiki/Bohemia Interactive|text= BI on Wikipedia}} | BI on Wikipedia |
{{ExternalLink|link= https://www.armaholic.com}} | -dead link- |
{{ExternalLink|link= https://www.armaholic.com/page.php?id=1|text= My {{Name|arma2}} mod}} | My Arma 2 mod (dead link) |
{{ExternalLink|link= http://ofp.gamepark.cz/index.php?showthis=2302}} | ofpr.info link (courtesy of OFP-Faguss.com) |
{{ExternalLink|link= http://ofp.gamepark.cz/index.php?showthis=2302|text= Screen shot of the week 21}} | Screen shot of the week 21 (courtesy of OFP-Faguss.com) |