Expression error in Oscillators with period _ categories

Has something gone haywire? Let us know about it!
Post Reply
creeperman7002
Posts: 12
Joined: December 4th, 2018, 11:52 pm

Expression error in Oscillators with period _ categories

Post by creeperman7002 » November 27th, 2019, 4:50 pm

Whenever I view a category for oscillators with a given period (on LifeWiki), this error message pops up:

Expression error: Unexpected < operator.

Ian07
Posts: 386
Joined: September 22nd, 2018, 8:48 am

Re: Expression error in Oscillators with period _ categories

Post by Ian07 » November 27th, 2019, 6:42 pm

This has been an issue ever since we updated to the latest MediaWiki version last month: viewtopic.php?p=83792#p83792

No one is exactly sure why it happened, so it looks like this is going to remain an issue until someone gets around to trying to find their way through this mess of code:

Code: Select all

<includeonly>{{#ifexpr:{{{p|0}}}>3|{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|order=descending|offset={{#expr:{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|order=descending|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{p|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}+1}}|count=1|format=,[[:Category:Oscillators_with_period_%TITLE%|Period %TITLE%]],,}}&nbsp;'''·'''&nbsp;}}{{#ifexpr:{{{p|0}}}>2|{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|order=descending|offset={{#expr:{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|order=descending|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{p|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}-0}}|count=1|format=,[[:Category:Oscillators_with_period_%TITLE%|Period %TITLE%]],,}}&nbsp;'''·'''&nbsp;}}{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|order=descending|offset={{#expr:{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|order=descending|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{p|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}-1}}|count=1|format=,[[:Category:Oscillators_with_period_%TITLE%|Period %TITLE%]],,}}{{#ifexpr:{{#expr:{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|order=descending|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{p|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}-1}}>0|
{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|offset={{#expr:{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{p|5}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}-0}}|count=1|format=&nbsp;'''·'''&nbsp;,[[:Category:Oscillators_with_period_%TITLE%|Period %TITLE%]],,}}}}{{#ifexpr:{{#expr:{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|order=descending|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{p|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}-1}}>1|{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|offset={{#expr:{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{p|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}+1}}|count=1|format=&nbsp;'''·'''&nbsp;,[[:Category:Oscillators_with_period_%TITLE%|Period %TITLE%]],,}}}}</includeonly><noinclude>This template displays the next and previous oscillator period category links from the oscillator period category pages.</noinclude>

User avatar
Nathaniel
Site Admin
Posts: 513
Joined: December 10th, 2008, 3:48 pm
Location: New Brunswick, Canada
Contact:

Re: Expression error in Oscillators with period _ categories

Post by Nathaniel » November 28th, 2019, 9:45 am

Ah yeah, the DynamicPageList functionality of MediaWiki changed considerably with recent versions, and I'm not sure how to get it to do what we want there anymore. Unfortunately I think the cleanest solution at this point is to empty out that template so that it doesn't display anything at all (it used to display links to nearby oscillator period categories). If someone figures out another way to get those nearby category links, feel free to revert/fix that template.

Post Reply