Link/External – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Add ofpr.info (old FTP) filter) |
Lou Montana (talk | contribs) m (Undo revision 291089 by Lou Montana (talk) No more need) Tag: Undo |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{link|}}} | <includeonly>{{#if: {{{link|}}} | ||
| | | | ||
{{#if: | {{#if: {{#pos:{{{link}}}|web.archive.org}} | ||
| | |||
<span title="web.archive.org backup">{{#if: {{{text|}}} | |||
| [{{#replace:{{{link}}}| |_}} {{{text}}}] | |||
| {{#replace:{{{link}}}| |_}} | |||
}} <sub style="font-size: .8em">(archive)</sub></span> | |||
| | | | ||
{{#if: | {{#if: | ||
{{#pos:{{{link}}}| | {{#pos:{{{link}}}|ofp.gamepark.cz}} | ||
{{#pos:{{{link}}}| | {{#pos:{{{link}}}|ofp.gamepark.eu}} | ||
{{#pos:{{{link}}}| | {{#pos:{{{link}}}|ofp.gamezone.cz}} | ||
{{#pos:{{{link}}}| | {{#pos:{{{link}}}|ofp.info}} | ||
| {{#if:{{{text|}}}| | {{#pos:{{{link}}}|ofpr.info/ofpd/}} | ||
{{#pos:{{{link}}}|ftp://ofpr.info}} | |||
{{#pos:{{{link}}}|ftp://ftp.ofpr.info}} | |||
{{#pos:{{{link}}}|ftp://www.ofpr.info}} | |||
| <span style="font-family: consolas, monospace; font-size: 1.1em; letter-spacing: -0.01em" title="Old link: {{{link}}}">[https://ofp-faguss.com/addonsearch.php?searchfor={{URLENCODE:{{{link}}}}} {{#if:{{{text|}}}|{{{text}}}|ofpr.info link}}]</span> <span style="background-color: #FFF; border: 0.0625em solid #EEE; border-radius: 0.25em; color: #888; display: inline-block; font-size: .75em; line-height: 1.1em; padding: 0.25em; text-align: center; vertical-align: middle">link courtesy of<br>[https://ofp-faguss.com/ OFP-Faguss.com]</span> | |||
| | | | ||
{{#if: {{{text|}}} | {{#if: | ||
| [{{#replace:{{{link}}}| |_}} {{{text}}}] | {{#pos:{{{link}}}|armaholic.com}} | ||
{{#pos:{{{link}}}|armedassault.com}} | |||
{{#pos:{{{link}}}|dev-heaven.net}} | |||
{{#pos:{{{link}}}|flashpoint1985.com}} | |||
| <span title="Old link: {{{link}}}">{{#if:{{{text|}}}|''{{{text}}}'' <sub>(dead link)</sub>|''-dead link-''}}</span> | |||
| | |||
{{#if: {{{text|}}} | |||
| [{{#replace:{{{link}}}| |_}} {{{text}}}] | |||
| {{#replace:{{{link}}}| |_}} | |||
}} | |||
}} | }} | ||
}} | }} | ||
Line 32: | Line 39: | ||
It also replaces spaces in links by underscores. It adds the page to [[:Category:ExternalLink template usage error|ExternalLink template usage error]] category in case of improper formatting. | It also replaces spaces in links by underscores. It adds the page to [[:Category:ExternalLink template usage error|ExternalLink template usage error]] category in case of improper formatting. | ||
{{{!}} class="wikitable" | |||
! Filtered | |||
! Redirected | |||
{{!}}- style="vertical-align: top" | |||
{{!}} | |||
* armaholic.com | * armaholic.com | ||
* armedassault.com | * armedassault.com | ||
* dev-heaven.net | * dev-heaven.net | ||
* flashpoint1985.com | * flashpoint1985.com | ||
{{!}} | |||
* ofp.gamepark.cz | * ofp.gamepark.cz | ||
* ofp.gamepark.eu | * ofp.gamepark.eu | ||
Line 42: | Line 54: | ||
* ofp.info | * ofp.info | ||
* ofpr.info FTP links (<tt>ftp:<nowiki/>//ofpr.info</tt>, <tt>ftp:<nowiki/>//ftp.ofpr.info</tt>, <tt>ofpr.info/ofpd</tt>)<!-- | * ofpr.info FTP links (<tt>ftp:<nowiki/>//ofpr.info</tt>, <tt>ftp:<nowiki/>//ftp.ofpr.info</tt>, <tt>ofpr.info/ofpd</tt>)<!-- | ||
-->{{Feature|informative|[http://ofpr.info ofpr.info] domain itself is valid and points to http://ofpr.info.paradoxstudio.uk.}} | -->{{Feature|informative|[http://ofpr.info ofpr.info] domain itself is valid and points to http://ofpr.info.paradoxstudio.uk.<br><!-- | ||
-->ofp.gamepark.cz → ofp.info redirections are possible thanks to [https://ofp-faguss.com OFP-Faguss.com]!}} | |||
{{!}}} | |||
|param1= link= | |param1= link= | ||
|descr1= (named parameter) the URL | |descr1= (named parameter) the URL | ||
Line 59: | Line 73: | ||
|example6= <nowiki>{{ExternalLink|link= https://www.armaholic.com/page.php?id=1|text= My {{arma1}} mod}}</nowiki> | |example6= <nowiki>{{ExternalLink|link= https://www.armaholic.com/page.php?id=1|text= My {{arma1}} mod}}</nowiki> | ||
|result6= {{ExternalLink|link= https://www.armaholic.com/page.php?id=1|text= My {{arma1}} mod}} | |result6= {{ExternalLink|link= https://www.armaholic.com/page.php?id=1|text= My {{arma1}} mod}} | ||
|example7= <nowiki>{{ExternalLink|link= http://ofp.gamepark.cz/index.php?showthis=2302}}</nowiki> | |example7= <nowiki>* {{ExternalLink|link= http://ofp.gamepark.cz/index.php?showthis=2302}}</nowiki><br> | ||
<nowiki>* {{ExternalLink|link= http://ofp.gamepark.cz/index.php?showthis=2302|text= Screen shot of the week 21}}</nowiki><br> | |||
<nowiki>* {{ExternalLink|link= http://ofpr.info}}</nowiki><br> | |||
< | |||
<nowiki>* {{ExternalLink|link= ftp://ofpr.info}}</nowiki> | <nowiki>* {{ExternalLink|link= ftp://ofpr.info}}</nowiki> | ||
| | |result7= <nowiki/> | ||
* {{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://ofpr.info}} | * {{ExternalLink|link= http://ofpr.info}} | ||
* {{ExternalLink|link= ftp://ofpr.info}} | * {{ExternalLink|link= ftp://ofpr.info}} | ||
|example8= <nowiki>* {{ExternalLink|link= http://www.armedassault.com/william/|text= William Porter's Blog}}</nowiki><br> | |||
<nowiki>* {{ExternalLink|link= http://web.archive.org/web/20080401075137/http://www.armedassault.com/william/|text= William Porter's Blog}}</nowiki> | |||
|result8= <nowiki/> | |||
* {{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}} | |||
}}</noinclude> | }}</noinclude> |
Revision as of 15:37, 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}} |
|