Suggest adding

edit

- War (e.g. WW I, Napoleonic Wars)

- Timeframe

- Significance (Critical, sideshow)

- Units involved

- Commanders

- Outcome

Andreas 15:26, 19 December 2005 (UTC)Reply

That would make it redundant with {{warbox}}, wouldn't it? This is really intended to be a simple list of battles for addition to a larger template. —Kirill Lokshin 15:29, 19 December 2005 (UTC)Reply
Not sure about that Kirill, since a war and a campaign are two different things, even though they may have similar attributes. E.g. you could use the campaign template to break the war of 1812 into its various campaigns, giving more detailed information for each than you could in the {{warbox}}. Just off the top of my head. Andreas 15:41, 19 December 2005 (UTC)Reply
Actually, {{warbox}} is intended for use on anything from wars down to individual battles (don't mind the somewhat misleading name). If you have a separate article on, say, the Niagara campaign, you would have a warbox on that article that discusses only the campaign.
On the other hand, we don't want those details in the main War of 1812 warbox, since it will become absurdly long ;-) —Kirill Lokshin 15:50, 19 December 2005 (UTC)Reply
Thanks for setting me right - as you can see, I am a bit new here. In that case I agree. Andreas 15:51, 19 December 2005 (UTC)Reply
No problem :-) —Kirill Lokshin 15:53, 19 December 2005 (UTC)Reply

Built-in edit button

edit
{{{name}}} edit
{{{battles}}}

Adding a built-in edit button to the campaignbox is quite simple and makes life easier to editors. Of course, some campaignboxes don't get changed once they're made, but if they do this could come in quite handy. -- Миборовский U|T|C|M|E|Chugoku Banzai! 06:10, 13 April 2006 (UTC)Reply

Argh! The table on the right is blocking my campaignbox. It's to the bottom right. -- Миборовский U|T|C|M|E|Chugoku Banzai! 06:11, 13 April 2006 (UTC)Reply
Not sure how useful it would be on most of them, since they rarely need editing; and it has the twin problems of (a) breaking the centering of the title and (b) making vandalism easier (almost nobody has the campaignboxes watchlisted). Kirill Lokshin 09:39, 13 April 2006 (UTC)Reply

Protection

edit

This template is protected, but no reason is given. --Oden 07:28, 15 July 2006 (UTC)Reply

I believe it was protected a while back due to the fact that it's an extremely high-use meta-template, and mucking around with it would tend to have significant effects on the servers. I'm not sure if this is still the case, though. Kirill Lokshin 07:30, 15 July 2006 (UTC)Reply
Requests for unprotection can be made by adding ===={{lt|Campaign}}==== at Wikipedia:Requests_for_page_protection#Current_requests_for_unprotection. --Oden 07:40, 15 July 2006 (UTC)Reply
Is there any particular reason to unprotect this, though? Kirill Lokshin 07:48, 15 July 2006 (UTC)Reply
Protection is considered harmful. see: m:Protected pages considered harmful. (See also Wikipedia:Protection policy and Wikipedia:Semi-protection policy). This template has neither been subject to a edit war or vandalism, so the only rationale seems to be because it is a highly visible template (see Wikipedia:High-risk templates). However, it would be prudent to justify this on the talk page. (See also log entry: [1]).
It would also be prudent to add protection template (e.g. {{protected}} or {{vprotected}} for vandalism) to the top of the temporarily protected page. When protecting a template, you place the notice inside <noinclude></noinclude> tags so that it does not show up when the template is transcluded. Alternatively, the tag can go on the template's talk page. --Oden 08:23, 15 July 2006 (UTC)Reply
If you feel it should be unprotected, you already know where to ask. I don't believe there's any reason to do so, considering how high-visibility this is; hence, I'm not going to unprotect it myself. (I would also point out that the ever-so-slightly condescending tone of your remarks isn't a particularly good thing.) Kirill Lokshin 16:35, 15 July 2006 (UTC)Reply

My intention in raising this subject is to guard against arbitrary use by administrators. My tone is dispassionate in order to adhere to the subject at hand and to avoid any unnecessary discussions (in addition my tone is not causal to the subject at hand, please adhere to the subject).

Furthermore, while I may know where to ask there are those who do not, hence the need for a template. Since I am not an administrator I have had to place it on this talk page, instead of on the template page where it belongs (see Category:Protection templates). --Oden 09:13, 16 July 2006 (UTC)Reply

Your tone is insulting rather than dispassionate, frankly. Kirill Lokshin 14:51, 16 July 2006 (UTC)Reply
A quick glance at Special:Contributions suggests the work of a serious and dedicated editor, but also stands in contrast to the comments made above. A prolonged discussion on proper etiquette would, in my opinion, serve no purpose (especially since the subject already has been extensively covered).
I am also pleased to note that my suggestions were implented, to the benefit of all. --Oden 15:35, 16 July 2006 (UTC)Reply

Mini-navbar

edit

Is there anyway we can add the {{Tnavbar-mini}} template (or a modification of) to our general campaign box template in a way that allows users to edit/discuss the child templates easily? Oberiko 20:33, 28 July 2006 (UTC)Reply

