Whenever I view a category for oscillators with a given period (on LifeWiki), this error message pops up:
Expression error: Unexpected < operator.
Expression error in Oscillators with period _ categories
-
- Posts: 12
- Joined: December 4th, 2018, 11:52 pm
Re: Expression error in Oscillators with period _ categories
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:
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%]],,}} '''·''' }}{{#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%]],,}} '''·''' }}{{#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= '''·''' ,[[: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= '''·''' ,[[: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>
Wiki: http://www.conwaylife.com/wiki/User:Ian07
Discord: Ian07#6028
Discord: Ian07#6028
- 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
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.