Template:OscNumbers: Difference between revisions
Jump to navigation
Jump to search
another attempt for preventing the recent error |
dplvar can set two variables at a time |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<!-- 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%{{!}}{{)}}{{)}},,}} | <!-- Set up variables for offset calculation -->{{#ifexist:Category:Oscillators_with_period_{{{p|0}}}|{{#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%{{!}}{{)}}{{)}},,}}|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%]],,}} '''·''' }} | <!-- 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%]],,}} '''·''' }} | ||
<!-- 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%]],,}} '''·''' }} | <!-- 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%]],,}} '''·''' }} | ||
Revision as of 14:32, 18 July 2022
This template displays the next and previous oscillator period category links from the oscillator period category pages.