Template:Infobox Story SMW: Difference between revisions
Bongolium500 (talk | contribs) No edit summary |
Bongolium500 (talk | contribs) m (oops again) |
||
Line 2: | Line 2: | ||
--><infobox theme="infobox"> | --><infobox theme="infobox"> | ||
<title source="name"><default>''<!--{{{name override|-->{{dab away|{{PAGENAME}}}}<!--}}}-->''</default></title> | <title source="name"><default>''<!--{{{name override|-->{{dab away|{{PAGENAME}}}}<!--}}}-->''</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}}}{{#set:special={{{special}}}|}}{{#if:{{{range|}}}|{{#switch:{{{range}}}|#default=''[[range::{{{range}}}|{{dau|{{{range}}}}}]]''|MR|Main Range|0=[[range::Main Range]]|BSSR|Bernice Summerfield Single Releases=''[[range::Bernice Summerfield (series)|Bernice Summerfield]]'': Single Releases|BSBS|Bernice Summerfield Box Sets=''[[range::Bernice Summerfield (series)|Bernice Summerfield]]'': Box Sets|Dark Eyes (audio series)|The Eighth Doctor Adventures: Dark Eyes=''[[range::The Eighth Doctor Adventures#Dark Eyes|The Eighth Doctor Adventures: Dark Eyes]]''|Doom Coalition (audio series)|The Eighth Doctor Adventures: Doom Coalition=''[[range::The Eighth Doctor Adventures#Doom Coalition|The Eighth Doctor Adventures: Doom Coalition]]''|Ravenous (audio series)|The Eighth Doctor Adventures: Ravenous=''[[range::The Eighth Doctor Adventures#Ravenous|The Eighth Doctor Adventures: Ravenous]]''|Stranded (audio series)|The Eighth Doctor Adventures: Stranded=''[[range::The Eighth Doctor Adventures#Stranded|The Eighth Doctor Adventures: Stranded]]''|BFTW|Big Finish Torchwood=''[[range::Big Finish Torchwood series|Torchwood]]''|BFTWSR|Big Finish Torchwood Special Releases=''[[range::Big Finish Torchwood series|Torchwood]] Special Releases''|NSA|BBC New Series Adventures=[[BBC New Series Adventures|BBC ''New Series Adventures'']]|NSAA|New Series Adventures Audios=''[[range::BBC New Series Adventures#Audiobooks|New Series Adventures]]'' Audio|BBCTWAD|BBC Torchwood Audio Dramas=[[range::BBC Torchwood audio stories#Audio dramas|BBC ''Torchwood'' Audio Drama]]|BBCTWAB|BBC Torchwood Audiobooks=[[range::BBC Torchwood audio stories#Audiobooks|BBC ''Torchwood'' Audiobook]]|DWM comic stories=[[DWM comic stories|DWM Comics]]}}{{#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> | <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}}}{{#set:special={{{special}}}}}|}}{{#if:{{{range|}}}|{{#switch:{{{range}}}|#default=''[[range::{{{range}}}|{{dau|{{{range}}}}}]]''|MR|Main Range|0=[[range::Main Range]]|BSSR|Bernice Summerfield Single Releases=''[[range::Bernice Summerfield (series)|Bernice Summerfield]]'': Single Releases|BSBS|Bernice Summerfield Box Sets=''[[range::Bernice Summerfield (series)|Bernice Summerfield]]'': Box Sets|Dark Eyes (audio series)|The Eighth Doctor Adventures: Dark Eyes=''[[range::The Eighth Doctor Adventures#Dark Eyes|The Eighth Doctor Adventures: Dark Eyes]]''|Doom Coalition (audio series)|The Eighth Doctor Adventures: Doom Coalition=''[[range::The Eighth Doctor Adventures#Doom Coalition|The Eighth Doctor Adventures: Doom Coalition]]''|Ravenous (audio series)|The Eighth Doctor Adventures: Ravenous=''[[range::The Eighth Doctor Adventures#Ravenous|The Eighth Doctor Adventures: Ravenous]]''|Stranded (audio series)|The Eighth Doctor Adventures: Stranded=''[[range::The Eighth Doctor Adventures#Stranded|The Eighth Doctor Adventures: Stranded]]''|BFTW|Big Finish Torchwood=''[[range::Big Finish Torchwood series|Torchwood]]''|BFTWSR|Big Finish Torchwood Special Releases=''[[range::Big Finish Torchwood series|Torchwood]] Special Releases''|NSA|BBC New Series Adventures=[[BBC New Series Adventures|BBC ''New Series Adventures'']]|NSAA|New Series Adventures Audios=''[[range::BBC New Series Adventures#Audiobooks|New Series Adventures]]'' Audio|BBCTWAD|BBC Torchwood Audio Dramas=[[range::BBC Torchwood audio stories#Audio dramas|BBC ''Torchwood'' Audio Drama]]|BBCTWAB|BBC Torchwood Audiobooks=[[range::BBC Torchwood audio stories#Audiobooks|BBC ''Torchwood'' Audiobook]]|DWM comic stories=[[DWM comic stories|DWM Comics]]}}{{#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> | ||
<!-- Main infobox images --> | <!-- Main infobox images --> | ||
Revision as of 22:05, 10 November 2023
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.
Usage
This template is used almost identically to {{Infobox Story}} with a few important changes. If you're converting a page from using {{Infobox Story}} to using this template, simply run through the steps below. If you're implementing this template on a new page, first setup this template like {{Infobox Story}} and then switch it over to this one with the steps below.
- |writer= should be converted into an unlinked, comma separated list, if it is used. For example, "|writer=[[Malorie Blackman]] and [[Chris Chibnall]]" would become "|writer=Malorie Blackman, Chris Chibnall".
- In more complex scenarios, such as when parentheticals and/or footnotes are used, or if {{il}} is used, |writer= should be set as above, without links, parentheticals, footnotes or templates like {{il}}. In addition, |writer display= should be set with the old text of |writer=, including all parentheticals, footnotes, templates and links that were used. This parameter will be used as the display text.
- |publisher=, |publisher2= and |publisher3= should be merged into |publisher= as an unlinked, comma separated list, if they are used.
- Links should be removed from |anthology=, |audio anthology= and |network=, if they are used. If there are multiple items for any of these fields, use a comma separated list.
- If any of the individual items (even if it is the only item) in |writer=, |publisher=, |anthology=, |audio anthology= or |network= contain a comma, set |separator= to some other suitable deliminator, such as ";", and replace all commas used for separating items in each of those fields with this new separator.
- Simple dab terms are automatically removed from the display text of the unlinked fields mentioned so far. In more complex scenarios, custom display text can be specified by adding "{{!}}" after the unlinked page name, followed by the display text. Note that any pipes ("|") that appear in the display text should also be replaced with "{{!}}". For example, to produce 2|entertain, you would type "2 entertain{{!}}2{{!}}entertain".
- Including the text "unknown", "various" or "unclear" as one of the things listed in these comma-separated fields will cause that thing to not be autolinked. That allows for arbitrary wiki markup to be used, as long as one of these phrases are present. Additionally, "see authorship" has the same behaviour for |writer= only.
- If these fields are detected to contain commas, their label will automatically be pluralised. You can force these labels to be pluralised by setting fields like |plural writer=, |plural publisher=, plural network=, etc. to any value.
- For scenarios that are too complicated to represent with one of the above fields, set the problematic field to the text that should be saved to SMW and used in citations. Then, set the display text with a field like |writer display=, |publisher display=, |network display=, etc.
- There is a depracated |contributors= that is the same as |writer display=, but that also sets |plural writer=. This is being phased out.
- Links and dab terms should be removed from all date fields (such as |release date= and |broadcast date=) that are used. For example, "[[23 November (releases)|23 November]] - [[14 December (releases)|14 December]] [[1963 (releases)|1963]]" would become "23 November - 14 December 1963". For more details, see the documentation at {{date link}}.
- If there are multiple dates or date ranges separated by commas or <br>s, or wrapped in {{il}}, split the field into multiple, numbered fields such as |release date=, |release date2=, |release date3=, etc. The same is true for other date fields (e.g. |broadcast date2=...). Note that only the original, un-numbered, field is saved to SMW and used in citations.
- If the date is accompanied by a citation, you can add that by using |release date ref=, |broadcast date ref=, etc. This will add the contents of that field to the end of the date, or list of dates if multiple numbered fields are used.
- For scenarios too complicated to represent with the above fields, set the primary date field (e.g. |release date=, |broadcast date=, etc.) to the date to be saved to SMW and used for citations. Then, set |release date display= (or |broadcast date display=, etc.) to the display text for the infobox.
Customising the additional information
As previously mentioned, data collected from this template is used to produce the additional information that forms the core of {{cite source}}. While this usually works fine without making any adjustments, sometimes it doesn't; in those cases, the additional information can be customised.
The source's series is normally taken from |range= or |series=, in that order of preference. If these fail to produce satisfactory text, custom series text can be set using |citation series=. This parameter is not displayed anywhere in the infobox: it's only used in {{cite source}}, and it can contain arbitrary wiki markup. Very common series overrides can be set globally to apply to all pages according to the documentation at Module:Cite source/series overrides.
The entire additional information text can be overridden fully using |citation text=. This parameter is not displayed anywhere in the infobox, only in {{cite source}}. It can contain arbitrary wiki markup.