Difference between revisions of "Template:Mission"

From FreeSpace Wiki
Jump to: navigation, search
(try 2)
(rv)
Line 1: Line 1:
 
{|- cellpadding="8" style="background:#000000;" align="center"
 
{|- cellpadding="8" style="background:#000000;" align="center"
| {{ #if: {{{previous|}}} | {{PreviousMission|previous={{{previous}}} }} | First Mission }}
+
| {{{first|{{PreviousMission|previous={{{previous}}} }} }}}
 
| [[{{{campaign}}}|Campaign Walkthrough]]
 
| [[{{{campaign}}}|Campaign Walkthrough]]
| {{ #if: {{{next|}}} | {{NextMission|next={{{next}}} }} | Last Mission }}
+
| {{{last|{{NextMission|next={{{next}}} }} }}}
 
|-
 
|-
 +
|}
  
 
<noinclude>
 
<noinclude>

Revision as of 00:39, 9 September 2007

[[{{{previous}}}|Previous Mission]]


[[{{{campaign}}}|Campaign Walkthrough]] [[{{{next}}}|Next Mission]]



Credits

All credit to hawke_ on #osm for writing these templates, Template:NextMission and Template:PreviousMission being the others.

Todo

This needs fixed to deal with mission loops such as the Argonautica with its 2 next missions. These templates can only handle 1 next mission.

Purpose

This collection of templates are to be used as campaign headers for mission walkthroughs.

Usage

Add this to the first mission of a campaign - {{Mission|next=The Place of Chariots|first=Surrender, Belisarius|campaign=Campaign Walkthrough}}, substituing the relevent parameters.

The last mission should have {{Mission|last=Apocalypse|previous=Clash of the Titans II|campaign=Campaign Walkthrough}} at the top.

Other missions get {{Mission|next=The Romans Blunder|previous=Surrender, Belisarius|campaign=Campaign Walkthrough}} for instance.

The Campaign parameter is the name of the campaign's wiki page.