Welcome to Wars Wiki! |
---|
Welcome to Wars Wiki. Please log in or create an account to make changes. |
Template:Campaign Nav: Difference between revisions
From Wars Wiki
Jump to navigationJump to search
(update and simplify) |
Trig Jegman (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{| style="border: 2px solid #353535; width: 100%;" cellspacing=0 | {| style="border: 2px solid #353535; width: 100%;" cellspacing=0 | ||
|- | |- | ||
| width="35%" style="background: #{{#if:{{{prevcountry|}}}|{{{{{prevcountry}}} | | width="35%" style="background: #{{#if:{{{prevcountry|}}}|{{cc-color|{{{prevcountry}}}}}}}; padding: 1em;" | {{#if:{{{prevmission|}}}|<span style="float:right;">[[{{{prevmission|}}}|<big>'''←'''</big> ''Mission {{{prevmission#|}}}: {{{prevmission|}}}'']]</span>}} | ||
| style="background: #8E8E8E; border-left: 2px solid #353535; border-right: 2px solid #353535;" align="center" | '''[[List of Missions in {{{ | | style="background: #8E8E8E; border-left: 2px solid #353535; border-right: 2px solid #353535;" align="center" | '''[[List of Missions in {{{game|}}}|{{{game|}}} Campaign]]''' | ||
| width="35%" style="background: #{{#if:{{{nextcountry|}}}|{{{{{nextcountry}}} | | width="35%" style="background: #{{#if:{{{nextcountry|}}}|{{cc-color|{{{nextcountry}}}}} }}; padding: 1em;" | {{#if:{{{nextmission|}}}|<span style="float:left;">[[{{{nextmission|}}}|''Mission {{{nextmission#|}}}: {{{nextmission|}}}'' <big>'''→'''</big>]] </span>}} | ||
|}<noinclude> | |}<noinclude> | ||
== Usage == | == Usage == |
Revision as of 03:23, 19 April 2023
Campaign |
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 |gamename= |prevcountry= |prevmission#= |prevmission= |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.