Link/External – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added arma2base.de to the list of 'dead' sites)
m (Undo revision 291089 by Lou Montana (talk) No more need)
Tag: Undo
(5 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}}
{{#pos:{{{link}}}|ofp.gamepark.cz}}
|
{{#pos:{{{link}}}|ofp.gamepark.eu}}
<span title="web.archive.org backup">{{#if: {{{text|}}}
{{#pos:{{{link}}}|ofp.gamezone.cz}}
| [{{#replace:{{{link}}}| |_}} {{{text}}}]
{{#pos:{{{link}}}|ofp.info}}
| {{#replace:{{{link}}}| |_}}
| <span style="font-family: consolas, monospace; font-size: 1.1em; letter-spacing: -0.01em">[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>
}} <sub style="font-size: .8em">(archive)</sub></span>
<!-- <div style="background-color: #FFF; border: 0.00625em 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"> -->
|
|
{{#if:
{{#if:
{{#pos:{{{link}}}|armaholic.com}}
{{#pos:{{{link}}}|ofp.gamepark.cz}}
{{#pos:{{{link}}}|armedassault.com}}
{{#pos:{{{link}}}|ofp.gamepark.eu}}
{{#pos:{{{link}}}|dev-heaven.net}}
{{#pos:{{{link}}}|ofp.gamezone.cz}}
{{#pos:{{{link}}}|flashpoint1985.com}}
{{#pos:{{{link}}}|ofp.info}}
| {{#if:{{{text|}}}|''{{{text}}}'' <small>(dead link)</small>|''-dead link-''}}
{{#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}}
| {{#replace:{{{link}}}| |_}}
{{#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 27: 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.


Currently listed dead sites:
{{{!}} 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
* ofp.gamezone.cz
* ofp.gamezone.cz
* ofp.info {{Feature|informative|[http://ofpr.info ofpr.info] domain is valid and points to http://ofpr.info.paradoxstudio.uk.}}
* 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 &rarr; 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 48: 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://en.wikipedia.org/wiki/Bohemia Interactive|text= BI on Wikipedia}}</nowiki>
|example5= <nowiki>{{ExternalLink|link= https://www.armaholic.com}}</nowiki>
|result5= {{ExternalLink|link= https://en.wikipedia.org/wiki/Bohemia Interactive|text= BI on Wikipedia}}
|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= https://www.armaholic.com/page.php?id=1|text= My {{Name|arma2}} mod}}</nowiki>
|example7= <nowiki>* {{ExternalLink|link= http://ofp.gamepark.cz/index.php?showthis=2302}}</nowiki><br>
|result7= {{ExternalLink|link= https://www.armaholic.com/page.php?id=1|text= My {{Name|arma2}} mod}}
<nowiki>* {{ExternalLink|link= http://ofp.gamepark.cz/index.php?showthis=2302|text= Screen shot of the week 21}}</nowiki><br>
|example8= <nowiki>{{ExternalLink|link= http://ofp.gamepark.cz/index.php?showthis=2302}}</nowiki>
<nowiki>* {{ExternalLink|link= http://ofpr.info}}</nowiki><br>
|result8= {{ExternalLink|link= http://ofp.gamepark.cz/index.php?showthis=2302}}
<nowiki>* {{ExternalLink|link= ftp://ofpr.info}}</nowiki>
|example9= <nowiki>{{ExternalLink|link= http://ofp.gamepark.cz/index.php?showthis=2302|text= Screen shot of the week 21}}</nowiki>
|result7= <nowiki/>
|result9= {{ExternalLink|link= http://ofp.gamepark.cz/index.php?showthis=2302|text= Screen shot of the week 21}}
* {{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
  • armaholic.com
  • armedassault.com
  • dev-heaven.net
  • flashpoint1985.com
  • ofp.gamepark.cz
  • ofp.gamepark.eu
  • ofp.gamezone.cz
  • ofp.info
  • ofpr.info FTP links (ftp://ofpr.info, ftp://ftp.ofpr.info, ofpr.info/ofpd)
    ofpr.info domain itself is valid and points to http://ofpr.info.paradoxstudio.uk.
    ofp.gamepark.cz → ofp.info redirections are possible thanks to OFP-Faguss.com!

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
Examples
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://ofpr.info}}
* {{ExternalLink|link= ftp://ofpr.info}}

* {{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}}