Template:Campaignbox/doc: Difference between revisions
m
syntaxhighlight lang="wikitext"
m (1 revision imported) |
m (syntaxhighlight lang="wikitext") |
||
Line 1: | Line 1: | ||
{{#ifeq:{{{noheader|}}}|yes | | {{#ifeq:{{{noheader|}}}|yes | | ||
| {{Documentation subpage}} | | {{Documentation subpage}} | ||
{{Template display|nomobile}} | |||
{{Template redirect|Campaign}} | |||
{{Navbox visibility}} | |||
== Usage == | == Usage == | ||
}} | }} | ||
Line 20: | Line 22: | ||
If the article includes an [[Help:Infobox|infobox]], the campaignbox/es are usually placed immediately after it (i.e. just below it). If available, as with infoboxes such as {{tl|Infobox military conflict}}, use the infobox's {{para|campaignbox}} parameter: | If the article includes an [[Help:Infobox|infobox]], the campaignbox/es are usually placed immediately after it (i.e. just below it). If available, as with infoboxes such as {{tl|Infobox military conflict}}, use the infobox's {{para|campaignbox}} parameter: | ||
<div style="width:25.0em;border:1px solid black;background:#ddd;padding:0.5em 1.0em;"> | <div style="width:25.0em;border:1px solid black;background:#ddd;padding:0.5em 1.0em;"> | ||
< | <syntaxhighlight lang="wikitext"> | ||
{{Infobox military conflict | {{Infobox military conflict | ||
... | ... | ||
}} | }} | ||
{{Campaignbox XXXX}} | {{Campaignbox XXXX}} | ||
</ | </syntaxhighlight>or<syntaxhighlight lang="wikitext"> | ||
{{Infobox military conflict | {{Infobox military conflict | ||
... | ... | ||
| campaignbox = {{campaignbox XXXX}} | | campaignbox = {{campaignbox XXXX}} | ||
}} | }} | ||
</ | </syntaxhighlight></div> | ||
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. | 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. | ||
Line 38: | Line 40: | ||
Existing campaignboxes may be viewed through the [[:Category:Campaignbox templates|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 {{tlf|Campaignbox}} thus: | Existing campaignboxes may be viewed through the [[:Category:Campaignbox templates|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 {{tlf|Campaignbox}} thus: | ||
<div style="width:16.7em;border:1px solid black;background:#ddd;padding:0.5em 1.0em;"> | <div style="width:16.7em;border:1px solid black;background:#ddd;padding:0.5em 1.0em;"> | ||
< | <syntaxhighlight lang="wikitext"> | ||
{{Campaignbox | {{Campaignbox | ||
| name = | | name = | ||
Line 45: | Line 47: | ||
| notes = | | notes = | ||
}} | }} | ||
</ | </syntaxhighlight> | ||
</div> | </div> | ||
Line 63: | Line 65: | ||
[[Category:WikiProject Military history template instructions|Campaignbox]] | [[Category:WikiProject Military history template instructions|Campaignbox]] | ||
</noinclude><includeonly> | </noinclude><includeonly>{{Sandbox other|| | ||
[[Category:Campaignbox templates| ]] | [[Category:Campaignbox templates| ]] | ||
{{#ifeq:{{{noheader|}}}|yes | | | {{#ifeq:{{{noheader|}}}|yes | | | ||
[[Category:Navigational box wrapper templates]] | [[Category:Navigational box wrapper templates]] | ||
[[Category:Military navigational boxes|Campaignbox]] | [[Category:Military navigational boxes|Campaignbox]] | ||
[[Category:Templates that add a category]] | [[Category:Templates that add a category]] | ||
}}</includeonly> | }}}}</includeonly> |