Template:OscNumbers: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Empty out since DPL is not working.
Confocal (talk | contribs)
remove redundant purge template, should be covered by {{CategoryTools}}
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>This template SHOULD display the next and previous oscillator period category links from the oscillator period category pages, but it is currently empty since new versions of DynamicPageList changed their syntax, breaking this template. Ideally, this template will be fixed sometime in the future.</noinclude>
<includeonly>
<!-- Check first if this page is fetched by DynamicPageList-->{{#ifeq:{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|format=,{{(}}{{(}}#ifeq:%TITLE%{{!}}{{{p|0}}}{{!}}yes{{!}}{{)}}{{)}},,}}|yes|
<!-- Set up variables for offset calculation -->{{#dplvar:set|index1|{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|order=descending|format=,{{(}}{{(}}#ifeq:%TITLE%{{!}}{{{p|0}}}{{!}}%NR%{{!}}{{)}}{{)}},,}}}}{{#dplvar:set|index2|{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|format=,{{(}}{{(}}#ifeq:%TITLE%{{!}}{{{p|0}}}{{!}}%NR%{{!}}{{)}}{{)}},,}}}}
<!-- 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;}}
<!-- 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%]],,}}
<!-- 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%]],,}}}}
<!-- 5th item -->{{#ifexpr:{{#expr:{{#dplvar:index1}}-1}}>1|{{#dpl:category=Oscillators_with_specific_period|replaceintitle=/Oscillators.with.period./,|ordermethod=sortkey|skipthispage=no|offset={{#expr:{{#dplvar:index2}}+1}}|count=1|format=&nbsp;'''·'''&nbsp;,[[:Category:Oscillators_with_period_%TITLE%|Period %TITLE%]],,}}}}|<!-- Return a warning in case the check failed -->
<span style="color:rgb(255,0,0)">'''Period&nbsp;not&nbsp;detected;&nbsp;please&nbsp;purge&nbsp;relevant&nbsp;pages.'''</span>}}
<!-- Purge category list in case there are additions -->
</includeonly>
<noinclude>This template displays the next and previous oscillator period category links from the oscillator period category pages.[[Category:Category navigation templates]]</noinclude>

Latest revision as of 03:22, 25 March 2023

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