Difference between revisions of "Template:Show item new"
From Venlo Samenwerkingswijzer
(Created page with "<noinclude> This is the template "Show item new". <pre> {{Show item new |Current item= |Level= |Action= }} </pre> Bewerk de pagina om de sjabloontekst te bekijken. </noinclude...") |
|||
Line 10: | Line 10: | ||
Bewerk de pagina om de sjabloontekst te bekijken. | Bewerk de pagina om de sjabloontekst te bekijken. | ||
</noinclude><includeonly>{{#vardefine: Superitem | {{#show: {{{Current item|}}} |?Superitem|link=none}} }}{{#vardefine: Current ordernumber | {{#ask: [[Item ordened in:: {{#var: Superitem}} ]] [[Item::{{{Current item|}}} ]]|mainlabel=-|?Ordernumber=|limit=1|searchlabel=}} }}{{#switch: {{{Action|}}} | </noinclude><includeonly>{{#vardefine: Superitem | {{#show: {{{Current item|}}} |?Superitem|link=none}} }}{{#vardefine: Current ordernumber | {{#ask: [[Item ordened in:: {{#var: Superitem}} ]] [[Item::{{{Current item|}}} ]]|mainlabel=-|?Ordernumber=|limit=1|searchlabel=}} }}{{#switch: {{{Action|}}} | ||
− | |Previous={{#vardefine: New order number | {{#expr: {{#var: Current ordernumber}} - 1}} }}{{#vardefine: Previous page | {{#ask: [[Item ordened in:: {{#var: Superitem}} ]] [[Ordernumber::{{#var: New order number}} ]]|mainlabel=-|?Item=|limit=1|searchlabel=|link=none}} }}{{#if: {{#var: Previous page}} | [[{{#var: Previous page}} | | + | |Previous={{#vardefine: New order number | {{#expr: {{#var: Current ordernumber}} - 1}} }}{{#vardefine: Previous page | {{#ask: [[Item ordened in:: {{#var: Superitem}} ]] [[Ordernumber::{{#var: New order number}} ]]|mainlabel=-|?Item=|limit=1|searchlabel=|link=none}} }}{{#if: {{#var: Previous page}} | [[{{#var: Previous page}} |{{Fa|chevron-left fa-fw}} Vorig ]] }} |
− | |Next={{#vardefine: New order number | {{#expr: {{#var: Current ordernumber}} + 1}} }}{{#vardefine: Next page | {{#ask: [[Item ordened in:: {{#var: Superitem}} ]] [[Ordernumber::{{#var: New order number}} ]]|mainlabel=-|?Item=|limit=1|searchlabel=|link=none}} }}{{#if: {{#var: Next page}} | [[{{#var: Next page}} | | + | |Next={{#vardefine: New order number | {{#expr: {{#var: Current ordernumber}} + 1}} }}{{#vardefine: Next page | {{#ask: [[Item ordened in:: {{#var: Superitem}} ]] [[Ordernumber::{{#var: New order number}} ]]|mainlabel=-|?Item=|limit=1|searchlabel=|link=none}} }}{{#if: {{#var: Next page}} | [[{{#var: Next page}} | Volgend {{Fa|chevron-right fa-fw}} ]] }} |
|Next chapter={{#vardefine: New superitem order number | {{#expr: {{#ask: [[Item::{{#var: Superitem}} ]]|mainlabel=-|?Ordernumber=|limit=1|searchlabel=}} +1}} }}{{#vardefine: Next chapter | {{#ask: [[Item ordened in::{{#show:{{#var: Superitem}}|?Superitem|link=none}} ]] [[Ordernumber::{{#var: New superitem order number}} ]]|mainlabel=-|?Item=|limit=1|searchlabel=|link=none}} }}{{#if: {{#var: Next chapter}} | {{#vardefine: First paragraph in next chapter | {{#ask: [[Item ordened in:: {{#var: Next chapter}} ]] [[Ordernumber::1]]|mainlabel=-|?Item=|limit=1|searchlabel=|link=none}} }} }}{{#if: {{#var: First paragraph in next chapter}} | [[{{#var: First paragraph in next chapter}} | Continue to {{#titleparts:{{#var:Next chapter}}|1|2}}]] | {{#if: {{#var: Next chapter}} | [[{{#var: Next chapter}} | Continue to {{#titleparts:{{#var:Next chapter}}|1|2}}]] }} }} | |Next chapter={{#vardefine: New superitem order number | {{#expr: {{#ask: [[Item::{{#var: Superitem}} ]]|mainlabel=-|?Ordernumber=|limit=1|searchlabel=}} +1}} }}{{#vardefine: Next chapter | {{#ask: [[Item ordened in::{{#show:{{#var: Superitem}}|?Superitem|link=none}} ]] [[Ordernumber::{{#var: New superitem order number}} ]]|mainlabel=-|?Item=|limit=1|searchlabel=|link=none}} }}{{#if: {{#var: Next chapter}} | {{#vardefine: First paragraph in next chapter | {{#ask: [[Item ordened in:: {{#var: Next chapter}} ]] [[Ordernumber::1]]|mainlabel=-|?Item=|limit=1|searchlabel=|link=none}} }} }}{{#if: {{#var: First paragraph in next chapter}} | [[{{#var: First paragraph in next chapter}} | Continue to {{#titleparts:{{#var:Next chapter}}|1|2}}]] | {{#if: {{#var: Next chapter}} | [[{{#var: Next chapter}} | Continue to {{#titleparts:{{#var:Next chapter}}|1|2}}]] }} }} | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 14:43, 2 November 2016
This is the template "Show item new".
{{Show item new |Current item= |Level= |Action= }}
Bewerk de pagina om de sjabloontekst te bekijken.