Wikipedia – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{|class" to "{| class")
m (Some wiki formatting)
Line 4: Line 4:
== Usage ==
== Usage ==
{{<nowiki/>Wikipedia|article|text|lang}}
{{<nowiki/>Wikipedia|article|text|lang}}
* article: article's name '''on Wikipedia''' - spaces {{ic| }} are automatically converted to underscores {{ic|_}} (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, default "en")

Revision as of 17:30, 27 July 2022

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, default "en")
Examples
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)