Template:OscNumbers: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
another attempt for fixing the new error
another attempt for preventing the recent error
Line 3: Line 3:
<!-- 1st item -->{{#ifexpr:{{{p|0}}}>3|{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|order=descending|offset={{#expr:{{#dplvar:index1}}+1}}|count=1|format=,[[:Category:Oscillators_with_period_%TITLE%|Period %TITLE%]],,}}&nbsp;'''·'''&nbsp;}}
<!-- 1st item -->{{#ifexpr:{{{p|0}}}>3|{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|order=descending|offset={{#expr:{{#dplvar:index1}}+1}}|count=1|format=,[[:Category:Oscillators_with_period_%TITLE%|Period %TITLE%]],,}}&nbsp;'''·'''&nbsp;}}
<!-- 2nd item -->{{#ifexpr:{{{p|0}}}>2|{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|order=descending|offset={{#expr:{{#dplvar:index1}}-0}}|count=1|format=,[[:Category:Oscillators_with_period_%TITLE%|Period %TITLE%]],,}}&nbsp;'''·'''&nbsp;}}
<!-- 2nd item -->{{#ifexpr:{{{p|0}}}>2|{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|order=descending|offset={{#expr:{{#dplvar:index1}}-0}}|count=1|format=,[[:Category:Oscillators_with_period_%TITLE%|Period %TITLE%]],,}}&nbsp;'''·'''&nbsp;}}
<!-- 3rd item -->{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|order=descending|offset={{#expr:{{#dplvar:index1}}-1}}|count=1|format=,[[:Category:Oscillators_with_period_%TITLE%|Period %TITLE%]],,}}
<!-- 3rd item, sometimes displaying a warning about outdated DynamicPageList results -->{{#ifexist:Category:Oscillators_with_period_{{{p|0}}}|{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|order=descending|offset={{#expr:{{#dplvar:index1}}-1}}|count=1|format=,[[:Category:Oscillators_with_period_%TITLE%|Period %TITLE%]],,}}|<span style="color:rgb(255,0,0)">'''Period&nbsp;not&nbsp;detected;<br>please&nbsp;purge&nbsp;relevant&nbsp;pages.'''</span>}}
<!-- 4th item -->{{#ifexpr:{{#expr:{{#dplvar:index1}}-1}}>0|
<!-- 4th item -->{{#ifexpr:{{#expr:{{#dplvar:index1}}-1}}>0|
{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|offset={{#expr:{{#dplvar:index2}}-0}}|count=1|format=&nbsp;'''·'''&nbsp;,[[:Category:Oscillators_with_period_%TITLE%|Period %TITLE%]],,}}}}
{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|offset={{#expr:{{#dplvar:index2}}-0}}|count=1|format=&nbsp;'''·'''&nbsp;,[[:Category:Oscillators_with_period_%TITLE%|Period %TITLE%]],,}}}}

Revision as of 14:23, 18 July 2022

This template displays the next and previous oscillator period category links from the oscillator period category pages.