Wikipedia – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Inline code|" to "{{ic|")
m (Fiiix)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|[https://{{#if:{{{3|}}}|{{{3}}}|en}}.wikipedia.org/wiki/{{#replace:{{{1}}}| |_}} {{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}{{#if:{{{3|}}}|{{#ifeq:{{{3|}}}|en||<nowiki> </nowiki>'''<span style="font-size: 0.66em; text-transform: uppercase">({{{3}}})</span>'''}}}}]|-Wikipedia article not defined-}}</includeonly><noinclude>
<includeonly>{{#if:{{{1|}}}
Creates a [https://en.wikipedia.org/wiki/Wikipedia Wikipedia] link.
| <span class="wikipedia" title="Go to the '{{#replace:{{{1}}}|_|&nbsp;}}' Wikipedia article{{#if:{{{3|}}}|<nowiki/> ({{uc:{{{3}}}}})}}">[https://{{#if:{{{3|}}}|{{lc:{{{3}}}}}|en}}.wikipedia.org/wiki/{{#replace:{{{1}}}| |_}} {{#if:{{{2|}}}|<nowiki/>{{{2}}}|{{{1}}}}}{{#if:{{{3|}}}|{{#ifeq:{{lc:{{{3|}}}}}|en||&nbsp;<span style="font-size: 0.66em">'''({{uc:{{{3}}}}})'''</span>}}}}]</span>
| -Wikipedia article not defined-
}}</includeonly><noinclude>
Creates a {{Link|https://en.wikipedia.org/wiki/Wikipedia|Wikipedia}} link.


== Usage ==
{{Feature|warning|This template has been integrated into {{Template|Link/External}}; it is kept only for historical purpose (history browsing).}}
{{<nowiki/>Wikipedia|article|text|lang}}
* article: article's name '''on Wikipedia''' - spaces {{ic| }} are automatically converted to underscores {{ic|_}} (required)
* text: link text (optional, ''article'' is used if not present)
* lang: Wikipedia language code on two letters: the https://'''{lang}'''.wikipedia.org/ part. (optional, default "en")


{|class="wikitable"
[[Category:Historical Templates|{{uc:{{PAGENAME}}}}]]
|+ Examples
! Code
! Result
|-
| <nowiki>{{Wikipedia}}</nowiki>
| {{Wikipedia}}
|-
| <nowiki>{{Wikipedia|article}}</nowiki>
| {{Wikipedia|article}}
|-
| <nowiki>{{Wikipedia|ARMA 3}}</nowiki>
| {{Wikipedia|ARMA 3}}
|-
| <nowiki>{{Wikipedia|ARMA_3|Arma 3}}</nowiki>
| {{Wikipedia|ARMA_3|Arma 3}}
|-
| <nowiki>{{Wikipedia|ARMA_III|Arma 3|fr}}</nowiki>
| {{Wikipedia|ARMA III|Arma 3|fr}}
|}
 
 
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
</noinclude>
</noinclude>

Latest revision as of 01:20, 24 February 2023

Creates a Wikipedia link.

This template has been integrated into {{Link/External}}; it is kept only for historical purpose (history browsing).