• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Campaignbox

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 25,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template does not display in the mobile view of Wikipedia; it is desktop only. See Template:Navbox visibility for a brief explanation.
This template uses Lua:
  • Module:Military navigation (sandbox)
Redirect
  • {{CampaignTemplate:Campaign}}

Templates using the classes class=navbox ({{navbox}}) or class=nomobile ({{sidebar}}) are not displayed in article space on the mobile web site of English Wikipedia. Mobile page views accounted for 60% to 70% of all page views from 2020 through 2025. Briefly, these templates are not included in articles because 1) they are not well designed for mobile, and 2) they significantly increase page sizes—bad for mobile downloads—in a way that is not useful for the mobile use case. You can review/watch phab:T124168 for further discussion.

Contents

  • 1 Usage
    • 1.1 Campaignboxes
    • 1.2 Creating campaignboxes
      • 1.2.1 Parameters

Usage

Campaignboxes

One common type of navigational template in articles concerning conflicts, wars and related topics is the campaignbox template, intended to provide context and convenient navigation among articles on the battles in a campaign, front, theater or war (or, more rarely, among several campaigns or wars).

  • v
  • t
  • e
Second Punic War
Prelude
  • Saguntum
  • Rhône
  • Crossing of the Alps
Italy
  • Ticinus
  • Trebia
  • Mutina
  • 1st Placentia
  • Victumulae
  • Lake Trasimene
  • Umbrian Lake
  • Crossing of the Apennines
  • Ager Falernus
  • Geronium
  • Cannae
  • Silva Litana
  • 1st Nola
  • Nuceria Alfaterna
  • 1st Casilinum
  • Hamae
  • 1st Petelia
  • Cumae
  • 2nd Nola
  • 1st Beneventum
  • 3rd Nola
  • 2nd Casilinum
  • Lucania
  • Arpi
  • 1st Tarentum
  • 2nd Beneventum
  • Thurium
  • Campi Veteres
  • 1st Capua
  • Silarus
  • 1st Herdonia
  • 2nd Capua
  • Rome
  • Sapriportis
  • 2nd Herdonia
  • Numistro
  • Canusium
  • Manduria
  • Caulonia
  • 2nd Tarentum
  • Locri
  • 2nd Petelia
  • Venusia
  • 2nd Placentia
  • Grumentum
  • Metaurus
  • Kroton
  • Insubria
Iberia
  • Cissa
  • Ebro River
  • Ibera
  • Illiturgis
  • Munda
  • Orongi
  • Upper Baetis
  • 1st New Carthage
  • Baria
  • Baecula
  • Ilipa
  • Sucro
  • 1st Carteia
  • 2nd Carteia
  • 2nd New Carthage
Sicily and Sardinia
  • Lilybaeum
  • Malta
  • Decimomannu
  • Leontini
  • Syracuse
  • Himera
  • Agrigentum
North Africa
  • 1st Utica
  • 2nd Utica
  • Great Plains
  • Cirta
  • Zama
Greece
  • Apollonia
  • 1st Lamia
  • 2nd Lamia
  • Mantinea
  • v
  • t
  • e
Punic Wars
  • First
  • Mercenary
  • Second
  • Third

If the article includes an infobox, the campaignbox/es are usually placed immediately after it (i.e. just below it). If available, as with infoboxes such as {{Infobox military conflict}}, use the infobox's |campaignbox= parameter:

{{Infobox military conflict
...
}}
{{Campaignbox XXXX}}

or

{{Infobox military conflict
...
| campaignbox = {{campaignbox XXXX}}
}}

Articles may include multiple campaignboxes; typically, these are stacked under the infobox. The most common scenario occurs when two levels of campaignboxes are present – for example, an article about a battle can include both a campaignbox listing the battle itself and an "enclosing" campaignbox listing the campaign, theater or war during which the battle took place. Similarly, an article about a war can include both a campaignbox listing the war (among a series of wars) and a campaignbox for the war itself, listing the battles that took place during it.

Creating campaignboxes

