Difference between revisions of "Template:Mission"

From FreeSpace Wiki
Jump to: navigation, search
(Added loop capability)
m (clarification)
Line 28: Line 28:
 
Other missions get <code><nowiki>{{Mission|next=The Romans Blunder|previous=Surrender, Belisarius|campaign=Campaign Walkthrough}}</nowiki></code> for instance.
 
Other missions get <code><nowiki>{{Mission|next=The Romans Blunder|previous=Surrender, Belisarius|campaign=Campaign Walkthrough}}</nowiki></code> for instance.
  
To add next or previous loop missions, add <tt>loopnext</tt> or <tt>loopprev</tt>, respectively, to the parameter list. One example would be <code><nowiki>{{Mission|previous=Feint! Parry! Riposte!|next=Battle of the Wilderness|loopprev=Rebels and Renegades|loopnext=...But Hate The Traitor}}</nowiki></code>, for example. If a next or previous loop mission doesn't exist, just leave it out.
+
To add next or previous loop missions, add <tt>loopnext</tt> or <tt>loopprev</tt>, respectively, to the parameter list. One example would be <code><nowiki>{{Mission|previous=Feint! Parry! Riposte!|next=Battle of the Wilderness|loopprev=Rebels and Renegades|loopnext=...But Hate The Traitor|campaign=FreeSpace 2 Campaign Walkthrough}}</nowiki></code> for the Freespace 2 mission "Love the Treason...". If a next or previous loop mission doesn't exist, just leave it out.
  
 
The <tt>campaign</tt> parameter is the name of the campaign's wiki page.
 
The <tt>campaign</tt> parameter is the name of the campaign's wiki page.

Revision as of 05:16, 7 June 2015

[[{{{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.

Loop capability was added by Logomancer, with Template:PreviousInLoop and Template:NextInLoop being derived from the previous two templates above.

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 relevant 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.

To add next or previous loop missions, add loopnext or loopprev, respectively, to the parameter list. One example would be {{Mission|previous=Feint! Parry! Riposte!|next=Battle of the Wilderness|loopprev=Rebels and Renegades|loopnext=...But Hate The Traitor|campaign=FreeSpace 2 Campaign Walkthrough}} for the Freespace 2 mission "Love the Treason...". If a next or previous loop mission doesn't exist, just leave it out.

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