Link/External – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Template creation) |
Lou Montana (talk | contribs) m (Undo revision 291089 by Lou Montana (talk) No more need) Tag: Undo |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{link|}}} | <includeonly>{{#if: {{{link|}}} | ||
| {{#if: | | | ||
{{#if: {{#pos:{{{link}}}|web.archive.org}} | |||
{{# | | | ||
{{#pos:{{{link}}}|ofp.gamepark.cz}} | <span title="web.archive.org backup">{{#if: {{{text|}}} | ||
| [{{#replace:{{{link}}}| |_}} {{{text}}}] | |||
| {{#replace:{{{link}}}| |_}} | |||
}} <sub style="font-size: .8em">(archive)</sub></span> | |||
| | |||
{{#if: | |||
{{#pos:{{{link}}}|ofp.gamepark.cz}} | |||
{{#pos:{{{link}}}|ofp.gamepark.eu}} | |||
{{#pos:{{{link}}}|ofp.gamezone.cz}} | |||
{{#pos:{{{link}}}|ofp.info}} | |||
{{#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: | |||
{{#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}}}| |_}} | |||
}} | |||
}} | |||
}} | |||
}} | }} | ||
| -no links defined-{{TemplateCase||[[Category:ExternalLink template usage error]]}} | | -no links defined-{{TemplateCase||[[Category:ExternalLink template usage error]]}} | ||
}}</includeonly><noinclude>{{Doc/Template | }}</includeonly><noinclude>{{Doc/Template | ||
|descr= External link template | |descr= External link template allows external URLs filter/styliser depending on the domain name. | ||
It | 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 | |||
* flashpoint1985.com | |||
{{!}} | |||
* ofp.gamepark.cz | * ofp.gamepark.cz | ||
* ofp.gamepark.eu | * ofp.gamepark.eu | ||
* ofp.gamezone.cz | * ofp.gamezone.cz | ||
* 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>)<!-- | |||
-->{{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 37: | Line 69: | ||
|example4= <nowiki>{{ExternalLink|link= https://www.bohemia.net|text= BI website}}</nowiki> | |example4= <nowiki>{{ExternalLink|link= https://www.bohemia.net|text= BI website}}</nowiki> | ||
|result4= {{ExternalLink|link= https://www.bohemia.net|text= BI website}} | |result4= {{ExternalLink|link= https://www.bohemia.net|text= BI website}} | ||
|example5= <nowiki>{{ExternalLink|link= https:// | |example5= <nowiki>{{ExternalLink|link= https://www.armaholic.com}}</nowiki> | ||
|result5= {{ExternalLink|link= https:// | |result5= {{ExternalLink|link= https://www.armaholic.com}} | ||
|example6= <nowiki>{{ExternalLink|link= https://www.armaholic.com}}</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}} | |result6= {{ExternalLink|link= https://www.armaholic.com/page.php?id=1|text= My {{arma1}} mod}} | ||
|example7= <nowiki>{{ExternalLink|link= | |example7= <nowiki>* {{ExternalLink|link= http://ofp.gamepark.cz/index.php?showthis=2302}}</nowiki><br> | ||
|result7= {{ExternalLink|link= | <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> | |||
|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= 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}} |
|