Difference between revisions of "Template:Order navigation"

From TRMN
Jump to navigation Jump to search
(Created page with "<center> {| class="wikitable" |- ! [[<< Previous|{{previous_order}}]] || [[{{order_series}} Index|{{chapter_page}} || [[Next >>|{{next_order}}]] |} </center> <noinclude> ==Pu...")
 
 
Line 2: Line 2:
{| class="wikitable"
{| class="wikitable"
|-  
|-  
! [[<< Previous|{{previous_order}}]] || [[{{order_series}} Index|{{chapter_page}} || [[Next >>|{{next_order}}]]
! [[{{{previous_order}}}|<< Previous]] || [[{{{chapter_page|}}}|{{{order_series|}}} Index]] || [[{{{next_order|}}}|Next >>]]
|}
|}
</center>
</center>
Line 13: Line 13:
<nowiki>{{Orders_quick_buttons</nowiki><br>
<nowiki>{{Orders_quick_buttons</nowiki><br>
<nowiki>|previous_order = </nowiki>''article name of previous order in the series. Required. NOTE: Remember to edit the previous order and set its '''next_order''' to point to the new one.''<br>
<nowiki>|previous_order = </nowiki>''article name of previous order in the series. Required. NOTE: Remember to edit the previous order and set its '''next_order''' to point to the new one.''<br>
<nowiki>|order_series = </nowiki>''name of order series; typically the name of the chapter. Optional.''</br>
<nowiki>|chapter_page = </nowiki>''name of the chapter's page; should include the sub-head to navigate directly to the index. Required.''<br>
<nowiki>|chapter_page = </nowiki>''name of the chapter's page; should include the sub-head to navigate directly to the index. Optional.''<br>
<nowiki>|order_series = </nowiki>''name of order series; typically the name of the chapter. Optional.''<br>
<nowiki>|next_order = </nowiki>''article name of the next order in the series. Optional.''<br>
<nowiki>|next_order = </nowiki>''article name of the next order in the series. Optional.''<br>
<nowiki>}}</nowiki>
<nowiki>}}</nowiki>


==Example==
==Examples==
All four parameters specified:
{| class="wikitable"
{| class="wikitable"
! Markup  
! Markup  
Line 26: Line 27:
<nowiki>{{Order_navigation</nowiki><br>
<nowiki>{{Order_navigation</nowiki><br>
<nowiki>| previous_order = HMS Generic Ship's Order 1010-01</nowiki><br>
<nowiki>| previous_order = HMS Generic Ship's Order 1010-01</nowiki><br>
<nowiki>| chapter_page = HMS Generic (DD-00)#Ship's Orders</nowiki><br>
<nowiki>| order_series = GENERICORD</nowiki><br>
<nowiki>| order_series = GENERICORD</nowiki><br>
<nowiki>| chapter_page = HMS Generic (DD-00)#Ship's Orders</nowiki><br>
<nowiki>| next_order = HMS Generic Ship's Order 1010-03</nowiki><br>
<nowiki>| next_order = HMS Generic Ship's Order 1010-02</nowiki><br>
<nowiki>}}</nowiki>
<nowiki>}}</nowiki>
|
|
{{Order_navigation
{{Order_navigation
| addressees = HMS Generic Ship's Order 1010-01
| previous_order = HMS Generic Ship's Order 1010-01
| order_series = GENERICORD
| order_series = GENERICORD
| chapter_page = HMS Generic (DD-00)#Ship's Orders
| chapter_page = HMS Generic (DD-00)#Ship's Orders
| next_order = HMS Generic Ship's Order 1010-02
| next_order = HMS Generic Ship's Order 1010-03
}}
|-
Required parameters only specified:
{| class="wikitable" ! Markup | As Displayed
|-
|
<nowiki>{{Order_navigation</nowiki><br>
<nowiki>| previous_order = HMS Generic Ship's Order 1010-01</nowiki><br>
<nowiki>| chapter_page = HMS Generic (DD-00)</nowiki><br>
<nowiki>}}</nowiki>
|
{{Order_navigation
| previous_order = HMS Generic Ship's Order 1010-01
| chapter_page = HMS Generic (DD-00)
}}
}}
|}
|}

Latest revision as of 17:42, 20 May 2017

[[{{{previous_order}}}|<< Previous]] [[| Index]] [[|Next >>]]

Purpose & Use

  1. To insert a standardized header which provides quick access to the orders for a specific chapter.
  2. Insert {{order_navigation}} following the disclaimer template, and again at the bottom.

Syntax

{{Orders_quick_buttons
|previous_order = article name of previous order in the series. Required. NOTE: Remember to edit the previous order and set its next_order to point to the new one.
|chapter_page = name of the chapter's page; should include the sub-head to navigate directly to the index. Required.
|order_series = name of order series; typically the name of the chapter. Optional.
|next_order = article name of the next order in the series. Optional.
}}

Examples

All four parameters specified:

Required parameters only specified:
Markup As displayed

{{Order_navigation
| previous_order = HMS Generic Ship's Order 1010-01
| chapter_page = HMS Generic (DD-00)#Ship's Orders
| order_series = GENERICORD
| next_order = HMS Generic Ship's Order 1010-03
}}

<< Previous GENERICORD Index Next >>

{{Order_navigation
| previous_order = HMS Generic Ship's Order 1010-01
| chapter_page = HMS Generic (DD-00)
}}

<< Previous Index [[|Next >>]]