Difference between revisions of "Template:Mission"

From FreeSpace Wiki
Jump to: navigation, search
(fix)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{|- cellpadding="8" style="background:#000000;" align="center"
 
{|- cellpadding="8" style="background:#000000;" align="center"
 
| {{{first|{{PreviousMission|previous={{{previous}}} }} }}}
 
| {{{first|{{PreviousMission|previous={{{previous}}} }} }}}
| [[{{{campaign}}}|Campaign Walkthrough]]
+
| rowspan="2"| [[{{{campaign}}}|Campaign Walkthrough]]
 
| {{{last|{{NextMission|next={{{next}}} }} }}}
 
| {{{last|{{NextMission|next={{{next}}} }} }}}
 +
|- cellpadding="8" style="background:#000000;" align="center"
 +
| {{#if: {{{loopprev|}}} | {{PreviousInLoop|loopprev={{{loopprev}}} }} }}
 +
| {{#if: {{{loopnext|}}} | {{NextInLoop|loopnext={{{loopnext}}} }} }}
 
|-
 
|-
 
|}
 
|}
Line 11: Line 14:
  
 
All credit to hawke_ on #osm for writing these templates, [[Template:NextMission]] and [[Template:PreviousMission]] being the others.
 
All credit to hawke_ on #osm for writing these templates, [[Template:NextMission]] and [[Template:PreviousMission]] being the others.
 +
 +
Loop capability was added by [[User:Logomancer|Logomancer]], with [[Template:PreviousInLoop]] and [[Template:NextInLoop]] being derived from the previous two templates above.
  
 
==Purpose==
 
==Purpose==
Line 17: Line 22:
  
 
==Usage==
 
==Usage==
Add this to the first mission of a campaign - <code><nowiki>{{Mission|next=The Place of Chariots|first=Surrender, Belisarius|campaign=Campaign Walkthrough}}</nowiki></code>, substituing the relevent parameters.
+
Add this to the first mission of a campaign - <code><nowiki>{{Mission|next=The Place of Chariots|first=Surrender, Belisarius|campaign=Campaign Walkthrough}}</nowiki></code>, substituing the relevant parameters.
  
 
The last mission should have <code><nowiki>{{Mission|last=Apocalypse|previous=Clash of the Titans II|campaign=Campaign Walkthrough}}</nowiki></code> at the top.
 
The last mission should have <code><nowiki>{{Mission|last=Apocalypse|previous=Clash of the Titans II|campaign=Campaign Walkthrough}}</nowiki></code> at the top.
Line 23: 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.
  
The Campaign parameter is the name of the campaign's wiki page.
+
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.
 +
 
 +
[[Category:Templates]]
 +
</noinclude>

Latest revision as of 05:20, 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.