Tech, emailconfirmed, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Administrators
12,456
edits
Bongolium500 (talk | contribs) No edit summary |
Bongolium500 (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
<pre>Her birthday was the 16th of August. ([[PROSE]]: [[Our Tune (short story)|]])</pre> | <pre>Her birthday was the 16th of August. ([[PROSE]]: [[Our Tune (short story)|]])</pre> | ||
== | == Method One - Collapsible == | ||
=== V1 - Manual === | |||
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)|Iris Wildthyme]]'' published by [[Obverse Books]] in [[2013 (releases)|2013]].</span></sup>) | 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)|Iris Wildthyme]]'' published by [[Obverse Books]] in [[2013 (releases)|2013]].</span></sup>) | ||
<pre>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>)</pre> | <pre>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>)</pre> | ||
=== Issues === | ==== Issues ==== | ||
According to [https://www.mediawiki.org/wiki/Manual:Collapsible_elements 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. | According to [https://www.mediawiki.org/wiki/Manual:Collapsible_elements 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 === | ==== As a Template ==== | ||
<pre><sup><span class="mw-customtoggle-Our_Tune">+</span> <span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-Our_Tune">{{#if:{{{anthology|}}}|Part of ''[[{{{anthology|}}}|{{dau|{{{anthology}}}}}]]'' {{#if:{{{series|}}}|from ''[[{{{series|}}}|{{dau|{{{series}}}}}]]''}} published|{{#if:{{{series|}}}|From the series ''[[{{{series|}}}|{{dau|{{{series}}}}}]]'' published|Published}}}} by [[{{{publisher}}}|{{dau|{{{publisher}}}}}]] in [[{{{year}}} (releases)|{{{year}}}]].</span></sup></pre> | <pre><sup><span class="mw-customtoggle-Our_Tune">+</span> <span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-Our_Tune">{{#if:{{{anthology|}}}|Part of ''[[{{{anthology|}}}|{{dau|{{{anthology}}}}}]]'' {{#if:{{{series|}}}|from ''[[{{{series|}}}|{{dau|{{{series}}}}}]]''}} published|{{#if:{{{series|}}}|From the series ''[[{{{series|}}}|{{dau|{{{series}}}}}]]'' published|Published}}}} by [[{{{publisher}}}|{{dau|{{{publisher}}}}}]] in [[{{{year}}} (releases)|{{{year}}}]].</span></sup></pre> | ||
==== Usage ==== | ===== Usage ===== | ||
<pre>{{exsource|anthology=|series=|publisher=|year=}}</pre> | <pre>{{exsource|anthology=|series=|publisher=|year=}}</pre> | ||
Anthology and series are optional. Publisher and year are required. Please do not link. Please include dab terms for anthology, series and publisher but not year. | Anthology and series are optional. Publisher and year are required. Please do not link. Please include dab terms for anthology, series and publisher but not year. | ||
===== Example ===== | ====== Example ====== | ||
<pre>([[PROSE]]: ''[[Our Tune (short story)|]]'' {{exsource|anthology=Iris: Fifteen (anthology)|series=Iris Wildthyme (series)|publisher=Obverse Books|year=2013}})</pre> | <pre>([[PROSE]]: ''[[Our Tune (short story)|]]'' {{exsource|anthology=Iris: Fifteen (anthology)|series=Iris Wildthyme (series)|publisher=Obverse Books|year=2013}})</pre> | ||
== | === V2 - Automated === | ||
This should be visually identical to [[#Attempt One - Collapsible|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 [[#Issues|in this section]]. | This should be visually identical to [[#Attempt One - Collapsible|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 [[#Issues|in this section]]. | ||
Line 35: | Line 36: | ||
For this to work at all, a lot of prior work needs to be done with [[T:SMW|Semantic MediaWiki]] annotations. By far the best solution (in terms of future-proofing and best practises) is too update [[Template:Infobox Story|Infobox Story]]. However, this would require changing '''every''' page using this template which is, well, a lot. 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. | For this to work at all, a lot of prior work needs to be done with [[T:SMW|Semantic MediaWiki]] annotations. By far the best solution (in terms of future-proofing and best practises) is too update [[Template:Infobox Story|Infobox Story]]. However, this would require changing '''every''' page using this template which is, well, a lot. 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 ==== | |||
<sup><span class="mw-customtoggle-Our_Tune">+</span> <span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-Our_Tune">{{#if:{{#show:{{{1|}}}|?anthology}}|Part of ''[[{{#show:{{{1|}}}|?anthology}}|{{dau|{{#show:{{{1|}}}|?anthology}}}}]]'' {{#if:{{#show:{{{1|}}}|?series}}|from ''[[{{#show:{{{1|}}}|?series}}|{{dau|{{#show:{{{1|}}}|?series}}}}]]''}} published|{{#if:{{#show:{{{1|}}}|?series}}|From the series ''[[{{#show:{{{1|}}}|?series}}|{{dau|{{#show:{{{1|}}}|?series}}}}]]'' published|Published}}}} by [[{{#show:{{{1|}}}|?publisher}}|{{dau|{{#show:{{{1|}}}|?publisher}}}}]] in [[{{#show:{{{1|}}}|?year}}|{{da{{#show:{{{1|}}}|?year}}}}]].</span></sup> |
edits