User:Bongolium500/Sandbox 5

From Tardis Wiki, the free Doctor Who reference

Here are some attempts at making more detailed source refences. A quite random example has been chosen to be used here.

A comparison of most variations can be found here. However, due to a lack of parity between extensions on this and the test wiki, some functionality only works on Tardis and so, where possible, templates are shown here.

Current[[edit] | [edit source]]

Her birthday was the 16th of August. (PROSE: Our Tune)

Her birthday was the 16th of August. ([[PROSE]]: [[Our Tune (short story)|]])

Method One - Collapsible[[edit] | [edit source]]

Versions 2 and 3 use version 1. Therefore, even if only version 2 or 3's functionality is wanted, version 1 also has to be added to the wiki. This is in order to make maintaining and updating the templates easier. If it is absolutely required, versions 2 and 3 can be made to work independently.

V1 - Manual[[edit] | [edit source]]

Her birthday was the 16th of August. (PROSE: Our Tune + Part of Iris: Fifteen from Iris Wildthyme published by Obverse Books in 2013.)

Her birthday was the 16th of August. ([[PROSE]]: ''[[Our Tune (short story)|Our Tune]]'' <sup><span class="mw-customtoggle-Our_Tune">+</span> <span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-Our_Tune">Part of ''[[Iris: Fifteen (anthology)|Iris: Fifteen]]'' from ''[[Iris Wildthyme (series)|]]'' published by [[Obverse Books]] in [[2013 (releases)|2013]].</span></sup>)

Issues[[edit] | [edit source]]

According to MediaWiki's website, this can be confusing for users using a screen reader. Every collapsible is open for a short amount of time while the page loads before closing which, on a larger page using this a lot, would cause the page to jump a lot.

As a Template[[edit] | [edit source]]

If formatting looks strange here, it is because it is only designed to look good in the editor without <pre></pre>.

<sup><span class="mw-customtoggle-{{#vardefineecho:id|{{#expr:{{#var:id|0}}+1}}}}">+</span> <span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{#var:id}}"><!--
-->{{#if:{{{partof|}}}|Part of ''[[{{{partof|}}}|{{dau|{{{partof}}}}}]]'' <!--
 -->{{#if:{{{series|}}}|from the series ''[[{{{series|}}}|{{dau|{{{series}}}}}]]''}} <!--end #if (series)
 -->{{#if:{{{season|}}}|[[{{{season}}}|{{dau|{{{season|}}}}}]]}} <!--end #if (season)
-->{{#if:{{{writer|}}}|written by [[{{{writer|}}}|{{dau|{{{writer|}}}}}]] and {{#if:{{{writer2|}}}|[[{{{writer2|}}}|{{dau|{{{writer2|}}}}}]] and }}<!--end #if (writer2)-->}} <!--end #if (writer)
-->{{#if:{{{publisher|}}}|published|released}}<!--
-->|{{#if:{{{series|}}}|Part of the series ''[[{{{series|}}}|{{dau|{{{series}}}}}]]''<!--
-->{{#if:{{{season|}}}|<nowiki /> [[{{{season}}}|{{dau|{{{season|}}}}}]]}}<!--end #if (season)
-->{{#if:{{{series3|}}}|, ''[[{{{series2}}}|{{dau|{{{series2|}}}}}]]'' <!--
 -->{{#if:{{{season2|}}}|[[{{{season2}}}|{{dau|{{{season2|}}}}}]]}} <!--end #if (season2)
 -->and ''[[{{{series3}}}|{{dau|{{{series3|}}}}}]]'' <!--
 -->{{#if:{{{season3|}}}|[[{{{season3}}}|{{dau|{{{season3|}}}}}]]}} <!--end #if (season3)
-->|<!--divide #if (series3)-->{{#if:{{{series2|}}}|<nowiki /> and ''[[{{{series2}}}|{{dau|{{{series2|}}}}}]]'' <!--
 -->{{#if:{{{season2|}}}|[[{{{season2}}}|{{dau|{{{season2|}}}}}]]}} <!--end #if (season2)-->}}<!--end #if (series2)-->}}<!--end #if (series3)
-->{{#if:{{{writer|}}}|<nowiki /> written by [[{{{writer|}}}|{{dau|{{{writer|}}}}}]] and {{#if:{{{writer2|}}}|[[{{{writer2|}}}|{{dau|{{{writer2|}}}}}]] and }}<!--end #if (writer2)-->}} <!--end #if (writer)
-->{{#if:{{{publisher|}}}|published|released}} <!--end #if (publisher)
-->|{{#if:{{{writer|}}}|Written by [[{{{writer|}}}|{{dau|{{{writer|}}}}}]] and {{#if:{{{writer2|}}}|[[{{{writer2|}}}|{{dau|{{{writer2|}}}}}]] and }} <!--end #if (writer2)
-->{{#if:{{{publisher|}}}|published|released}}<!--end #if (publisher)-->}}<!--end #if (writer)
--> |{{#if:{{{publisher|}}}|Published|Released}}<!--end #if (publisher)-->}}<!--end #if (series)-->}} <!--end #if (anthology)
-->{{#if:{{{publisher|}}}|by [[{{{publisher}}}|{{dau|{{{publisher}}}}}]]}} <!--end #if (publisher)
-->{{#if:{{{year2|}}}|between [[{{{year}}} (releases)|{{{year}}}]] and [[{{{year2}}} (releases)|{{{year2}}}]]<!--
-->|{{#if:{{{year|}}}|in [[{{{year}}} (releases)|{{{year}}}]]}} <!--end #if (year)-->}}<!--end #if (year2)
-->{{#if:{{{first|}}}|<nowiki /> throughout issues [[{{{first}}}|{{dau|{{{first}}}}}]] - [[{{{last}}}|{{dau|{{{last}}}}}]]}}<!--end #if (first)-->.</span></sup>
Usage[[edit] | [edit source]]
{{exsource|anthology=|series=|series#=|publisher=|year=}}

All variables are optional. Please do not link. Please include dab terms for anthology, series and publisher but not year. The ID can be any string. However, it must not be used for this template anywhere else on the page.

Examples[[edit] | [edit source]]
([[PROSE]]: ''[[The Eight Doctors (novel)|]]'' {{exsource|series=BBC Eighth Doctor Adventures|writer=Terrance Dicks|publisher=BBC Books|year=1997}})

(PROSE: The Eight Doctors + Part of the series BBC Eighth Doctor Adventures written by Terrance Dicks and published by BBC Books in 1997.)

([[PROSE]]: ''[[Our Tune (short story)|]]'' {{exsource|partof=Iris: Fifteen (anthology)|series=Iris Wildthyme (series)|writer=Ross Douglas|publisher=Obverse Books|year=2013}})

(PROSE: Our Tune + Part of Iris: Fifteen from the series Iris Wildthyme written by Ross Douglas and published by Obverse Books in 2013.)

([[PROSE]]: ''[[Rose (novelisation)|]]'' {{user:Bongolium500/exsource|series=Target novelisation|writer=Russell T Davies|publisher=Target Books|year=2018}})

(PROSE: Rose + Part of the series Target novelisation written by Russell T Davies and published by Target Books in 2018.)

([[TV]: ''[[Rose (TV story)|]]'' {{exsource|series=Doctor Who|series#=1|writer=Russell T Davies|year=2005}})

(TV: Rose + Part of the series Doctor Who series 1 written by Russell T Davies and released in 2005.)

([[TV]]: ''[[The Daleks' Master Plan (TV story)|The Daleks' Master Plan]]'' {{exsource|series=Doctor Who|season=season 3 (Doctor Who 1963)|writer=Terry Nation|writer2=Dennis Spooner|year=1965|year2=1966}})

(TV: The Daleks' Master Plan + Part of the series Doctor Who season 3 written by Terry Nation and Dennis Spooner and released between 1965 and 1966.)

([[TV]]: ''[[A Girl's Best Friend (TV story)|]]'' {{exsource|series=K9 and Company|writer=Terence Dudley|year=1981}})

(TV: A Girl's Best Friend + Part of the series K9 and Company written by Terence Dudley and released in 1981.)

([[TV]]: "[[An Unearthly Child (episode)|]]" {{exsource|partof=An Unearthly Child (TV story)|series=Doctor Who|season=season 1 (Doctor Who 1963)|writer=Anthony Coburn|year=1963}})

(TV: "An Unearthly Child" + Part of An Unearthly Child from the series Doctor Who season 1 written by Anthony Coburn and released in 1963.)

([[AUDIO]]: ''[[Bang-Bang-a-Boom! (audio story)|Bang-Bang-a-Boom!]]'' {{exsource|series=Main Range|writer=Gareth Roberts|writer2=Clayton Hickman|publisher=Big Finish Productions|year=2002}})

(AUDIO: Bang-Bang-a-Boom! + Part of the series Main Range written by Gareth Roberts and Clayton Hickman and published by Big Finish Productions in 2002.)

([[AUDIO]]: ''[[Lost Property (audio story)|Lost Property]]'' {{exsource|series=Stranded (audio series)|partof=Stranded 1|writer=Matt Fitton|publisher=Big Finish Productions|year=2020}})

(AUDIO: Lost Property + Part of Stranded 1 from the series Stranded written by Matt Fitton and published by Big Finish Productions in 2020.)

([[AUDIO]]: ''[[Sabbath Dei (audio story)|]]'' {{exsource|series=The Faction Paradox Protocols|writer=Lawrence Miles|publisher=BBV Productions|year=2003}})

(AUDIO: Sabbath Dei + Part of the series The Faction Paradox Protocols, Faction Paradox and Audio Adventures in Time and Space written by Lawrence Miles and published by BBV Productions in 2003.)

([[COMIC]]: ''[[Revolutions of Terror (comic story)|]]'' {{exsource|first=10D 1|last=10D 3|series=Doctor Who: The Tenth Doctor|writer=Nick Abadzis|year=2014}})

(COMIC: Revolutions of Terror + Part of the series Doctor Who: The Tenth Doctor written by Nick Abadzis and published by Titan Comics in 2014 throughout issues 10D 1 - 10D 3.)

([[COMIC]]: ''[[The Klepton Parasites (comic story)|]]'' {{exsource|first=TVC 674|last=TVC 683|year=1964|year2=1965|series=TV Comic}})

(COMIC: The Klepton Parasites + Part of the series TV Comic released between 1964 and 1965 throughout issues TVC 674 - TVC 683.)

([[NOTVALID]]: ''[[Death Comes to Time (webcast)|Death Comes to Time]]'' {{exsource|writer=Colin Meek|year=2002}})

(NOTVALID: Death Comes to Time + Written by Colin Meek and released in 2002.)

([[WC]]: ''[[The Archive of Islos (webcast)|The Archive of Islos]]'' {{exsource|writer=James Goss|series=Daleks!|year=2020}})

(WC: The Archive of Islos + Part of the series Daleks! and Time Lord Victorious written by James Goss and released in 2020.)

([[NOTVALID]]: ''[[Dr. Who and the Daleks (theatrical film)|Dr. Who and the Daleks]]'' {{exsource|writer=Milton Subotsky|year=1965}})

(NOTVALID: Dr. Who and the Daleks + Written by Milton Subotsky and released in 1965.)

([[GAME]]: ''[[City of the Daleks (video game)|]]'' {{exsource|writer=Phil Ford|series=The Adventure Games|publisher=BBC Wales Interactive|year=2010}})

(GAME: City of the Daleks + Part of the series The Adventure Games written by Phil Ford and published by BBC Wales Interactive in 2010.)

([[HOMEVID]]: ''[[Auton (home video)|]]'' {{exsource|writer=Nicholas Briggs|series=Auton Trilogy|publisher=BBV Productions|year=1997}})

(HOMEVID: Auton + Part of the series Auton Trilogy written by Nicholas Briggs and published by BBV Productions in 1997.)

+ Part of the series Doctor Who Season 1, Torchwood Series 1 and Sarah Jane Adventures Series 1 released .

V2 - Automated[[edit] | [edit source]]

This should be visually identical to the above. However, it needs a fair amount of prior work to function correctly. Therefore, it does not work at all in its current state. There is more information on this in this section.

Her birthday was the 16th of August. (PROSE: Our Tune + Part of [[Iris: Fifteen (anthology)]] from [[Iris Wildthyme]] published by [[]] in [[]].)

Her birthday was the 16th of August. ([[PROSE]]: ''[[Our Tune (short story)|Our Tune]]'' <sup><span class="mw-customtoggle-Our_Tune">+</span> <span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-Our_Tune">Part of ''{{da|{{#show:Our Tune (short story)|?anthology}}}}'' from ''{{da|{{#show:Our Tune (short story)|?series}}}}'' published by ''{{da|{{#show:Our Tune (short story)|?publisher}}}}'' in ''{{da|{{#show:Our Tune (short story)|?year}}}}''.</span></sup>)

Issues[[edit] | [edit source]]

According to MediaWiki's website, this can be confusing for users using a screen reader. Every collapsible is open for a short amount of time while the page loads before closing which, on a larger page using this a lot, would cause the page to jump a lot.

For this to work at all, a lot of prior work needs to be done with Semantic MediaWiki annotations. By far the best solution (in terms of future-proofing and best practises) is to update Infobox Story. However, this would require changing every page using this template which comes out to 2541

pages. It might be possible to do this without changing every page, but it wouldn't be as good. Having said all of this, I 100% think putting in this work would be worth it as it would make some other cool stuff possible as well.

As a Template[[edit] | [edit source]]

{{Dai|{{{s|}}}}} <sup><span class="mw-customtoggle-{{{id|}}}">+</span> <span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{id|}}}">{{#if:{{#show:{{{s|}}}|?anthology}}|Part of ''[[{{#show:{{{s|}}}|?anthology|link=none}}|{{dau|{{#show:{{{s|}}}|?anthology|link=none}}}}]]'' {{#if:{{#show:{{{s|}}}|?series}}|from ''[[{{#show:{{{s|}}}|?series|link=none}}|{{dau|{{#show:{{{s|}}}|?series|link=none}}}}]]''}} {{#if:{{#show:{{{s|}}}|?series number|link=none}}|[[series {{#show:{{{s|}}}|?series number|link=none}} ({{#show:{{{s|}}}|?series|link=none}})|series {{#show:{{{s|}}}|?series number|link=none}}]]}} {{#if:{{#show:{{{s|}}}|?publisher}}|published}}{{#if:{{#show:{{{s|}}}|?premiere network}}|broadcast}}|{{#if:{{#show:{{{s|}}}|?series|link=none}}|Part of ''[[{{#show:{{{s|}}}|?series|link=none}}|{{dau|{{#show:{{{s|}}}|?series|link=none}}}}]]'' {{#if:{{#show:{{{s|}}}|?series number}}|[[series {{#show:{{{s|}}}|?series number|link=none}} ({{#show:{{{s|}}}|?series|link=none}})|series {{#show:{{{s|}}}|?series number|link=none}}]]}} {{#if:{{#show:{{{s|}}}|?publisher}}|published}}{{#if:{{#show:{{{s|}}}|?premiere network}}|broadcast}}|{{#if:{{#show:{{{s|}}}|?publisher}}|Published}}{{#if:{{#show:{{{s|}}}|?premiere network}}|Broadcast}}}}}} {{#if:{{#show:{{{s|}}}|?publisher}}|by [[{{#show:{{{s|}}}|?publisher|link=none}}|{{dau|{{#show:{{{s|}}}|?publisher|link=none}}}}]]}}{{#if:{{#show:{{{s|}}}|?premiere network}}|by [[{{#show:{{{s|}}}|?premiere network|link=none}}|{{dau|{{#show:{{{s|}}}|?premiere network|link=none}}}}]]}} {{#if:{{#show:{{{s|}}}|?year}}|in [[{{#show:{{{s|}}}|?year|link=none}}|{{dau|{{#show:{{{s|}}}|?year|link=none}}}}]]}}.</span></sup>

This template requires version 1's template to also be added to the wiki.

Usage[[edit] | [edit source]]
{{exs|s=}}

S is the story being used as a source and is therefore required. Please give it unlinked and with dab terms.

Example[[edit] | [edit source]]
([[PROSE]]: {{exs|s=Our Tune (short story)}})

V3 - Automatic With Manual Overrides[[edit] | [edit source]]

In theory, this template will produce identical results to the above 2. In fact, at its most basic, it is the above. However, it also allows for manual overrides to the automatically generated details.

Due to its nature, it will only work fully as a template and, as such, I cannot show it in non-template form.

Issues[[edit] | [edit source]]

According to MediaWiki's website, this can be confusing for users using a screen reader. Every collapsible is open for a short amount of time while the page loads before closing which, on a larger page using this a lot, would cause the page to jump a lot.

For this to work at all, a lot of prior work needs to be done with Semantic MediaWiki annotations. By far the best solution (in terms of future-proofing and best practises) is too update Infobox Story. However, this would require changing every page using this template which is 500

pages. It might be possible to do this without changing every page, but it wouldn't be as good. Having said all of this, I 100% think putting in this work would be worth it as it would make some other cool stuff possible as well. Additionally, it is worth noting this template could still be used in manual mode 

As a Template[[edit] | [edit source]]

{{Dai|{{{s|}}}}} <sup><span class="mw-customtoggle-{{{id|}}}">+</span> <span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{id|}}}">{{#if:{{{anthology|{{#show:{{{s|}}}|?anthology}}}}}|Part of ''[[{{{anthology|{{#show:{{{s|}}}|?anthology|link=none}}}}}|{{dau|{{{anthology|{{#show:{{{s|}}}|?anthology|link=none}}}}}}}]]'' {{#if:{{{series|{{#show:{{{s|}}}|?series}}}}}|from ''[[{{{series|{{#show:{{{s|}}}|?series|link=none}}}}}|{{dau|{{{series|{{#show:{{{s|}}}|?series|link=none}}}}}}}]]''}} {{#if:{{{series#|{{#show:{{{s|}}}|?series number|link=none}}}}}|[[series {{{series#|{{#show:{{{s|}}}|?series number|link=none}}}}} ({{{series|{{#show:{{{s|}}}|?series|link=none}}}}})|series {{{series#|{{#show:{{{s|}}}|?series number|link=none}}}}}]]}} {{#if:{{{publisher|{{#show:{{{s|}}}|?publisher|link=none}}}}}|published}}{{#if:{{{network|{{#show:{{{s|}}}|?premiere network|link=none}}}}}|first broadcast}}|{{#if:{{{series|{{#show:{{{s|}}}|?series|link=none}}}}}|Part of ''[[{{{series|{{#show:{{{s|}}}|?series|link=none}}}}}|{{dau|{{{series|{{#show:{{{s|}}}|?series|link=none}}}}}}}]]'' {{#if:{{{series#|{{#show:{{{s|}}}|?series number|link=none}}}}}|[[series {{{series#|{{#show:{{{s|}}}|?series number|link=none}}}}} ({{{series|{{#show:{{{s|}}}|?series|link=none}}}}})|series {{{series#|{{#show:{{{s|}}}|?series number|link=none}}}}}]]}} {{#if:{{{publisher|{{#show:{{{s|}}}|?publisher|link=none}}}}}|published}}{{#if:{{{network|{{#show:{{{s|}}}|?premiere network|link=none}}}}}|first broadcast}}|{{#if:{{{publisher|}}}|Published}}{{#if:{{{network|{{#show:{{{s|}}}|?premiere network|link=none}}}}}|First broadcast}}}}}} {{#if:{{{publisher|{{#show:{{{s|}}}|?publisher|link=none}}}}}|by [[{{{publisher|{{#show:{{{s|}}}|?publisher|link=none}}}}}|{{dau|{{{publisher|{{#show:{{{s|}}}|?publisher|link=none}}}}}}}]]}}{{#if:{{{network|{{#show:{{{s|}}}|?premiere network|link=none}}}}}|on [[{{{network|{{#show:{{{s|}}}|?premiere network|link=none}}}}}|{{dau|{{{network|{{#show:{{{s|}}}|?premiere network|link=none}}}}}}}]]}} {{#if:{{{year|{{#show:{{{s|}}}|?year|link=none}}}}}|in [[{{{year|{{#show:{{{s|}}}|?year|link=none}}}}}|{{dau|{{{year|{{#show:{{{s|}}}|?year|link=none}}}}}}}]]}}.</span></sup>

This template requires version 1's template to also be added to the wiki.

Usage[[edit] | [edit source]]
{{exts|s=|anthology=|series=|publisher=|year=}}

S is the story being used as a source and is, therefore, required. Please give it unlinked and with dab terms. Anthology, series, publisher and year are optional. They should only be used if the relevant Semantic MediaWiki annotations are incorrect or not present. In theory, they should never need using. The one exception I can think of is year, which could be used when the specific instance of a story being referenced had a minor change that didn't warrant a new page. Anthology, series, publisher and year must be unlinked with dab terms (for year this is (releases)).

Example[[edit] | [edit source]]

Fully automatic:

([[PROSE]]: {{exst|s=Our Tune (short story)}})

Fully manual:

([[PROSE]]: {{exst|s=Our Tune (short story)|anthology=Iris: Fifteen (anthology)|series=Iris Wildthyme (series)|publisher=Obverse Books|year=2013 (releases)}}}})

Method Two - Tooltip[[edit] | [edit source]]

V1 - Manual[[edit] | [edit source]]

Her birthday was the 16th of August. (PROSE: Our Tune ·)

Her birthday was the 16th of August. ([[PROSE]]: ''[[Our Tune (short story)|Our Tune]]'' <span title="Part of Iris: Fifteen from Iris Wildthyme published by Obverse Books in 2013.">·</span>)

Issues[[edit] | [edit source]]

This does not work at all on mobile, even if you are on desktop view. Links can't be included, nor can text be italicised.