Not without editing every box individually, unfortunately. The obvious trick—using something like PAGENAME to get to the child template—won't work when they're actually in articles; the only option would be to code the template's name manually in each.
(Having said that, I'm not sure if such a change would necessarily be beneficial. Given that few campaignboxes seem to be watchlisted, we could be asking for a major surge in vandalism problems.) Kirill Lokshin 20:38, 28 July 2006 (UTC)Reply

Error in The Philippine-American War Campaign Box

edit

The Pulang Lupa link reads 'Pulang Lupal'. I request an administrator to fix it. Kguirnela 06:28, 1 November 2006 (UTC)Reply

Fixed. Thanks for catching that! Kirill Lokshin 13:17, 1 November 2006 (UTC)Reply
Thanks for the fix and you are welcome! =) Kguirnela 04:33, 2 November 2006 (UTC)Reply

Text size

edit

The recent reduction in font size is a good thing on large templates with ten battles or more, but it makes some templates look ridiculous. For example, Template:Campaignbox Third Crusade and even Template:Campaignbox Frankish Civil War (715-718), where the title is too large comparatively. Srnec 16:45, 13 August 2007 (UTC)Reply

FWIW, the change ocurred because the base template is now derived from {{navbox generic}}, as part of the effort to standardize navigation template layouts. Admittedly the smallest cases look a bit strange, but they're pretty much the exception rather than the rule; with our lax standards on article inclusion, even the smallest battles are winding up with articles to be linked, which is causing the vast majority of campaignboxes to grow to a reasonable size. Kirill 17:04, 13 August 2007 (UTC)Reply

Collapsible option

edit

There needs to be {{{state|}}} after the |state= parameter to force a default uncollapsed state and to allow people to choose what state they want each transcluded campaignbox to be. Centyreplycontribs15:38, 15 September 2007 (UTC)Reply

Not quite sure what you mean here. The template doesn't export a state; it just autocollapses whenever two or more templates are on the same page, as most navigation templates do. Are you looking to change that on a per-template level, or a per-article one? Kirill 16:23, 15 September 2007 (UTC)Reply
Basically if you just put |state= into this template, all campaignboxes will have the default state attribute automatically given to them. But putting |state={{{state|}}}, you basically pass on the determination of the state attribute to the actual campaignbox. So you can set the collapsible state for every individual campaignbox, ie. change it from the default setting if you wish, instead of forcing all campaignboxes to have the default setting. Centyreplycontribs22:54, 15 September 2007 (UTC)Reply
Ah, ok; so you want each individual campaignbox to be able to override the default? Easy enough to do. Kirill 23:15, 15 September 2007 (UTC)Reply

How do i create a campaignbox that is not default autocollapsed? XavierGreen —Preceding comment was added at 21:51, 16 January 2008 (UTC)Reply

bg:

edit

{{editprotected}} Could you please add bg:Шаблон:Кампания?Thank you.--Desertus Sagittarius 14:39, 4 November 2007 (UTC)Reply

Done. Kirill 15:46, 4 November 2007 (UTC)Reply

Text flow issues

edit

The campaign box seems to be causing text flow issues eg on Second Battle of Ypres and Battle of the Somme, the text does not flow from the top of the article but only from the joint of the campaign box and infobox. Can't see the cause myself, anyone up to determining and correctingGraemeLeggett 21:40, 6 November 2007 (UTC)Reply

Warbox

edit

You may want to clarify in the article, whether we are using the "Warbox" or "Campaignbox" for military articles. In addition, an explanation of the differences between each of them. It is rather confusing. Battlefield 10:39, 9 December 2005 (UTC)Reply

Multiple campaign boxes

edit

Can one article include more than one campaignbox, or a single battle be listed on multiple campaigns? Ideally, obviously, that wouldn't happen. But there's a couple of situations where it might happen:

  • Firstly, many of the current campaignboxes are actually wars, not campaigns. Some of those wars contain only one campaign; others don't. As we build out the articles on those wars we're bound to have an intermediary stage when some battles are listed under both the overall war and the specific campaign.
  • Secondly, what a 'campaign' is partly depends on the perspective. Take the Battle of the Chesapeake in 1781. Is it part of Washington's Yorktown campaign (from the American and French perspective), part of the British southern campaign (from the British perspective), part of the campaign to control American waters or part of the wider naval campaign between Britain and France in the Western hemisphere (after all, the fleets of De Grasse and Hood had fought before in April 1781 off Martinique, sailed north to the Chesapeake a few days apart and would fight again in January 1782 off St. Kitts)? Arguably, it's any one or all four.

Obviously we don't want multiple campaignboxes on a single article, but perhaps we need to evolve some guidelines to establish what the appropriate campaign is and whether occasional exceptions are acceptable. JimmyTheOne 23:30, 13 January 2006 (UTC)Reply

My view on this:
  • DWikipedia talk:WikiProject Military historyouble listing as an intermediary stage is fine, of course, since the idea is to eventually remove it.
  • More generally, the purpose of the campaignbox is not necessarily to represent a canonical "campaign" in the military sense; but to provide a convenient way for navigating related battles. Thus, a more "accurate" division is not always better. Not all campaigns need have their own campaignboxes—for many wars, in fact, a single campaignbox is sufficient. In the example you gave, for instance, I would prefer the latter options, as they allow more battles per campaignbox (campaignboxes with only one or two battles are not particularly useful).
  • Occasional exceptions are acceptable, as they are to almost all rules. We don't want to encourage having multiple campaignboxes, though.
