User:SOTO/test: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
Tag: 2017 source edit
(Instructions for me. Let's run our test now.)
Tag: 2017 source edit
Line 1: Line 1:
Generated list of Tonys (Tonies?): https://tardis.fandom.com/api.php?action=query&list=prefixsearch&psnamespace=0&pssearch=Tony&pslimit=50
== Generate API content ==
# Generate a list of pages, in our case Tonys (Tonies?): https://tardis.fandom.com/api.php?action=query&list=prefixsearch&psnamespace=0&pssearch=Tony&pslimit=50
# Place results in <nowiki>pre</nowiki> tags.
# Run the following:
#: <pre style="background:black!important;color:white;font=size:.8em">
python pwb.py replace -regex "\<pre\>\n([\s\S]*?)(.)title\2: \2(.*?)\2\,\n" "* Start [[\3]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])[^\[]*?[^\[]*?pageid[^\[]*?\}[^\[]*?\}[^\[]*?\}" "* Start \1 End" -page:"User:SOTO/test" -pt:2 -summary:"Generating link cluster"
</pre>
#:''Adjust from 50 times to however many results you're working with.''
# Once finished, if you'd like to grab page contents, try changing the format like this:
#: <pre style="background:black!important;color:white">
python pwb.py replace -regex "\]\] \[\[" "|" -page:"User:SOTO/test" -pt:2 -summary:"Generating pipe switch complex"
</pre>
# Finally, input this variable into a link like this: https://tardis.fandom.com/api.php?action=query&prop=revisions&titles=Police_box|Kronkburger|Quantum_physics&rvslots=*&rvprop=content&formatversion=2
#: <pre style="background:black!important;color:white">
python pwb.py replace -regex "\* Start ([^\[]*?) End\n" "* https://tardis.fandom.com/api.php?action=query&prop=revisions&titles=\1&rvslots=*&rvprop=content&formatversion=2" -pt:2 -summary:"Generating API link"
</pre>
 
Example:
<pre>
<pre>
{
{

Revision as of 04:13, 24 May 2022

Generate API content

  1. Generate a list of pages, in our case Tonys (Tonies?): https://tardis.fandom.com/api.php?action=query&list=prefixsearch&psnamespace=0&pssearch=Tony&pslimit=50
  2. Place results in pre tags.
  3. Run the following:

python pwb.py replace -regex "\<pre\>\n([\s\S]*?)(.)title\2: \2(.*?)\2\,\n" "* Start [[\3]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])([\s\S]*?)(.)title\3: \3(.*?)\3\,\n" "* Start \1 [[\4]] " "\* Start (\[\[.*\]\])[^\[]*?[^\[]*?pageid[^\[]*?\}[^\[]*?\}[^\[]*?\}" "* Start \1 End" -page:"User:SOTO/test" -pt:2 -summary:"Generating link cluster"

  1. Adjust from 50 times to however many results you're working with.
  2. Once finished, if you'd like to grab page contents, try changing the format like this:

python pwb.py replace -regex "\]\] \[\[" "|" -page:"User:SOTO/test" -pt:2 -summary:"Generating pipe switch complex"

  1. Finally, input this variable into a link like this: https://tardis.fandom.com/api.php?action=query&prop=revisions&titles=Police_box%7CKronkburger%7CQuantum_physics&rvslots=*&rvprop=content&formatversion=2

python pwb.py replace -regex "\* Start ([^\[]*?) End\n" "* https://tardis.fandom.com/api.php?action=query&prop=revisions&titles=\1&rvslots=*&rvprop=content&formatversion=2" -pt:2 -summary:"Generating API link"

Example:

{
    "batchcomplete": "",
    "continue": {
        "psoffset": 50,
        "continue": "-||"
    },
    "query": {
        "prefixsearch": [
            {
                "ns": 0,
                "title": "Tony",
                "pageid": 34038
            },
            {
                "ns": 0,
                "title": "Tony Tyler",
                "pageid": 22702
            },
            {
                "ns": 0,
                "title": "Tony Blair",
                "pageid": 203114
            },
            {
                "ns": 0,
                "title": "Tony Mack",
                "pageid": 48435
            },
            {
                "ns": 0,
                "title": "Tony Clare",
                "pageid": 276073
            },
            {
                "ns": 0,
                "title": "Tony Curran",
                "pageid": 49497
            },
            {
                "ns": 0,
                "title": "Tony Clark",
                "pageid": 16593
            },
            {
                "ns": 0,
                "title": "Tony Virgo",
                "pageid": 9325
            },
            {
                "ns": 0,
                "title": "Tony Lee",
                "pageid": 32070
            },
            {
                "ns": 0,
                "title": "Tony Hall",
                "pageid": 116937
            },
            {
                "ns": 0,
                "title": "Tony Blair Regenerates (TV story)",
                "pageid": 213796
            },
            {
                "ns": 0,
                "title": "Tony's Sandwich Bar",
                "pageid": 276845
            },
            {
                "ns": 0,
                "title": "Tony Harding",
                "pageid": 13380
            },
            {
                "ns": 0,
                "title": "Tony Millan",
                "pageid": 84916
            },
            {
                "ns": 0,
                "title": "Tony Gardner",
                "pageid": 120233
            },
            {
                "ns": 0,
                "title": "Tony Osoba",
                "pageid": 10620
            },
            {
                "ns": 0,
                "title": "Tony Dow",
                "pageid": 112
            },
            {
                "ns": 0,
                "title": "Tony Beckley",
                "pageid": 8929
            },
            {
                "ns": 0,
                "title": "Tony Barker",
                "pageid": 29894
            },
            {
                "ns": 0,
                "title": "Tony Jones",
                "pageid": 203029
            },
            {
                "ns": 0,
                "title": "Tony Holland",
                "pageid": 58546
            },
            {
                "ns": 0,
                "title": "Tony Blackburn",
                "pageid": 43617
            },
            {
                "ns": 0,
                "title": "Tony Way",
                "pageid": 159932
            },
            {
                "ns": 0,
                "title": "Tony Starr",
                "pageid": 34089
            },
            {
                "ns": 0,
                "title": "Tony Masero",
                "pageid": 13969
            },
            {
                "ns": 0,
                "title": "Tony Selby",
                "pageid": 17199
            },
            {
                "ns": 0,
                "title": "Tony Caunter",
                "pageid": 10086
            },
            {
                "ns": 0,
                "title": "Tony Adams",
                "pageid": 10106
            },
            {
                "ns": 0,
                "title": "Tony Harwood",
                "pageid": 10311
            },
            {
                "ns": 0,
                "title": "Tony Benn",
                "pageid": 163805
            },
            {
                "ns": 0,
                "title": "Tony Snoaden",
                "pageid": 15033
            },
            {
                "ns": 0,
                "title": "Tony Millier",
                "pageid": 11338
            },
            {
                "ns": 0,
                "title": "Tony Flynn",
                "pageid": 28924
            },
            {
                "ns": 0,
                "title": "Tony Snell",
                "pageid": 184012
            },
            {
                "ns": 0,
                "title": "Tony (Medicine Man)",
                "pageid": 193351
            },
            {
                "ns": 0,
                "title": "Tony Oxley",
                "pageid": 3243
            },
            {
                "ns": 0,
                "title": "Tony Lucken",
                "pageid": 68746
            },
            {
                "ns": 0,
                "title": "Tony Coburn",
                "pageid": 166236
            },
            {
                "ns": 0,
                "title": "Tony Bennett",
                "pageid": 217165
            },
            {
                "ns": 0,
                "title": "Tony Barton",
                "pageid": 92943
            },
            {
                "ns": 0,
                "title": "Tony Clare - list of appearances",
                "pageid": 292301
            },
            {
                "ns": 0,
                "title": "Tony Lambden",
                "pageid": 25392
            },
            {
                "ns": 0,
                "title": "Tony Cash",
                "pageid": 275947
            },
            {
                "ns": 0,
                "title": "Tony (Terror of the Autons)",
                "pageid": 45247
            },
            {
                "ns": 0,
                "title": "Tony Pearce",
                "pageid": 13325
            },
            {
                "ns": 0,
                "title": "Tony Auger",
                "pageid": 61175
            },
            {
                "ns": 0,
                "title": "Tony Warner",
                "pageid": 26034
            },
            {
                "ns": 0,
                "title": "Tony Redston",
                "pageid": 247643
            },
            {
                "ns": 0,
                "title": "Tony Wall",
                "pageid": 11661
            },
            {
                "ns": 0,
                "title": "Tony Deek",
                "pageid": 152100
            }
        ]
    }
}

Livia

Tags

{{subst:clarify test}}

Infobox

Alien Bodies (novel), Doctor Who and the Horror of Coal Hill (short story), Doctor Who: 50 Years (TV story), Doctor Whoah! (DWM 427 comic story), A Dog's Life (short story), The Empty Planet (TV story), The End of Time (TV story), Farewells (short story), The Five Doctors (TV story), The Five Doctors (novelisation), Ground Zero (comic story), Harry Sullivan's War (novel), How to Win Planets and Influence People (audio story), Interference - Book One (novel), Interference - Book Two (novel), Past Lives (audio story), Plants (video game), Return of the Krulius (comic story), SOTO/test, School Reunion (TV story), Sevrin (short story), The Stolen Earth (TV story), Suitors, Inc. (short story), The Threshold (short story), Vortex Butterflies (comic story), Where's the Doctor? (comic story)

Rani
Rani
the Rani
The Doctor
the Brig
Sarah Jane
Sarah


{{date link}} (dl)

Use of {{date link}} is very simple.

{{dl|8 November 2024}} (in this instance, the current date) will automatically link to that release date (8 November 2024). It will also set SMW for that page to recognise that release date.

If you do not wish to also call on SMW, please use {{dl/text}} or {{dl/link}}, rather than {{dl}} direct. {{dl/link}} will exclude notes; in all other versions, parentheticals will be retained, and given in small text beside the release date, often, of course, within an infobox. Such an infobox can be seen on the right.

For cover dates

Date ranges

With notes

  • {{dl|8 November 2024 (today)}} => 8 November 2024 (today) (SMW: 2024-11-08)
  • {{dl|19 December 1996 (VHS)}} => 19 December 1996 (VHS) (SMW: 1996-12-19)
  • {{dl|8 March 2010 (AudioGO)}} => 8 March 2010 (AudioGO) (SMW: 2010-03-08)
  • {{dl|11 - 14 March 1974 (n)}} => 11 - 14 March 1974 (n) (SMW: 1974-03-11 / end date: 1974-03-14)

To fix




SMW solution ({{dl/n}}: (done)

  • {{#ifeq:{{#explode:{{{1}}}||1}}|-|{{#explode:{{{1}}}||-1}}|{{#explode:{{#explode:{{{1}}}||1}}|-|0}}}}
    ->
  • {{#ifeq:{{#explode:{{{1}}}||1}}|-|{{#explode:{{{1}}}||-1}}|{{#if:{{#explode:{{#explode:{{{1}}}|-|0}}||1}}|{{#explode:{{#explode:{{{1}}}|-|0}}||1}}|{{#explode:{{{1}}}||-1}}}}}}

Link solution ({{dl/link}}: (done)

  • {{#ifeq:{{#explode:{{{1}}}||1}}|-||{{d|{{#explode:{{#explode:{{{1}}}||1}}|-|0}}|re}}}}}}
    ->
  • {{#ifeq:{{#explode:{{{1}}}||1}}|-||{{d|{{#explode:{{#explode:{{{1}}}|-|0}}||1}}|re}}}}}}

  1. September-9 December 2017 -> September December (SMW: December)
  2. September - 9 December 2017 -> September (SMW: 2017)
  3. September 2016-9 December 2017 -> September 2016 (SMW: 2016)
  4. September 2016 - 9 December 2017 -> September 2016 (SMW: 2016)
->
  1. September-9 December 2017 -> September (SMW: 2017)
  2. September - 9 December 2017 -> September (SMW: 2017)
  3. September 2016-9 December 2017 -> September 2016 (SMW: 2016)
  4. September 2016 - 9 December 2017 -> September 2016 (SMW: 2016)



SMW solution ({{dl/n}}: (done)

  • {{#iferror:{{#ifexpr:{{#explode:{{{1}}}|-|0}}>0}}|{{#ifeq:{{#explode:{{{1}}}||2}}|-|{{#explode:{{{1}}}||-1}}|{{#explode:{{#explode:{{{1}}}||2}}|-|0}}}}}}
    ->
  • {{#iferror:{{#ifexpr:{{#explode:{{{1}}}|-|0}}>0}}|{{#ifeq:{{#explode:{{{1}}}||2}}|-|{{#explode:{{{1}}}||-1}}|{{#if:{{#explode:{{#explode:{{{1}}}|-|0}}||2}}|{{#explode:{{#explode:{{{1}}}|-|0}}||2}}|{{#explode:{{{1}}}||-1}}}}}}}}

Link solution ({{dl/link}}: (done)

  • {{d|{{#explode:{{{1}}}||0}} {{#explode:{{#explode:{{{1}}}||1}}|-|0}}|re}} {{#ifeq:{{#explode:{{{1}}}||2}}|-||{{d|{{#explode:{{#explode:{{{1}}}||2}}|-|0}}|re}}}}
    ->
  • {{d|{{#explode:{{{1}}}||0}} {{#explode:{{#explode:{{{1}}}||1}}|-|0}}|re}} {{#ifeq:{{#explode:{{{1}}}||2}}|-||{{d|{{#explode:{{#explode:{{{1}}}|-|0}}||2}}|re}}}}

  1. 16 September-9 December 2017 -> 16 September (SMW: 2017)
  2. 16 September - 9 December 2017 -> 16 September (SMW: 2017)
  3. 16 September 2016-9 December 2017 -> 16 September 2016 (SMW: 2016)
  4. 16 September 2016 - 9 December 2017 -> 16 September 2016 (SMW: 2016)

{{dl-0}} (legacy)