Existing campaignboxes may be viewed through the Campaignbox template category to which campaignboxes are added automatically. If a new campaignbox becomes necessary, it should be named Template:Campaignbox XXXX (where XXXX is the (shortened) name of the campaign) and should use {{Campaignbox}} thus:

{{Campaignbox
| name = 
| title = 
| battles = 
| notes = 
}}

Parameters

name
The name by which Wikipedia refers to the template, i.e. "Template:Campaignbox XXXX". This can be produced by using {{subst:PAGENAME}}.
title
The name of the campaign or war, which, if an article about the campaign or war exists, should link to it. Dates should not be indicated unless needed for clarity. Note that long links may cause alignment problems; see the troubleshooting guide for more information.
battles
A chronological list of battles and operations in the campaign, linked as [[Battle of YYYY|YYYY]]. A convenient and accessible way to separate the items in the list is to add | listclass = hlist and then use the standard * (asterisk)-based listing format.
notes
(optional) Any explanatory notes needed to clarify the list. This option should be used sparingly.
(raw_name)
(optional; deprecated) This parameter overrides the use of the title in determining the template name and exists for the sake of backward compatibility. When creating a new campaignbox, both title and name should be specified as above and this parameter omitted.

The following optional parameters are passed on to the templates {{Military navigation}} or {{Navbox}} used to create campaignboxes and so can affect their styling. See these two templates' documentation pages for further details.

state
To set whether the campaignbox appears fully visible or collapsed (to titlebar only) when it is first presented by a page.
bodyclass
CSS styling to affect the whole template.
listclass
CSS styling to affect the list of battles, operations, etc. (e.g. to affect |battles=).

The use of special formatting (such as bolding or changes in font size) in the list of battles – particularly to mark battles as "important" – is generally discouraged; while there are a few cases where such approaches may be both helpful to the reader and sufficiently well-sourced that they do not constitute original research, they are usually both unnecessary and potentially confusing. Similarly, dividing the list of battles into multiple blocks by inserting heading-like separations should be exceptional; if such a division is felt to be needed, a better solution may be to split the one campaignbox into two or more.

The above documentation is transcluded from Template:Campaignbox/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Campaignbox&oldid=1196385940"
Last edited on 17 January 2024, at 07:30

Languages

    • Alemannisch
    • العربية
    • অসমীয়া
    • Asturianu
    • Авар
    • Azərbaycanca
    • تۆرکجه
    • Basa Bali
    • বাংলা
    • 閩南語 / Bân-lâm-gí
    • Башҡортса
    • Беларуская
    • भोजपुरी
    • Bikol Central
    • Български
    • Bosanski
    • Буряад
    • Català
    • Чӑвашла
    • Čeština
    • Cymraeg
    • Dansk
    • Deutsch
    • Eesti
    • Ελληνικά
    • Español
    • Euskara
    • فارسی
    • Føroyskt
    • ГӀалгӀай
    • 한국어
    • Հայերեն
    • हिन्दी
    • Ilokano
    • Bahasa Indonesia
    • Italiano
    • Jawa
    • Къарачай-малкъар
    • ქართული
    • Қазақша
    • Latviešu
    • Македонски
    • മലയാളം
    • مصرى
    • Bahasa Melayu
    • Монгол
    • မြန်မာဘာသာ
    • नेपाली
    • 日本語
    • Нохчийн
    • Norsk bokmål
    • ଓଡ଼ିଆ
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • ភាសាខ្មែរ
    • Português
    • Română
    • Русский
    • Scots
    • Shqip
    • සිංහල
    • Simple English
    • سنڌي
    • Slovenčina
    • Slovenščina
    • کوردی
    • Српски / srpski
    • Suomi
    • Svenska
    • தமிழ்
    • Татарча / tatarça
    • తెలుగు
    • ไทย
    • Türkçe
    • Українська
    • اردو
    • Tiếng Việt
    • 粵語
    • Zazaki
    • 中文
    • Jaku Iban
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 17 January 2024, at 07:30 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop