Difference between revisions of "Template:SpaceshipModNumbers"

From LifeWiki
Jump to navigation Jump to search
(New helper template)
 
m
Line 1: Line 1:
<includeonly>{{#ifexpr:{{{m|0}}}>3|{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|offset={{#expr:{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{m|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}+1}}|count=1|format=,[[:Category:Spaceships_with_mod_%TITLE%|mod %TITLE%]],,}}&nbsp;'''·'''&nbsp;}}{{#ifexpr:{{{m|0}}}>2|{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|offset={{#expr:{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{m|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}-0}}|count=1|format=,[[:Category:Spaceships_with_mod_%TITLE%|mod %TITLE%]],,}}&nbsp;'''·'''&nbsp;}}{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|offset={{#expr:{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{m|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}-1}}|count=1|format=,[[:Category:Spaceships_with_mod_%TITLE%|mod %TITLE%]],,}}{{#ifexpr:{{#expr:{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{m|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}-1}}>0|
+
<includeonly>{{#ifexpr:{{{m|0}}}>4|{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|offset={{#expr:{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{m|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}+1}}|count=1|format=,[[:Category:Spaceships_with_mod_%TITLE%|mod %TITLE%]],,}}&nbsp;'''·'''&nbsp;}}{{#ifexpr:{{{m|0}}}>2|{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|offset={{#expr:{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{m|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}-0}}|count=1|format=,[[:Category:Spaceships_with_mod_%TITLE%|mod %TITLE%]],,}}&nbsp;'''·'''&nbsp;}}{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|offset={{#expr:{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{m|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}-1}}|count=1|format=,[[:Category:Spaceships_with_mod_%TITLE%|mod %TITLE%]],,}}{{#ifexpr:{{#expr:{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{m|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}-1}}>0|
 
{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|offset={{#expr:{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{m|5}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}-0}}|count=1|format=&nbsp;'''·'''&nbsp;,[[:Category:Spaceships_with_mod_%TITLE%|mod %TITLE%]],,}}}}{{#ifexpr:{{#expr:{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{m|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}-1}}>1|{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|offset={{#expr:{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{m|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}+1}}|count=1|format=&nbsp;'''·'''&nbsp;,[[:Category:Spaceships_with_mod_%TITLE%|mod %TITLE%]],,}}}}</includeonly><noinclude>This template displays the next and previous spaceship mod category links from the spaceship mod category pages.</noinclude>
 
{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|offset={{#expr:{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{m|5}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}-0}}|count=1|format=&nbsp;'''·'''&nbsp;,[[:Category:Spaceships_with_mod_%TITLE%|mod %TITLE%]],,}}}}{{#ifexpr:{{#expr:{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|order=descending|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{m|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}-1}}>1|{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|offset={{#expr:{{#dpl:category=Spaceships_with_specific_mod|replaceintitle=/Spaceships.with.mod./,|ordermethod=sortkey|skipthispage=no|resultsheader={|format={#ifeq,:%TITLE%{{!}}{{{m|0}}}{{!}}%NR%{{!}}},}{{#ifeq,:{{!}}a}}}}+1}}|count=1|format=&nbsp;'''·'''&nbsp;,[[:Category:Spaceships_with_mod_%TITLE%|mod %TITLE%]],,}}}}</includeonly><noinclude>This template displays the next and previous spaceship mod category links from the spaceship mod category pages.</noinclude>

Revision as of 11:24, 27 July 2016

This template displays the next and previous spaceship mod category links from the spaceship mod category pages.