User:Davidgothberg/Range and User:Davidgothberg/Range/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
Plastikspork (talk | contribs) Now in userspace |
Plastikspork (talk | contribs) m Plastikspork moved page Template:User:Davidgothberg/Range/sandbox to User:Davidgothberg/Range/sandbox without leaving a redirect: Fix move |
||
Line 1: | Line 1: | ||
<!-- 1=year1, 2=year2, 3=itemyear, 4=item, 5=separator, 6=nextitemyear |
<!-- 1=year1, 2=year2, 3=itemyear, 4=item, 5=separator, 6=nextitemyear |
||
-->{{#switch: |
-->{{#switch: |
||
{{#if:{{{1|}}} |
|||
| {{#if:{{{2|}}} |
|||
| <!-- year1 and year2 given --> |
|||
{{#ifexpr: {{{1|}}} <= {{{3|}}} and {{{3|}}} <= {{{2|}}} |
|||
| <!-- Within range --> |
|||
{{#if:{{{5|}}} |
|||
| <!-- Separator given --> |
|||
{{#if:{{{6|}}} |
|||
| {{#ifexpr: {{{1|}}} <= {{{6|}}} and {{{6|}}} <= {{{2|}}} |
|||
| show_sep <!-- Next item will show --> |
|||
| show_nosep <!-- Next item will not show --> |
|||
}} |
|||
| <!-- No nextitemyear given --> |
|||
{{#ifexpr: {{{2|}}} = {{{3|}}} |
|||
| show_nosep <!-- Last year in range --> |
|||
| show_sep |
|||
}} |
|||
}} |
|||
| show_nosep <!-- No separator given. --> |
|||
}} |
|||
| hide <!-- Not in range --> |
|||
}} |
|||
| hide <!-- year1 given but not year2, is an error so hide all. --> |
|||
}} |
|||
| <!-- year1 not given, default to show. --> |
|||
{{#if:{{{5|}}} |
|||
| show_sep <!-- Separator given --> |
|||
| show_nosep |
|||
}} |
|||
}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{documentation}} |
|||
⚫ | |||
⚫ | |||
{{Template sandbox notice}} |
|||
<!-- {{Documentation}} --> |
|||
<!-- Add categories and interwikis to the /doc subpage, not here! --> |
<!-- Add categories and interwikis to the /doc subpage, not here! --> |
||
</noinclude> |
</noinclude> |