Template:Infobox Story: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
(I don't think there's any single instance where we'd need anything other than {{StoryTitle}} here, so it simplifies cases where a "new" dab such as (11DC audio story) is added, bc it's one less template we need to go make changes)
Line 1: Line 1:
<infobox theme="infobox">
<infobox theme="infobox">
     <title source="name"><default>''<!--{{{name override|-->{{dab away|{{PAGENAME}}}}<!--}}}-->''</default></title>
     <title source="name"><default>''<!--{{{name override|-->{{StoryTitle}}<!--}}}-->''</default></title>
     <navigation><div style="text-align:center">{{#if:{{{serial production code|}}}|&nbsp;{{{serial production code}}}&nbsp;—&nbsp;|}}<span style="font-size:100%">{{#if:{{{season number|}}}|[[season::{{{season number}}}|{{da smw|{{{season number}}}}}]]}}{{#if:{{{series episode number|}}}|,&nbsp;Episode{{#if:{{{series episode number2|}}}|s {{{series episode number|}}} & {{{series episode number2|}}}|&nbsp;{{{series episode number}}}}}}}{{#if:{{{series episode number|}}}|{{#set:series episode number={{#switch:{{{series episode number|}}}|1|2|3|4|5|6|7|8|9=0}}{{{series episode number}}}|episode code={{#switch:{{#explode:{{{season number|X (Z)}}}|(|1}}|=0DW|Doctor Who)=1DW|Torchwood)=2TW|SJA)=3SJA|K9)=4K9|Class)=5CL|Z)=Z-ERROR}} {{#switch:{{Series Numeral|{{{season number|}}}}}|1|2|3|4|5|6|7|8|9=0}}{{Series Numeral|{{{season number|X}}}}}.{{#switch:{{{series episode number|}}}|1|2|3|4|5|6|7|8|9=0}}{{{series episode number|{{{season serial number|X}}}}}}}}|}}{{#if:{{{series episode number2|}}}|{{#set:series episode number={{#switch:{{{series episode number2|}}}|1|2|3|4|5|6|7|8|9=0}}{{{series episode number2}}}|episode code={{#switch:{{#explode:{{{season number2|{{{season number|X (Z)}}}}}}|(|1}}|=0DW|Doctor Who)=1DW|Torchwood)=2TW|SJA)=3SJA|K9)=4K9|Class)=5CL|Z)=Z-ERROR}} {{#switch:{{Series Numeral|{{{season number2|{{{season number|}}}}}}}}|1|2|3|4|5|6|7|8|9=0}}{{Series Numeral|{{{season number2|{{{season number|X}}}}}}}}.{{#switch:{{{series episode number2|}}}|1|2|3|4|5|6|7|8|9=0}}{{{series episode number2|{{{season serial number2|X}}}}}}}}|}}{{#if:{{{season serial number|}}}|,&nbsp;[[Serial]] {{{season serial number}}}}}{{#if:{{{season serial number|}}}|{{#set:season serial number={{#switch:{{{season serial number|}}}|10|11|12|13|14|15=|#default=0}}{{{season serial number}}}}}|}}{{#if:{{{special}}}|{{{special}}}|}}{{#if:{{{range|}}}|{{#switch:{{{range}}}|#default=''[[range::{{{range}}}|{{dau|{{{range}}}}}]]''|MR|Main Range|0=[[Main Range]]|BSSR|Bernice Summerfield Single Releases=''[[Bernice Summerfield (series)|Bernice Summerfield]]'': Single Releases|BSBS|Bernice Summerfield Box Sets=''[[Bernice Summerfield (series)|Bernice Summerfield]]'': Box Sets|BFTW|Big Finish Torchwood=''[[Torchwood - Monthly Range|Torchwood]]''|BFTWSR|Big Finish Torchwood Special Releases=''[[Torchwood - Special Releases]]''|NSAA|New Series Adventures Audios=''[[BBC New Series Adventures#Audiobooks|New Series Adventures]]'' Audio|BBCTWAD|BBC Torchwood Audio Dramas=[[BBC Torchwood audio stories#Audio dramas|BBC ''Torchwood'' Audio Drama]]|BBCTWAB|BBC Torchwood Audiobooks=[[BBC Torchwood audio stories#Audiobooks|BBC ''Torchwood'' Audiobook]]}}{{#if:{{{number in range|}}}|&nbsp;{{{number in range}}}}}{{#if:{{{series in range|}}}|&nbsp;[[audio series::{{{series in range}}}|#{{{series number in range|{{SNIR|{{{series in range}}}|{{{range}}}}}}}}]]{{#if:{{{number in series|}}}|.{{{number in series}}}}}}}}}
     <navigation><div style="text-align:center">{{#if:{{{serial production code|}}}|&nbsp;{{{serial production code}}}&nbsp;—&nbsp;|}}<span style="font-size:100%">{{#if:{{{season number|}}}|[[season::{{{season number}}}|{{da smw|{{{season number}}}}}]]}}{{#if:{{{series episode number|}}}|,&nbsp;Episode{{#if:{{{series episode number2|}}}|s {{{series episode number|}}} & {{{series episode number2|}}}|&nbsp;{{{series episode number}}}}}}}{{#if:{{{series episode number|}}}|{{#set:series episode number={{#switch:{{{series episode number|}}}|1|2|3|4|5|6|7|8|9=0}}{{{series episode number}}}|episode code={{#switch:{{#explode:{{{season number|X (Z)}}}|(|1}}|=0DW|Doctor Who)=1DW|Torchwood)=2TW|SJA)=3SJA|K9)=4K9|Class)=5CL|Z)=Z-ERROR}} {{#switch:{{Series Numeral|{{{season number|}}}}}|1|2|3|4|5|6|7|8|9=0}}{{Series Numeral|{{{season number|X}}}}}.{{#switch:{{{series episode number|}}}|1|2|3|4|5|6|7|8|9=0}}{{{series episode number|{{{season serial number|X}}}}}}}}|}}{{#if:{{{series episode number2|}}}|{{#set:series episode number={{#switch:{{{series episode number2|}}}|1|2|3|4|5|6|7|8|9=0}}{{{series episode number2}}}|episode code={{#switch:{{#explode:{{{season number2|{{{season number|X (Z)}}}}}}|(|1}}|=0DW|Doctor Who)=1DW|Torchwood)=2TW|SJA)=3SJA|K9)=4K9|Class)=5CL|Z)=Z-ERROR}} {{#switch:{{Series Numeral|{{{season number2|{{{season number|}}}}}}}}|1|2|3|4|5|6|7|8|9=0}}{{Series Numeral|{{{season number2|{{{season number|X}}}}}}}}.{{#switch:{{{series episode number2|}}}|1|2|3|4|5|6|7|8|9=0}}{{{series episode number2|{{{season serial number2|X}}}}}}}}|}}{{#if:{{{season serial number|}}}|,&nbsp;[[Serial]] {{{season serial number}}}}}{{#if:{{{season serial number|}}}|{{#set:season serial number={{#switch:{{{season serial number|}}}|10|11|12|13|14|15=|#default=0}}{{{season serial number}}}}}|}}{{#if:{{{special}}}|{{{special}}}|}}{{#if:{{{range|}}}|{{#switch:{{{range}}}|#default=''[[range::{{{range}}}|{{dau|{{{range}}}}}]]''|MR|Main Range|0=[[Main Range]]|BSSR|Bernice Summerfield Single Releases=''[[Bernice Summerfield (series)|Bernice Summerfield]]'': Single Releases|BSBS|Bernice Summerfield Box Sets=''[[Bernice Summerfield (series)|Bernice Summerfield]]'': Box Sets|BFTW|Big Finish Torchwood=''[[Torchwood - Monthly Range|Torchwood]]''|BFTWSR|Big Finish Torchwood Special Releases=''[[Torchwood - Special Releases]]''|NSAA|New Series Adventures Audios=''[[BBC New Series Adventures#Audiobooks|New Series Adventures]]'' Audio|BBCTWAD|BBC Torchwood Audio Dramas=[[BBC Torchwood audio stories#Audio dramas|BBC ''Torchwood'' Audio Drama]]|BBCTWAB|BBC Torchwood Audiobooks=[[BBC Torchwood audio stories#Audiobooks|BBC ''Torchwood'' Audiobook]]}}{{#if:{{{number in range|}}}|&nbsp;{{{number in range}}}}}{{#if:{{{series in range|}}}|&nbsp;[[audio series::{{{series in range}}}|#{{{series number in range|{{SNIR|{{{series in range}}}|{{{range}}}}}}}}]]{{#if:{{{number in series|}}}|.{{{number in series}}}}}}}}}
     </span></div></navigation>
     </span></div></navigation>

Revision as of 19:06, 9 October 2022

Instructions for {{Infobox Story}}
{{Infobox Story}} is the only infobox you'll ever need for any type of story. It takes all variables from all different types of story, regardless of medium or subject matter. If it's a story, just use this template.

Usage

Because this template can be adapted to several different types of story, you'll need to click one of the links below to see how to use it.

Standalone stories

In a few exceptional cases, stories are completely standalone. Video games, for instance, are often released in isolation. The very first Doctor Who prose story, Doctor Who and the Invasion from Space wasn't a part of any series, nor was the short story, Doctor Who and the Daleks.

If you encounter such a story, just don't put anything in the prev or next fields. The navigation will simply disappear.

Navigation

Navigation between stories has been improved significantly with this template. It now allows for a more flexible approach. Instead of just one "navigational axis" — release order — you can now navigate by an additional two user-defined navigational axes, as well as by production order.

Here are the new variables, which can be used with any story type:

|series    =  
|prev      = 
|next      =
|series2   =
|prev2     =
|next2     =
|series3   = 
|prev3     =
|next3     =
|made prev =
|made next =
  • If there is no previous or next story in a series, simply don't put anything in {{{prev}}} or {{{next}}}, as appropriate. Please don't put "none" -- just don't put anything. See Time and Relative for an example.
  • By convention, if the production and broadcast order are the same, then there is no need to define {{{made prev}}} and {{{made next}}}. The exception is when one of the the two directions is the same. For instance, An Unearthly Child has no preceding broadcast story, so {{{prev}}} is blank. But because it does have a {{{made prev}}} — that is, The Pilot Episode, you should go ahead and fill in {{{made next}}} with The Daleks (TV story). Note, however, that The Daleks itself has no production order defined, because it's the same as the broadcast order, which is true throughout the 1960s and much of the Jon Pertwee era. If you'd like to get a feel for how this production order works, go to a complicated period. Start with The Invisible Enemy, and work your way through to Logopolis.
  • Flowing from the above, if you define a previous variable, you must also define the next variable in that series (or vice versa). All prev/next variables must be balanced -- except when the infobox is on the page on the first or last story in a series.