I agree, however, that we should have some better guidelines for how to divide larger wars into campaigns. It may be worthwhile to continue that discussion on the project page, where it's likely to get more input. Kirill Lokshin 23:45, 13 January 2006 (UTC)Reply
Okay, I just looked over on the above linked Project page and didn't see any discussion of this over there. I'm starting to get into this aspect through the Korean War, where currently the campaignbox is more geared towards (some of) the battles of the Korean War, instead of the various campaigns themselves. I'm thinking that (maybe for larger wars, like Korea), it be broken out as like a "warbox" which would list the various campaigns of the war, with associated campaignboxes which would include the various battles of that campaign. So, the Korean War would be broken out with the initial campaignbox in the upper right titled "Korean War" and then list the various campaigns (five of them). Then, say the article on Battle of Heartbreak Ridge would also have an additional campaignbox for the "Outpost Battles (July 1951- July 1953)", which would then list the articles that fall into that campaign.
I think the biggest drawback at this time though may be that most of the major battles currently documented here, fall into the "Outpost Battles (July 1951- July 1953)" campaign, and the other four campaigns will probably only have one battle currently on here, though they should be expanded eventually. The "Chinese Intervention (3 November 1950-24 January 1951)" campaign should also include (besides just the Battle of Chosin Reservoir) Task Force Faith, and Task Force Drysdale may qualify as an article in it's own right with a little more research.
Ideas/opinions? Am I wrong (Which I very well could be, as new as I am). wbfergus 14:17, 26 December 2006 (UTC)Reply
It may be doable, although I would suggest keeping things in a single campaignbox until there are enough articles (or clearly defined links to future articles) to make a set of split boxes worthwhile. This is a typical approach for larger wars (see, for example, the multitude of campaignboxes for WWI and WWII, and how multiple ones are applied to particular battles); the real question is whether there are enough battles that a single box is unwieldy. Kirill Lokshin 15:47, 26 December 2006 (UTC)Reply
Okay Kirill, I'll take your advice and leave them as they are for now, though I'll add more battles to them. At what point is there to many battle listings for one campaignbox? Is there a number of battles, or does it depend more on how many lines the box takes up? I need to go through some of the Korean War articles and see that they all have the proper categories assigned and then see which 'battles' are missing from the campaignbox. wbfergus 17:07, 26 December 2006 (UTC)Reply
There's no hard rule, I think; but, for comparison, something like {{Campaignbox Thirty Years' War}} is probably near the limit of what's doable with a single template. Kirill Lokshin 17:10, 26 December 2006 (UTC)Reply

Capitalization in campaign box headers

edit

Does the wacky Wikipedia capitalization standard apply to headers in campaign boxes? Editors seem to be divided, so we get things like, in the titles of Thirty Years' War campaign boxes: "Swedish intervention" (correct by Wikipedia standards) versus "Danish Intervention" (a capitalization standard for titles and headers used about everywhere except for Wikipedia). Like the Thirty Years' War boxes, other campaign boxes seem to be capitalized at random, so perhaps one standard ought to be applied. --Kevin Myers | (complaint dept.) 15:37, 14 March 2006 (UTC)Reply

Most campaignboxes use proper nouns as headers, so it shouldn't be a very widespread issue. As far as I can tell, though, normal capitalization rules don't seem to be consistent within templates anyways; I would try to move towards Wikipedia-style capitalization when necessary, but I don't think it's a big deal at this point. —Kirill Lokshin 15:54, 14 March 2006 (UTC)Reply
Not that it's a big deal, but it's more widespread than you suggest. Most of the zillion American Civil War boxes seem to use non-Wikipedia style capitalization; all of the American Revolutionary War boxes did too, until I changed a couple. I think most Mexican-American War and Seven Years' War boxes use non-standard capitalization. Mind you, I don't really don't care and won't go changing any headers (except boxes I edit for other reasons). Just pointing out that there's no standard, even for boxes within a single war, and that it's something people might want to think about when editing the boxes. --Kevin
I'll admit that I had entirely forgotten just how many Civil War campaignboxes we had ;-)
In any case, we'll probably do another review of campaignboxes at some point (in a few months?), which would be a good time to take a look at this issue again. For the time being, casual cleanup by people editing the boxes for other reasons should be sufficient. —Kirill Lokshin 16:16, 14 March 2006 (UTC)Reply

Axis-Soviet War Campaignbox

edit

Template:Campaignbox_Axis-Soviet_War is currently subject of an edit conflict between me and Ghirlandajo. This is because of the unresolved issue of what size battles/operations should be added. I have made a proposal on the talk page of the campaign box, but this was never discussed to any conclusion. As a result it now appears to me that Ghirlandjo simply reverts any additions to the box, regardless of the size of the battle they refer to. This is not logical, since it leaves the box containing some smaller actions simply because they were added earlier. I would appreciate comments and suggestions. Andreas 15:17, 10 April 2006 (UTC)Reply

I have to say I'm not surprised. This seems to be his typical behaviour. Albrecht 16:09, 10 April 2006 (UTC)Reply

Sub-set campaigns

edit

I have a quick question on a somewhat unconventional situation.

In World War II, there was a series of battles in North Africa referred to as the Western Desert Campaign. The American's joined relatively late and, in their naming scheme, called the actions of their forces the Egypt-Libya Campaign.

Now, it is my opinion that the ELC is contained entirely within the WDC. Do I add ELC to the WDC campaign box, and, if so, do I need to somehow differentiate it from other entires (which are operations and battles)? Oberiko 20:56, 10 July 2006 (UTC)Reply

Well, based on your brief description (and I know next to nothing on this topic, so this idea may be utter nonsense), I would suggest two things:
  1. Merge the two campaign articles, as this seems like a classic case of alternate names. I can't really see what the benefit of duplicating information about the (presumably same?) actual engagements across two articles is; the (new) single article would give an explanation of the different naming schemes and what each name is considered to encompass, but the overall narrative would be combined.
  2. As a consequence, omit the alternate name from the campaignbox and just list the actual engagements.
