Wikipedia – Template

From Bohemia Interactive Community
Revision as of 22:25, 19 March 2020 by Lou Montana (talk | contribs) (Add space replacement)
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)