Welcome to Wars Wiki!
Welcome, new users! For help on where to start, look at our getting started page and our manual of style. Need more help? Ask a staff member!

Template:Campaign Nav: Difference between revisions

From Wars Wiki
Jump to navigationJump to search
(Removing rounded corners in attempt to reduce server loads.)
mNo edit summary
Line 15: Line 15:
| align="left" | {{#switch: {{{next|yes}}}|yes=[[{{{nextmission}}}|<span style="color: #000000">&rarr;</span>]]|no=}}
| align="left" | {{#switch: {{{next|yes}}}|yes=[[{{{nextmission}}}|<span style="color: #000000">&rarr;</span>]]|no=}}
|}
|}
|}<noinclude>[[Category:Navigation templates]]</noinclude>
|}<noinclude>[[Category:Navigation templates]]
 
 
 
<noinclude>
== Usage ==
== Usage ==
This template can be placed on a page to link the previous, current, and next missions in a campaign. The left and right areas link to the previous mission and the next mission, while the center links to that game's list of campaign missions. The background colors for the left and right areas can also be altered to show where each mission takes place.
This template can be placed on a page to link the previous, current, and next missions in a campaign. The left and right areas link to the previous mission and the next mission, while the center links to that game's list of campaign missions. The background colors for the left and right areas can also be altered to show where each mission takes place.


<pre>
<pre>
Line 37: Line 33:
</pre>
</pre>


For the first & final missions of a campaign, set either <i>prev</i> or <i>next</i> to "no"; including <i>country</i>, <i>mission#</i>, and <i>mission</i> are no longer necessary. This will darken either end of the bar to the background color.
For the first and final missions of a campaign, set either ''prev'' or ''next'' to "no"; including ''country'', ''mission#'', and ''mission'' are no longer necessary. This will darken either end of the bar to the background color.
</noinclude>
</noinclude>

Revision as of 19:24, 27 June 2021

[[{{{prevmission}}}|]] [[{{{prevmission}}}|Mission {{{prevmission#}}}: {{{prevmission}}}]]
[[List of Missions in {{{gamename}}}|{{{gamename}}} Campaign]]
[[{{{nextmission}}}|Mission {{{nextmission#}}}: {{{nextmission}}}]] [[{{{nextmission}}}|]]

Usage

This template can be placed on a page to link the previous, current, and next missions in a campaign. The left and right areas link to the previous mission and the next mission, while the center links to that game's list of campaign missions. The background colors for the left and right areas can also be altered to show where each mission takes place.

{{CampaignPrevNext
|prev=yes
|prevcountry=
|prevmission#=
|prevmission=
|gamename=
|next=yes
|nextcountry=
|nextmission#=
|nextmission= 
}}

For the first and final missions of a campaign, set either prev or next to "no"; including country, mission#, and mission are no longer necessary. This will darken either end of the bar to the background color.