Template:Navigation: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<infobox>
<infobox>
   <title source="title1"/>
   <title source="name"><default>Navigation</default></title>
  <!-- Navigation -->
    <group layout="horizontal">
    <header>Navigation</header>
    <header><div class="story-nav">{{{series}}}{{#set:series={{{series}}}}}</div></header>
    <data source="prev"><label>&larr; Previous</label><format>''{{da|{{{prev}}}}}''</format></data>
    <data source="next"><label>Next &rarr;</label><format>''{{da|{{{next}}}}}''</format></data>
    </group>
 
    <group layout="horizontal">
    <header><div class ="story-nav">{{{series2}}}</div></header>
    <data source="prev2"><label>&larr; Previous</label><format>''{{da|{{{prev2}}}}}''</format></data>
    <data source="next2"><label>Next &rarr;</label><format>''{{da|{{{next2}}}}}''</format></data>
    </group>
 
    <group layout="horizontal">
    <header><div class="story-nav">Production order</div></header>
    <data source="made prev"><label>&larr; Previous</label><format>''{{da|{{{made prev}}}}}''</format></data>
    <data source="made next"><label>Next &rarr;</label><format>''{{da|{{{made next}}}}}''</format></data>
    </group>
 
    <group layout="horizontal">
    <header><div class="story-nav">{{{series3}}}</div></header>
    <data source="prev3"><label>&larr; Previous</label><format>''{{da|{{{prev3}}}}}''</format></data>
    <data source="next3"><label>Next &rarr;</label><format>''{{da|{{{next3}}}}}''</format></data>
    </group>
 
    <group layout="horizontal">
    <header><div class="story-nav">{{{series4}}}</div></header>
    <data source="prev4"><label>&larr; Previous</label><format>''{{da|{{{prev4}}}}}''</format></data>
    <data source="next4"><label>Next &rarr;</label><format>''{{da|{{{next4}}}}}''</format></data>
    </group>
</infobox>
</infobox>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
{{TempInuse}}
{{Documentation}}
Example usage:
Example usage:
{{Navigation
{{Navigation
   | title1=Example}}
   | series=Example
  | prev=Example
  | next=Example
  }}
<pre>
<pre>
{{Navigation
{{Navigation
   | title1=Example}}
   | series=Example
  | prev=Example
  | next=Example
  }}
</pre>
</pre>
<templatedata>
{"params":{"title1":{"suggested":true}},"sets":[],"maps":{}}
</templatedata>
</noinclude>
</noinclude>

Revision as of 21:58, 2 February 2024


This template isn't fully cooked yet

We're still alpha testing it. You may find it used on live pages, but please do not use it yourself until this message has been removed.

Instructions for {{Navigation}}


{{Navigation}} is a template for use on story pages, when the number of navigation fields in a story infobox exceed 4.

Usage

Copy and paste the text below onto whichever article page it is needed for:

{{Navigation
|series    = 
|prev      = 
|next      = 
|series2   = 
|prev2     = 
|next2     = 
|series3   = 
|prev3     = 
|next3     = 
|series4   = 
|prev4     = 
|next4     = 
|series5   = 
|prev5     = 
|next5     = 
|series6   = 
|prev6     = 
|next6     = 
|series7   = 
|prev7     = 
|next7     = 
|series8   = 
|prev8     = 
|next8     = 
|series9   = 
|prev9     = 
|next9     = 
|series10  = 
|prev10    = 
|next10    = 
}}

If less than ten navigation fields are required, then simply remove the unneeded fields.

The "prev" and "next" fields automatically italicise, link to, and remove the disambiguation terms from the input provided. The "series" fields do not do this, and any formatting will need to be manually inserted.

Example usage:


{{Navigation
  | series=Example
  | prev=Example
  | next=Example
  }}