Difference between revisions of "Template:Mission"
(add) |
Logomancer (talk | contribs) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{{first|{{NextMission|next={{{next}}} }} }}} | + | {|- cellpadding="8" style="background:#000000;" align="center" |
+ | | {{{first|{{PreviousMission|previous={{{previous}}} }} }}} | ||
+ | | rowspan="2"| [[{{{campaign}}}|Campaign Walkthrough]] | ||
+ | | {{{last|{{NextMission|next={{{next}}} }} }}} | ||
+ | |- cellpadding="8" style="background:#000000;" align="center" | ||
+ | | {{#if: {{{loopprev|}}} | {{PreviousInLoop|loopprev={{{loopprev}}} }} }} | ||
+ | | {{#if: {{{loopnext|}}} | {{NextInLoop|loopnext={{{loopnext}}} }} }} | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | <noinclude> | ||
+ | |||
+ | ==Credits== | ||
+ | |||
+ | 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== | ||
+ | |||
+ | This collection of templates are to be used as campaign headers for mission walkthroughs. | ||
+ | |||
+ | ==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 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. | ||
+ | |||
+ | 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|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.