Template:Infobox Story: Difference between revisions
(Since this is being used for more than TV stories. The other solution would be to create a second variable.) Tags: Mobile edit Mobile web edit 2017 source edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
(25 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<infobox theme="infobox"> | <infobox theme="infobox"> | ||
<title source="name"><default>''<!--{{{name override|-->{{ | <title source="name"><default>''<!--{{{name override|-->{{StoryTitle}}<!--}}}-->''</default></title> | ||
<navigation><div style="text-align:center">{{#if:{{{serial production code|}}}| {{{serial production code}}} — |}}<span style="font-size:100%">{{#if:{{{season number|}}}|[[season::{{{season number}}}|{{da smw|{{{season number}}}}}]]}}{{#if:{{{series episode number|}}}|, Episode{{#if:{{{series episode number2|}}}|s {{{series episode number|}}} & {{{series episode number2|}}}| {{{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|}}}|, [[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=''[[ | <navigation><div style="text-align:center">{{#if:{{{serial production code|}}}| {{{serial production code}}} — |}}<span style="font-size:100%">{{#if:{{{season number|}}}|[[season::{{{season number}}}|{{da smw|{{{season number}}}}}]]}}{{#if:{{{series episode number|}}}|, Episode{{#if:{{{series episode number2|}}}|s {{{series episode number|}}} & {{{series episode number2|}}}| {{{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|}}}|, [[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|Dark Eyes (audio series)|The Eighth Doctor Adventures: Dark Eyes=''[[The Eighth Doctor Adventures#Dark Eyes|The Eighth Doctor Adventures: Dark Eyes]]''|Doom Coalition (audio series)|The Eighth Doctor Adventures: Doom Coalition=''[[The Eighth Doctor Adventures#Doom Coalition|The Eighth Doctor Adventures: Doom Coalition]]''|Ravenous (audio series)|The Eighth Doctor Adventures: Ravenous=''[[The Eighth Doctor Adventures#Ravenous|The Eighth Doctor Adventures: Ravenous]]''|Stranded (audio series)|The Eighth Doctor Adventures: Stranded=''[[The Eighth Doctor Adventures#Stranded|The Eighth Doctor Adventures: Stranded]]''|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|}}}| {{{number in range}}}}}{{#if:{{{series in range|}}}| [[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> | ||
<!-- Main infobox images --> | <!-- Main infobox images --> | ||
Line 36: | Line 36: | ||
<data source="developer"><label>Developer:</label></data> | <data source="developer"><label>Developer:</label></data> | ||
<data source="editor"><label>Editor:</label></data> | <data source="editor"><label>Editor:</label></data> | ||
<data source="writer"><label>Writer:</label></data> | <data source="writer"><label>Writer{{#if:{{#pos:{{{writer|}}}|,}}{{#pos:{{{writer|}}}|and}}{{#pos:{{{writer|}}}|&}}{{{plural writer|}}}|s}}:</label></data> | ||
<data source="lead writer"><label>Lead writer</label><format>[[{{{lead writer}}}]]</format></data> | <data source="lead writer"><label>Lead writer</label><format>[[{{{lead writer}}}]]</format></data> | ||
<data source="other writers"><label>Other writers:</label></data> | <data source="other writers"><label>Other writers:</label></data> | ||
Line 65: | Line 65: | ||
<data source="genre"><label>Genre:</label></data> | <data source="genre"><label>Genre:</label></data> | ||
<data source="story number"><label>Story number:</label></data> | <data source="story number"><label>Story number:</label></data> | ||
<data source="epcount"><label>Number of parts:</label><format>{{{epcount}}}{{#if:{{{epcount|}}}|{{#set:epcount={{{epcount}}}}}|}}</format></data> | <data source="epcount"><label>Number of parts:</label><format>{{{epcount}}}{{#if:{{{epcount2|}}}|, {{{epcount2}}}{{#set:epcount={{da smw|{{{epcount2}}}}}}}}}{{#if:{{{epcount|}}}|{{#set:epcount={{#if:{{#explode:{{{epcount}}}||1}}|1|{{{epcount}}}}}}}|}}</format></data> | ||
<data source="number"><label>Release number:</label></data> | <data source="number"><label>Release number:</label></data> | ||
<data source="broadcast date"><label>Premiere broadcast:</label></data> | <data source="broadcast date"><label>Premiere broadcast:</label></data> | ||
Line 87: | Line 87: | ||
<data source="production code"><label>[[List of production codes|Production code]]:</label></data> | <data source="production code"><label>[[List of production codes|Production code]]:</label></data> | ||
<data source="confidential"><label>''[[Doctor Who Confidential|Confidential]]'':</label><format>''[[confidential::{{{confidential}}}{{!}}{{ dau|{{{confidential}}} }}]]''{{#if:{{{confidential2|}}}|, ''[[confidential::{{{confidential2}}}|{{ dau|{{{confidential2}}} }} ]]''}}</format></data> | <data source="confidential"><label>''[[Doctor Who Confidential|Confidential]]'':</label><format>''[[confidential::{{{confidential}}}{{!}}{{ dau|{{{confidential}}} }}]]''{{#if:{{{confidential2|}}}|, ''[[confidential::{{{confidential2}}}|{{ dau|{{{confidential2}}} }} ]]''}}</format></data> | ||
<data source="dwi"><label>''[[Doctor Who Insider]]'':</label><format>''[[dwi::{{{dwi}}}{{!}}{{ dau|{{{dwi}}} }}]]'' | <data source="dwe"><label>''[[Doctor Who Extra|Extra]]'':</label><format>''[[dwe::{{{dwe}}}{{!}}{{ dau|{{{dwe}}} }}]]''{{#if:{{{dwe2|}}}|, ''[[dwe::{{{dwe2}}}|{{ dau|{{{dwe2}}} }} ]]''}}</format></data> | ||
<data source="dwi"><label>''[[Doctor Who Insider]]'':</label><format>''[[dwi::{{{dwi}}}{{!}}{{ dau|{{{dwi}}} }}]]''{{#if:{{{dwi2|}}}|, ''[[dwi::{{{dwi2}}}|{{ dau|{{{dwi2}}} }} ]]''}}</format></data> | |||
<data source="thwr"><label>''[[Toby Hadoke's Who's Round]]'':</label><format>[[thwr::THWR {{{thwr}}}]]{{#if:{{{thwr2|}}}|, [[thwr::THWR {{{thwr2}}}|{{{thwr2}}}]]|}}{{#if:{{{thwr3|}}}|, [[thwr::THWR {{{thwr3}}}|{{{thwr3}}}]]|}}{{#if:{{{thwr4|}}}|, [[thwr::THWR {{{thwr4}}}|{{{thwr4}}}]]|}}{{#if:{{{thwr5|}}}|, [[thwr::THWR {{{thwr5}}}|{{{thwr5}}}]]|}}{{#if:{{{thwr6|}}}|, [[thwr::THWR {{{thwr6}}}|{{{thwr6}}}]]|}}{{#if:{{{thwr7|}}}|, [[thwr::THWR {{{thwr7}}}|{{{thwr7}}}]]|}}{{#if:{{{thwr8|}}}|, [[thwr::THWR {{{thwr8}}}|{{{thwr8}}}]]|}}{{#if:{{{thwr9|}}}|, [[thwr::THWR {{{thwr9}}}|{{{thwr9}}}]]|}}{{#if:{{{thwr10|}}}|, [[thwr::THWR {{{thwr10}}}|{{{thwr10}}}]]|}}</format></data> | <data source="thwr"><label>''[[Toby Hadoke's Who's Round]]'':</label><format>[[thwr::THWR {{{thwr}}}]]{{#if:{{{thwr2|}}}|, [[thwr::THWR {{{thwr2}}}|{{{thwr2}}}]]|}}{{#if:{{{thwr3|}}}|, [[thwr::THWR {{{thwr3}}}|{{{thwr3}}}]]|}}{{#if:{{{thwr4|}}}|, [[thwr::THWR {{{thwr4}}}|{{{thwr4}}}]]|}}{{#if:{{{thwr5|}}}|, [[thwr::THWR {{{thwr5}}}|{{{thwr5}}}]]|}}{{#if:{{{thwr6|}}}|, [[thwr::THWR {{{thwr6}}}|{{{thwr6}}}]]|}}{{#if:{{{thwr7|}}}|, [[thwr::THWR {{{thwr7}}}|{{{thwr7}}}]]|}}{{#if:{{{thwr8|}}}|, [[thwr::THWR {{{thwr8}}}|{{{thwr8}}}]]|}}{{#if:{{{thwr9|}}}|, [[thwr::THWR {{{thwr9}}}|{{{thwr9}}}]]|}}{{#if:{{{thwr10|}}}|, [[thwr::THWR {{{thwr10}}}|{{{thwr10}}}]]|}}</format></data> | ||
<data source="isbn"><label>ISBN:</label><format | <data source="isbn"><label>ISBN:</label><format>{{{isbn}}}{{#ifeq:{{{isbn|none}}}|none||{{#set:isbn={{#arraymap:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{isbn}}}|<br>|;}}|<br/>|;}}|<br />|;}}|,|;}}|TBA|tba}}|''TBA''|tba}}|''tba''|tba}}|;|VAR|{{#ifeq:{{#explode:VAR|(|0}}|tba||{{#explode:VAR|(|0}}}}|;}}|+sep=;}}}}</format></data> | ||
<group layout="horizontal"> | <group layout="horizontal"> | ||
<data source="ibook"><format><span style="color:#000">[http://itunes.apple.com/book/id{{{ibook}}} available as iBook]</span></format></data> | <data source="ibook"><format><span style="color:#000">[http://itunes.apple.com/book/id{{{ibook}}} available as iBook]</span></format></data> | ||
Line 108: | Line 109: | ||
<group> | <group> | ||
<header>{{#if:{{{soundcloudtrailer|}}}|Video trailer|Official trailer}}</header> | <header>{{#if:{{{soundcloudtrailer|}}}|Video trailer|Official trailer}}</header> | ||
< | <data source="trailer"><format>{{video|{{{trailer}}}|250px|center}}</format></data> | ||
</group> | </group> | ||
<group> | <group> | ||
<header>Another official trailer</header> | <header>Another official trailer</header> | ||
< | <data source="trailer2"><format>{{video|{{{trailer2}}}|250px|center}}</format></data> | ||
</group> | </group> | ||
<group> | <group> | ||
<header>{{{clip name|Memorable moment}}}</header> | <header>{{{clip name|Memorable moment}}}</header> | ||
< | <data source="clip"><format>{{video|{{{clip}}}|250px|center}}</format></data> | ||
</group> | </group> | ||
<group> | <group> | ||
<header>{{{clip2 name|Another memorable moment}}}</header> | <header>{{{clip2 name|Another memorable moment}}}</header> | ||
< | <data source="clip2"><format>{{video|{{{clip2}}}|250px|center}}</format></data> | ||
</group> | </group> | ||
<group> | <group> | ||
<header>{{{clip3 name|One more memorable moment}}}</header> | <header>{{{clip3 name|One more memorable moment}}}</header> | ||
< | <data source="clip3"><format>{{video|{{{clip3}}}|250px|center}}</format></data> | ||
</group> | </group> | ||
<group> | <group> | ||
<header>{{{fullvid name|Full video}}}</header> | <header>{{{fullvid name|Full video}}}</header> | ||
< | <data source="fullvid"><format>{{video|{{{fullvid}}}|250px|center}}</format></data> | ||
</group> | </group> | ||
<group> | <group> | ||
<header>{{{bts name|Behind the scenes video}}}</header> | <header>{{{bts name|Behind the scenes video}}}</header> | ||
< | <data source="bts"><format>{{video|{{{bts}}}|250px|center}}</format></data> | ||
</group> | </group> | ||
<group> | <group> | ||
<header>More behind the scenes stuff</header> | <header>More behind the scenes stuff</header> | ||
< | <data source="bts2"><format>{{video|{{{bts2}}}|250px|center}}</format></data> | ||
</group> | </group> | ||
<group> | <group> | ||
<header>Another behind the scenes moment</header> | <header>Another behind the scenes moment</header> | ||
< | <data source="bts3"><format>{{video|{{{bts3}}}|250px|center}}</format></data> | ||
</group> | </group> | ||
<group> | <group> | ||
<header>A Scene in Analysis</header> | <header>A Scene in Analysis</header> | ||
< | <data source="scene analysis"><format>{{video|{{{scene analysis}}}|250px|center}}</format></data> | ||
</group> | </group> | ||
<group> | <group> | ||
<header>Extended interview</header> | <header>Extended interview</header> | ||
< | <data source="ex interview"><format>{{video|{{{ex interview}}}|250px|center}}</format></data> | ||
</group> | </group> | ||
Line 234: | Line 235: | ||
<data source="prev3"><label>← Previous</label><format>''{{da|{{{prev3}}}}}''</format></data> | <data source="prev3"><label>← Previous</label><format>''{{da|{{{prev3}}}}}''</format></data> | ||
<data source="next3"><label>Next →</label><format>''{{da|{{{next3}}}}}''</format></data> | <data source="next3"><label>Next →</label><format>''{{da|{{{next3}}}}}''</format></data> | ||
</group> | |||
<group layout="horizontal"> | |||
<header><div class="story-nav">{{{series4}}}</div></header> | |||
<data source="prev4"><label>← Previous</label><format>''{{da|{{{prev4}}}}}''</format></data> | |||
<data source="next4"><label>Next →</label><format>''{{da|{{{next4}}}}}''</format></data> | |||
</group> | </group> | ||
</infobox> | </infobox> | ||
<noinclude>{{Documentation}}[[Category:Infoboxes]]</noinclude> | <noinclude>{{Documentation}}[[Category:Infoboxes]]</noinclude> |
Latest revision as of 17:09, 24 March 2024
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 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.