I think that, in general, there doesn't need to be a separate article on every single named "campaign" of the war if it is more natural to combine several of them in a single article. Clearer narrative structure should, in my opinion, take precedence. Kirill Lokshin 21:03, 10 July 2006 (UTC)Reply
I have run into a similar problem first with the Mongol Invasions and then with the Muslim expansion, which are part of a larger series of campaings not even necessarily in the same theater of war. I am attempting a method with the Template:Campaignbox Early Muslim Expansions and can use some input in sorting out the kinks which I then hope to move onto Seljuks, Khwarezmians, Ghaznevid and the Mongols. Maybe that is too ambitious but I can start or create a ton of stubs!--Tigeroo 10:45, 2 August 2006 (UTC)Reply
Looks fine so far. :-) Kirill Lokshin 10:47, 2 August 2006 (UTC)Reply

Vietnam

edit

Is a Vietnam campaignbox necessary? --Brand спойт 10:08, 5 September 2006 (UTC)Reply

One for the Vietnam War? It would certainly be a good idea; there's a large number of existing articles that would need to be put in chronological order to create it, though. Kirill Lokshin 11:33, 5 September 2006 (UTC)Reply

Georgian Civil War

edit

Just wondering if anyone had any thoughts on moving the Georgian-Ossetian conflict and the Georgian-Abkhaz conflict out of the Template:Campaignbox Post-Soviet Conflicts in the Caucasus and into an infobox for the Georgian Civil War. It appears that these conflicts are more related to Georgia than to the other conflicts such as Chechnya, etc. Publicus 13:39, 24 October 2006 (UTC)Reply

There's no reason we can't have both, of course; there are numerous other cases where a particular battle/war/etc. is listed on mutliple campaignboxes. Kirill Lokshin 15:12, 24 October 2006 (UTC)Reply

Russo-Turkish Wars

edit

Are all those Russo-Turkish Wars in the right place? Should they not come under the 18th and 19th centuries rather than 15th-17th century? Thanks Raymond Palmer 19:49, 19 January 2007 (UTC)Reply

