Wikipedia – Template

From Bohemia Interactive Community
Revision as of 13:50, 10 August 2021 by Lou Montana (talk | contribs) (Text replacement - "{|class" to "{| class")
Jump to navigation Jump to search

Creates a Wikipedia link.

Usage

{{Wikipedia|article|text|lang}}

  • article: article's name on Wikipedia - spaces 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)