Template:Nominal list: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 93: | Line 93: | ||
var base = i+1; | var base = i+1; | ||
output=output+'{{#if:{{{'+(base*2)+'|}}}|{{!}}-\r\n'; | output=output+'{{#if:{{{'+(base*2)+'|}}}|{{!}}-\r\n'; | ||
output=output+'{{!}}align=right {{!}} {{{'+((base*2)-1)+'|{{#if:{{{zeroindex|}}}|'+(base-1)+'|'+base+'}}}.{{!}}{{!}} {{{'+(base*2)+'|}}}\r\n'; | output=output+'{{!}}align=right {{!}} {{{'+((base*2)-1)+'|{{#if:{{{zeroindex|}}}|'+(base-1)+'|'+base+'}}}}}.{{!}}{{!}} {{{'+(base*2)+'|}}}\r\n'; | ||
output=output+'|}}\r\n'; | output=output+'|}}\r\n'; | ||
} | } |
Revision as of 08:08, 5 August 2020
{{#if:||-
{Template:1
{{#if:||- |
{Template:3
{{#if:||- |
{Template:5
{{#if:||- |
{Template:7
{{#if:||- |
{Template:9
{{#if:||- |
{Template:11
{{#if:||- |
{Template:13
{{#if:||- |
{Template:15
{{#if:||- |
{Template:17
{{#if:||- |
{Template:19
{{#if:||- |
{Template:21
{{#if:||- |
{Template:23
{{#if:||- |
{Template:25
{{#if:||- |
{Template:27
{{#if:||- |
{Template:29
{{#if:||- |
{Template:31
{{#if:||- |
{Template:33
{{#if:||- |
{Template:35
{{#if:||- |
{Template:37
{{#if:||- |
{Template:39
{{#if:||- |
{Template:41
{{#if:||- |
{Template:43
{{#if:||- |
{Template:45
{{#if:||- |
{Template:47
{{#if:||- |
{Template:49 |
Usage:
{{ 1|Rotterdam| //1. Rotterdam 2|The Hague| //2. The Hague 2,5|Amsterdam| //2,5. Amsterdam |Zutphen| //4. Zutphen }}
Creation script:
var itterations=25; var output = '{|\r\n'; for (var i=0;i<itterations;i++) { var base = i+1; output=output+'{{#if:{{{'+(base*2)+'|}}}|{{!}}-\r\n'; output=output+'{{!}}align=right {{!}} {{{'+((base*2)-1)+'|{{#if:{{{zeroindex|}}}|'+(base-1)+'|'+base+'}}}}}.{{!}}{{!}} {{{'+(base*2)+'|}}}\r\n'; output=output+'|}}\r\n'; } output=output+'|}';