Wikipedia – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) (Add span.wikipedia a.external usage) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}}|[https://{{#if:{{{3|}}}|{{{3}}}|en}}.wikipedia.org/wiki/{{#replace:{{{1}}}| |_}} {{#if:{{{2|}}}|<nowiki/>{{{2}}}|{{{1}}}}}{{#if:{{{3|}}}|{{#ifeq:{{{3|}}}|en|| | <includeonly>{{#if:{{{1|}}} | ||
| <span class="wikipedia">[https://{{#if:{{{3|}}}|{{lc:{{{3}}}}}|en}}.wikipedia.org/wiki/{{#replace:{{{1}}}| |_}} {{#if:{{{2|}}}|<nowiki/>{{{2}}}|{{{1}}}}}{{#if:{{{3|}}}|{{#ifeq:{{lc:{{{3|}}}}}|en|| <span style="font-size: 0.66em">'''({{uc:{{{3}}}}})'''</span>}}}}]</span> | |||
| -Wikipedia article not defined- | |||
}}</includeonly><noinclude> | |||
Creates a [https://en.wikipedia.org/wiki/Wikipedia Wikipedia] link. | Creates a [https://en.wikipedia.org/wiki/Wikipedia Wikipedia] link. | ||
Line 6: | Line 9: | ||
* article: article's name '''on Wikipedia''' - spaces {{hl| }} are automatically converted to underscores {{hl|_}} (required) | * article: article's name '''on Wikipedia''' - spaces {{hl| }} are automatically converted to underscores {{hl|_}} (required) | ||
* text: link text (optional, ''article'' is used if not present) | * 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") | * lang: Wikipedia language code on two letters: the https://'''{lang}'''.wikipedia.org/ part. (optional, case-insensitive, default "en") | ||
{| class="wikitable" | {| class="wikitable" |
Revision as of 16:38, 3 January 2023
Creates a Wikipedia link.
Usage
{{Wikipedia|article|text|lang}}
- article: article's name on Wikipedia - spaces -No content provided- are automatically converted to underscores _ (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, case-insensitive, default "en")
Code | Result |
---|---|
{{Wikipedia}} | -Wikipedia article not defined- |
{{Wikipedia|article}} | article |
{{Wikipedia|ARMA 3}} | ARMA 3 |
{{Wikipedia|ARMA_3|Arma 3}} | Arma 3 |
{{Wikipedia|ARMA_III|Arma 3|fr}} | Arma 3 (FR) |
{{Wikipedia|RGB|#RRGGBB}} | #RRGGBB |
{{Wikipedia|ARGB|#AARRGGBB|de}} | #AARRGGBB (DE) |