They're under the 17th century because that's when the "Russo-Turkish Wars" began; all of the series of wars listed here go by the overall start of the conflict. (I've added the overview campaignbox for the entire conflict, which might make things a bit clearer. It was actually supposed to be added a while ago, but we never got around to it, for some reason.) Kirill Lokshin 19:59, 19 January 2007 (UTC)Reply
I see. What about adding Queen Anne's War as part of the War of the Spanish Succession. Also, the Dutch War (Franco-Dutch War) is not part of the Anglo-Dutch Wars. More accuratley, I think, to describe the Third Anglo-Dutch war as part of the Franco-Dutch War. I hope that makes sense? Raymond Palmer 20:09, 19 January 2007 (UTC)Reply
Well, if there are any actual campaignboxes that need to be moved, please feel free to move them; but some of these wars don't actually have templates. Kirill Lokshin 20:13, 19 January 2007 (UTC)Reply
Yes, sorry, I just realised there is no campaignbox for QA war. Raymond Palmer 20:15, 19 January 2007 (UTC)Reply

Italics in campaignboxen

edit

Is there any standard guideline on whether operation names should be in italics in campaignboxen? AFAIK, the definitive guideline for names in article text is just WP:MOS, WP:ITALICS and WP:MOS-T, which don't include military operations as things you should italicise. I would guess this is the same for the boxes as well, but you never know.... -- Hongooi 10:40, 24 July 2007 (UTC)Reply

There's a long-standing—but never consistently applied—convention of italicizing operational names as a mnemonic device to distinguish them from place names (e.g. Normandy versus Neptune). We've never had a very strict rule on this point, though.
(The MOS really covers only article text; visual design elements like templates will almost always have formatting that violates some provision of it.) Kirill 14:33, 24 July 2007 (UTC)Reply
Fair enough. The MOS guideline for article text is still no italics though, correct? (Ie, as opposed to having no guideline one way or the other, which is what the absence of a positive rule could be interpreted to mean.) -- Hongooi 15:04, 24 July 2007 (UTC)Reply
Yes, that's correct. Kirill 16:21, 24 July 2007 (UTC)Reply

v.d.e Problems

edit

Just like to give a head up that at the moment the campaign box is sometimes too small to fit in the header a 'hide' button, the v.d.e links and the name of the war. An example is Template:Campaignbox War of the Austrian Succession. The box looks ugly with the v.d.e and ugly without (when the text is aligned off center). Something needs to be done - maybe make the font smaller? Centyreplycontribs12:24, 5 September 2007 (UTC)Reply

This is a known issue; see WP:MILHIST#NAVPROBLEMS for the needed fix. Kirill 13:34, 5 September 2007 (UTC)Reply
edit

Would it be possible to include a footer / notes section, similar to the "below" section on our military navigation template? I wouldn't mind using it for brief notes and annotation explanations.

For example, in the Battle of the Mediterranean, roughly half of the activities / operations were supply convoys, while the others indicate prominant engagements. I'd like to keep them in chronological order while still clearly differentiating them. Oberiko (talk) 15:28, 26 February 2008 (UTC)Reply

Well, it'd be pretty trivial to add another field—this template is merely a special case of {{military navigation}} to begin with—but how do you want it to be formatted? The actual "below" field in the navigation template displays in a rather dark gray, which might be too jarring here given that we don't have the gray bars on the left. Alternately, we could use the second group field, which would have a much lighter background. Kirill 02:53, 27 February 2008 (UTC)Reply
I trust your aesthetics judgement far more then my own Kirill, but I think the exsiting "below" (as seen on Template:Navbox) would work well, and keep our colors fairly standardized. Oberiko (talk) 14:39, 27 February 2008 (UTC)Reply
Ok, I've tentatively added a "notes=" parameter; please test it out and let me know whether it'll work for what we need here. Kirill 02:13, 28 February 2008 (UTC)Reply
I've put it in the Battle of the Mediterranean box and it looks pretty good. Thanks Kirill. Oberiko (talk) 17:44, 28 February 2008 (UTC)Reply

Campaignbox Western Front (World War I)

edit

This campaign box requires a clean-up and I am not prepared to do so without some additional opinions or some form of consensus. The campaign box contains a number of local and, in the big scheme of the western front, small battles. Can someone possible put a proposal on paper.

I have started a discussion at Template talk:Campaignbox Western Front (World War I)

Labattblueboy (talk) 18:42, 25 July 2008 (UTC)Reply

I have updated the campaign box --Labattblueboy (talk) 20:32, 6 December 2008 (UTC)Reply

Request/suggestion

edit

Hi. Could the current code for this template be replaced with the following, which allows the use of name with title (as in other {{navbox}}es) as well as raw_name (longer) with name?:

<includeonly>{{Military navigation
|raw_name = {{#if:{{{raw_name|}}} |{{{raw_name|}}} |{{{name|}}} }}
|state = {{{state|}}}
|title = {{#if:{{{raw_name|}}} |{{{name|}}} |{{{title|}}} }}
|list1 = {{{battles|}}}}}
|below = {{{notes|}}}
{{#ifeq:{{ARTICLESPACE}}|Template |[[Category:Campaignbox templates|{{PAGENAME}}]]}}
}}</includeonly><noinclude>
{{pp-template}}
{{documentation}}
</noinclude>

From the above, I see {{Military navigation}} also offers only raw_name and name, so suggest this similarly updated to handle name with title.

I've also seen the use of {{pbrk}} within {{Campaign}} titles, which generates a wide gap between the lines it wraps (at least, it does here, with Firefox pre-v3 on a Windows XP PC). Suggest, therefore, that the |title line above becomes:

|title = <div style="padding:0.2em 0; line-height:1.3em;">{{{title|}}}</div>

(The padding style ensures the title's text doesn't ride too close to the top/bottom edges of the campaignbox's titlebar.)
Sardanaphalus (talk) 02:53, 31 August 2008 (UTC)Reply

Unfortunately, there are many legacy instances of the template which have a "name" parameter and nothing else, which won't work with the code above. I'll try to come up with something that does what you want without breaking in those cases. Kirill (prof) 06:37, 31 August 2008 (UTC)Reply
  • Would this handle them? (also incorporates title styling mentioned above):
<includeonly>{{Military navigation
|raw_name = {{#if:{{{raw_name|}}} |{{{raw_name|}}} |{{#if:{{{title|}}} |{{{name|}}} |}} }}
|state = {{{state|}}}
|title = <div style="padding:0.2em 0; line-height:1.3em;">{{#if:{{{title|}}} |{{{title}}} |{{{name}}} }}</div>
|list1 = {{{battles|}}}}}
|below = {{{notes|}}}
{{#ifeq:{{ARTICLESPACE}}|Template |[[Category:Campaignbox templates|{{PAGENAME}}]]}}
}}</includeonly><noinclude>
{{pp-template}}
{{documentation}}
</noinclude>

Sardanaphalus (talk) 15:15, 1 September 2008 (UTC)Reply

Yes, that should work, minus the extra brackets ;-)
I've updated the code, so please feel free to test it out and see if everything is functioning as expected. Kirill (prof) 15:27, 1 September 2008 (UTC)Reply
The current logic for the name field passed onward strikes me as odd:
|name = {{#if:{{{raw_name|}}} |{{{raw_name|}}} |{{#if:{{{title|}}} |{{{name|}}} |}} }}
I read this as "If raw_name is set, use raw_name. Otherwise, if title is set, use name. Otherwise, leave blank." Is there some reason why the use of name is predicated this way? Based on the documentation it seems to me that what ought to be displayed is the title
I ran into this because the documentation is out of date (it doesn't describe parameters currently in use by the template), and I encountered a campaignbox in which title was set but name and raw_name were not. Can the doc be updated to clarify which parameters (should) result in text that is displayed, and which (should) result in the presence or absence of the navbar buttons (view/edit/history)? (I'd do this if someone can assert that the current behavior is actually what is intended.) Magic♪piano 15:48, 23 January 2012 (UTC)Reply
The reason for the odd logic is that the name parameter is actually used for two entirely different things. When the template was first created, name was used for the "displayed" name at the top of the box, and raw_name was used for the name of the template itself. As part of the transition to {{navbox}}-compatible parameters, this was changed so that name would contain the name of the template and title would contain the displayed name.
The logic is essentially attempting to determine whether the template uses old-style or new-style parameters; if the raw_name parameter is present, it assumes that the old-style parameters are in use, and if the title parameter is present, it assumes that the new-style parameters are in use. (The reason, incidentally, why the logic makes a second check after checking raw_name is that the parameters are optional; a lone name parameter is valid under either system.)
In the long term, I would recommend changing all uses of this template to the new syntax rather than trying to document both variants. Kirill [talk] [prof] 00:55, 26 January 2012 (UTC)Reply
Thanks for the explanation. I still think all of the parameters ought to be documented, although ones that should not be used should be marked as deprecated (or maintained for backward compatibility). It sounds from your explanation like raw_name is to be avoided, yes? Magic♪piano 18:32, 26 January 2012 (UTC)Reply
Yes, that's correct; the newer combination ("name" + "title") is the preferred one. Kirill [talk] [prof] 04:23, 27 January 2012 (UTC)Reply
I've updated the doc page to reflect this. Feel free to correct anything I may have gotten wrong. Magic♪piano 14:28, 27 January 2012 (UTC)Reply

Campaignbox covers article text

edit

In the article 1887 Constitution of the Kingdom of Hawaii, the campaignbox containing "Hawaiian Revolutions" covers part of the article text in the section "Rebellion of 1887". I do not know if that is an issue with the Campaignbox template. The military history style guide does acknowledge some alignment problems caused by the template, but I am unsure if any of the proposed solutions really address this situation. I am posting here as well as the specific article's discussion page, just to ensure that the template authors are notified.--Rpclod (talk) 13:20, 6 July 2010 (UTC)Reply

This appears to be a rendering issue with variable-width items stacked along one margin of the page; I've rearranged the templates in question to remove it. Kirill [talk] [prof] 15:54, 7 July 2010 (UTC)Reply
Thank you for addressing the issue so promptly. Unfortunately it seems as though someone decided to remove the campaignbox from the referenced article, so I cannot confirm that it works there.--Rpclod (talk) 11:53, 8 July 2010 (UTC)Reply

Subcategories

edit

Hello!

Category:Campaignbox templates has become a bit overcrowded, and subcategories have been created, such as Category:Ottoman Empire campaignbox templates. However, the main category is still hardcoded in the {{campaign}} template, so the pages end up being in the main category when they should not.

Is there a way to solve that, such as adding a "cat=no" parameter preventing this inclusion when specified? (a bot would be welcome to do the clean-up afterwards btw :) Place Clichy (talk) 18:17, 13 December 2010 (UTC)Reply

It wouldn't be difficult to force the default category to turn itself off. Having said that, would it be more useful to simply have an on/off parameter, or to have a parameter for specifying a sub-category that would turn the main category off when provided? Kirill [talk] [prof] 03:49, 16 December 2010 (UTC)Reply
I'm not sure how you would force it off by default, but as all subcategories have "caimpaignbox templates" in their name (except World War II campaignboxes) I guess it could be done. However for the second option of feeding subcategories by a template parameter, we should be careful that several categories can be entered. (typically, conflicts involve several countries and campaignboxes therefore belong to several country-related subcategories) I'm not sure how that could be done, but then I am not proficient in template coding. An on/off switch definitely looks like the quick win, an optional categories field able to manage several inputs and setting the default category when empty would be heaven. I believe an on/off switch called "nocat" would work with the following code:
  • current code:|below = {{{notes|}}}}}{{#ifeq:{{ARTICLESPACE}}|Template |[[Category:Campaignbox templates|{{PAGENAME}}]]}}
  • suggested code: |below = {{{notes|}}}}}{{if#{{nocat|}}||{{#ifeq:{{ARTICLESPACE}}|Template |[[Category:Campaignbox templates|{{PAGENAME}}]]}}}}
What do you think? Place Clichy (talk) 16:14, 16 December 2010 (UTC)Reply

Campaignbox chronology?

edit

What is the guideline for chronology in terms of battles & sieges in a campaignbox? Template in question is Template:Campaignbox Anglo-Spanish War. For example [[Siege of Ostend] started in July 1601 & ended nearly three years later but siege of Kinsale started in October 1601 & ended in January 1602. Since siege of Ostend started first would logic dictate that it should come before Siege of Kinsale? So far all other campaignboxes are done in this way eg. Siege of Malta in WWII. JimRattray (talk) 13:47, 5 April 2012 (UTC)Reply

The usual convention, as far as I know, is to order events based on the start date; in your example, Ostend would indeed be placed before Kinsale. Kirill [talk] [prof] 12:31, 6 April 2012 (UTC)Reply

Requested move

edit
The following discussion is an archived discussion of the proposal. Please do not modify it. Subsequent comments should be made in a new section on the talk page. No further edits should be made to this section.

The result of the proposal was moved. --BDD (talk) 21:32, 7 May 2013 (UTC)Reply

Template:CampaignTemplate:Campaignbox –- Like a Template:Navbox and Template:Infobox, Template:Campaignbox is not a Campaign, but a Campaignbox.--777sms (talk) 03:37, 25 April 2013 (UTC)Reply

Template: ~ family and template: ~ family tree are totally different. See {{Kennedy family}} and {{Kennedy family tree}}. And if you want to be short, {{Nav}} and {{Info}} is far shorter than {{Navbox}} and {{Infobox}}. Your comments make no sense.--777sms (talk) 01:03, 3 May 2013 (UTC)Reply
Except, of course, that "info" would be unclear, while "campaign" is not. When there are two separate templates, sure, adding "tree" helps, but it simply doesn't matter and is just churn when there's only one template. Don't get me wrong, moving this to campaignbox is harmless, just template names should be done on the basis of "whatever works" not "must explicitly lay out everything in its name." I could easily see, if this was already at campaignbox, a similarly pointless move request to "campaign" on the theory of "more concise, shorter," and I'd weakly oppose that hypothetical move request too as just churn. SnowFire (talk) 17:12, 3 May 2013 (UTC)Reply
The above discussion is preserved as an archive of the proposal. Please do not modify it. Subsequent comments should be made in a new section on this talk page. No further edits should be made to this section.

title alignment

edit

@Edokter, Mr. Stradivarius, and Redrose64: any idea on how to fix the alignment issue in Ifni War as seen in File:Campaign-box-title-alignment-issue.png? Frietjes (talk) 00:26, 10 April 2014 (UTC)Reply

No idea what's causing that, other then that it wil happen if the title wraps inside the header. Doesn't happen with Arial. Also, slightly increasing the lineheight (or inherit) in the console with help, but the template does not have a titlestyle parameter. Edokter (talk) — 01:05, 10 April 2014 (UTC)Reply
@Edokter: if you want a stripped down example for experimentation, try playing with the simple navbox variant, e.g.,
{{navbox|name={{PAGENAME}}|title=ABCDEFGHIJ KLMNOPQRS TUVWXYZ|bodystyle=width:315px; float:right; clear:right}}
this template is just a frontend for that one. and how do I test with Arial? I am using FF 28.0 on Linux Frietjes (talk) 02:02, 10 April 2014 (UTC)Reply
I'm using Windows XP, Firefox 28, MonoBook skin. The only one that I see a problem with is {{Campaignbox Spanish colonial campaigns}}, where the title is displaced down - there is no wrapping between the three words. If you look at WP:MILMOS#NAVPROBLEMS, it suggests the use of <br />, so try |title=[[Spanish Empire|Spanish colonial<br />campaigns]] To force the display of the navbox title in Arial font, make sure that it's installed on your computer, and then add this:
th.navbox-title > div { font-family: 'Arial'; }
to Special:MyPage/common.css --Redrose64 (talk) 08:51, 10 April 2014 (UTC)Reply
@Edokter and Redrose64: no problems on Google Chrome, just shifted down as you indicated. I am using vector. I will try switching to Arial and see what happens. Frietjes (talk) 17:44, 10 April 2014 (UTC)Reply
update, switching to Arial fixes it, so now what? Frietjes (talk) 17:46, 10 April 2014 (UTC)Reply
Try forcing the lineheight of the title (not the header!) to 1.6em. Edokter (talk) — 18:49, 10 April 2014 (UTC)Reply
@Edokter, Mr. Stradivarius, and Redrose64: that works too (mostly fixing Ifni War), so I added the div here, but it seems like this would be a useful addition to Module:Navbox? basically, add the line-height:1.6em to the div used in the title, and remove it from here? (we already have .css('font-size', '110%') there so we would just add line-height as well?). Frietjes (talk) 19:44, 10 April 2014 (UTC)Reply
(Use a span, not a div.) Navbox does have a titlestyle. But more fundamentally, this is about too many elements fighting for too little space. If you're going to (ab)use navbox as a vertical box, perhaps you may want to rethink the header design, or simply hide the collpase button and navbar? Edokter (talk) — 20:15, 10 April 2014 (UTC)Reply
@Edokter: the titlestyle in navbox adds the style to the table cell, which I thought was not what we want here (indeed it doesn't work the same)? I agree this could probably be decoupled from navbox, but the fundamental features to retain here are that it (a) has edit links, (b) is collapsible, and (c) matches the width of the infobox above it (see Ifni War). we could move the edit links inside the box, but that seems like it would need some more discussion. Frietjes (talk) 20:22, 10 April 2014 (UTC)Reply
You're right, navbox title style applies to the header. As for he design issues, you may want to take this to {{Military navigation}}. Edokter (talk) — 20:26, 10 April 2014 (UTC)Reply

Template-protected edit request on 4 May 2014

edit

Please replace the current code with the following (from this version in the sandbox plus noinclude): The substantial change is an attempt to eliminate (via |title='s div) the blank line that seems to be added to the beginning of a title that linewraps. See Template:Campaignbox/testcases.

Sardanaphalus (talk) 10:52, 4 May 2014 (UTC)Reply

I removed the code blob above, because it is redundant when we have a sandbox page. I also added the {{documentation}} to the sandbox page (enclosed in <noinclude>...</noinclude>), omitting the <!-- --> which is not just unnecessary but undesirable: {{documentation}} should go at the start of a line. This makes it easier to compare the sandbox with the current page, simply by clicking the "diff" link that is at the top of the sandbox. --Redrose64 (talk) 12:03, 4 May 2014 (UTC)Reply
changed the spans to divs. revert if this causes a problem. Frietjes (talk) 17:11, 4 May 2014 (UTC)Reply
I reverted the change. The alignment is off in Google Chrome. I can post a screen shot if you need one. Thanks! Plastikspork ―Œ(talk) 03:01, 5 May 2014 (UTC)Reply
Does that mean the alignment is skewed left or right? Sardanaphalus (talk) 08:21, 5 May 2014 (UTC)Reply
@Plastikspork: I added display:table-cell. does this fix it? Frietjes (talk) 15:56, 11 May 2014 (UTC)Reply
It definitely looks better than it did before. I am also seeing a slight left shift for the Punic Wars example. It seems like we are converging on a solution. Thanks! Plastikspork ―Œ(talk) 22:04, 11 May 2014 (UTC)Reply

Is anyone else seeing the title in the campaignbox opposite as slightly off-centere (rightwards)..? Sardanaphalus (talk) 18:48, 14 May 2014 (UTC)Reply

...and this one, alas, but shifted leftwards..? Sardanaphalus (talk) 18:52, 14 May 2014 (UTC)Reply

Trying something else. Sardanaphalus (talk) 18:54, 14 May 2014 (UTC)Reply

This is still not fixed. The examples show the text running off the edge of the page. wraplinks is not to be used. Please revert to the (working) 5 May 2014 version. Hawkeye7 (talk) 23:24, 28 February 2015 (UTC)Reply

(Could we use "class="center word-wrap" instead?)
  Done{{U|Technical 13}} (etc) 00:17, 1 March 2015 (UTC)Reply

Correct values for "state" parameter

edit

I am sure it is written somewhere but I have trouble finding it at the moment, what are correct values for "state" parameter?--Staberinde (talk) 11:30, 1 July 2014 (UTC)Reply

Same values as in {{navbox}}. -- [[User:Edokter]] {{talk}} 12:17, 1 July 2014 (UTC)Reply

Other material doesn't float alongside

edit

I am trying to use {{stack}} to have a column of pics opposing a couple of campaign boxes. But it doesn't float - it always drops to clear of the campaign boxes, even with | clear = false

Similar happens with trying to link to a paragraph halfway down a campaign box - displayed material starts at end of campaign box, not at paragraph heading. John of Cromer (talk) mytime= Wed 22:45, wikitime= 14:45, 8 October 2014 (UTC)Reply

Do not use {{stack}} when you have columns on on opposing sides of the page. -- [[User:Edokter]] {{talk}} 16:55, 8 October 2014 (UTC)Reply
Why not? Isn't that what it's for? In any case, that's not the issue, because it doesn't work properly per second fault. John of Cromer (talk) mytime= Thu 07:46, wikitime= 23:46, 8 October 2014 (UTC)Reply
use |campaignbox= in {{infobox military conflict}}. Frietjes (talk) 18:55, 8 October 2014 (UTC)Reply
Thanks Frietjes – and I didn't even tell you where! John of Cromer (talk) mytime= Thu 07:46, wikitime= 23:46, 8 October 2014 (UTC)Reply

Template-protected edit request on 21 November 2015

edit

It is not Manipur but Manupur in the Durrani Empire campaign. RRD13 দেবজ্যোতি (talk) 06:10, 21 November 2015 (UTC)Reply

  Fixed – an edit to this template was not needed. Instead, the campaign box in the Durrani Empire article has been edited to reflect the correct spelling and to turn a red link blue. Be prosperous! Paine  10:01, 21 November 2015 (UTC)Reply

Font size

edit

This template is among things that don't work well with a large font size. For instance, use font size 26 (Firefox) or "very large" (Chrome), go to American Revolutionary War, and scroll down to the navbox entitled "American Revolutionary War European & Atlantic Campaigns and theaters". Now click "show" to see the contents. You can't, because the navbox is truncated. Similarly, go to Action of 6 October 1779 and scroll down to the navbox entitled "American Revolutionary War European & Atlantic Waters". You don't have to click "Show", so on the first line click "1st Ushant". 1st what? All it says is "1st" (Chrome) or part of a "1" (Firefox), again because it's truncated. Art LaPella (talk) 22:38, 11 September 2018 (UTC)Reply

Art LaPella the problem is most like due to the use of 'px' units for the width of the box, which is set in Module:WPMILHIST Infobox style. this is unlike Module:Sidebar and Module:Infobox which use 'em' units. I would support changing the width there to the same default width as Module:Sidebar and Module:Infobox. Frietjes (talk) 23:41, 11 September 2018 (UTC)Reply
Art LaPella, see, for example this thread. there are others who are complaining, but for other reasons. Frietjes (talk) 23:44, 11 September 2018 (UTC)Reply

Template-protected edit request on 11 July 2019

edit

Add the class "vertical-navbox" as the first class, before the param (but make sure to have a space char between them). This makes this template recognisable for other layouts as a vertical sidebar, instead of a bottom dwelling navbox. —TheDJ (talkcontribs) 08:53, 11 July 2019 (UTC)Reply

TheDJ, I added it here. let me know if there are any problems. I don't think there is a simple way to add the class to the outer div container without changes to Module:Navbox. Frietjes (talk) 13:04, 11 July 2019 (UTC)Reply

Proposal: peace process parameter

edit

Wars frequently end up with peace processes and democratic/human-rights-respecting political solutions (some end in dictatorships). There are plenty of WP:RS's for the peace processes, even though they can be harder to find.

How about adding a parameter 'peace process = ', so that this can be more than just a "note" parameter? Boud (talk) 23:27, 26 September 2019 (UTC)Reply

Proposal: add warning about invisibility in mobile view

edit

Please create a warning like in {{navbox}}: This template does not display in the mobile view of Wikipedia Templates using the navbox (navbox) or nomobile (sidebar) classes are not displayed on the mobile web site of English Wikipedia. Mobile page views account for approximately 62% of all page views (90-day average as of January 2021). Ruedi33a (talk) 16:38, 17 July 2021 (UTC)Reply

@Ruedi33a: The warning that you mention occurs in Template:Navbox/doc; you should be able to copy it to Template:Campaignbox/doc which is not protected. --Redrose64 🌹 (talk) 20:29, 17 July 2021 (UTC)Reply
Done, thanks a lot for helping me Ruedi33a (talk) 21:04, 17 July 2021 (UTC)Reply

Proposal: Add an image field

edit

I think that there might be some cases in which an image that sits atop the content of the expanded campaignbox as useful visual aid. As such, I'd like to include an image field in the template, so that images can be placed into campaignboxes. — Mhawk10 (talk) 01:40, 24 March 2022 (UTC)Reply