Template:Nominal list: Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{|
{|
{{#if:{{{2|}}}|{{!}}-
{{#if:{{{2|}}}|{{!}}-
{{!}}align=right {{!}} {{{1|1}}}.{{!}}{{!}} {{{2|}}}
{{!}}align=right {{!}} {{{1|{{#if:{{{zeroindex|}}}|0|1}}}.{{!}}{{!}} {{{2|}}}
|}}
|}}
{{#if:{{{4|}}}|{{!}}-
{{#if:{{{4|}}}|{{!}}-
{{!}}align=right {{!}} {{{3|2}}}.{{!}}{{!}} {{{4|}}}
{{!}}align=right {{!}} {{{3|{{#if:{{{zeroindex|}}}|1|2}}}.{{!}}{{!}} {{{4|}}}
|}}
|}}
{{#if:{{{6|}}}|{{!}}-
{{#if:{{{6|}}}|{{!}}-
{{!}}align=right {{!}} {{{5|3}}}.{{!}}{{!}} {{{6|}}}
{{!}}align=right {{!}} {{{5|{{#if:{{{zeroindex|}}}|2|3}}}.{{!}}{{!}} {{{6|}}}
|}}
|}}
{{#if:{{{8|}}}|{{!}}-
{{#if:{{{8|}}}|{{!}}-
{{!}}align=right {{!}} {{{7|4}}}.{{!}}{{!}} {{{8|}}}
{{!}}align=right {{!}} {{{7|{{#if:{{{zeroindex|}}}|3|4}}}.{{!}}{{!}} {{{8|}}}
|}}
|}}
{{#if:{{{10|}}}|{{!}}-
{{#if:{{{10|}}}|{{!}}-
{{!}}align=right {{!}} {{{9|5}}}.{{!}}{{!}} {{{10|}}}
{{!}}align=right {{!}} {{{9|{{#if:{{{zeroindex|}}}|4|5}}}.{{!}}{{!}} {{{10|}}}
|}}
|}}
{{#if:{{{12|}}}|{{!}}-
{{#if:{{{12|}}}|{{!}}-
{{!}}align=right {{!}} {{{11|6}}}.{{!}}{{!}} {{{12|}}}
{{!}}align=right {{!}} {{{11|{{#if:{{{zeroindex|}}}|5|6}}}.{{!}}{{!}} {{{12|}}}
|}}
|}}
{{#if:{{{14|}}}|{{!}}-
{{#if:{{{14|}}}|{{!}}-
{{!}}align=right {{!}} {{{13|7}}}.{{!}}{{!}} {{{14|}}}
{{!}}align=right {{!}} {{{13|{{#if:{{{zeroindex|}}}|6|7}}}.{{!}}{{!}} {{{14|}}}
|}}
|}}
{{#if:{{{16|}}}|{{!}}-
{{#if:{{{16|}}}|{{!}}-
{{!}}align=right {{!}} {{{15|8}}}.{{!}}{{!}} {{{16|}}}
{{!}}align=right {{!}} {{{15|{{#if:{{{zeroindex|}}}|7|8}}}.{{!}}{{!}} {{{16|}}}
|}}
|}}
{{#if:{{{18|}}}|{{!}}-
{{#if:{{{18|}}}|{{!}}-
{{!}}align=right {{!}} {{{17|9}}}.{{!}}{{!}} {{{18|}}}
{{!}}align=right {{!}} {{{17|{{#if:{{{zeroindex|}}}|8|9}}}.{{!}}{{!}} {{{18|}}}
|}}
|}}
{{#if:{{{20|}}}|{{!}}-
{{#if:{{{20|}}}|{{!}}-
{{!}}align=right {{!}} {{{19|10}}}.{{!}}{{!}} {{{20|}}}
{{!}}align=right {{!}} {{{19|{{#if:{{{zeroindex|}}}|9|10}}}.{{!}}{{!}} {{{20|}}}
|}}
|}}
{{#if:{{{22|}}}|{{!}}-
{{#if:{{{22|}}}|{{!}}-
{{!}}align=right {{!}} {{{21|11}}}.{{!}}{{!}} {{{22|}}}
{{!}}align=right {{!}} {{{21|{{#if:{{{zeroindex|}}}|10|11}}}.{{!}}{{!}} {{{22|}}}
|}}
|}}
{{#if:{{{24|}}}|{{!}}-
{{#if:{{{24|}}}|{{!}}-
{{!}}align=right {{!}} {{{23|12}}}.{{!}}{{!}} {{{24|}}}
{{!}}align=right {{!}} {{{23|{{#if:{{{zeroindex|}}}|11|12}}}.{{!}}{{!}} {{{24|}}}
|}}
|}}
{{#if:{{{26|}}}|{{!}}-
{{#if:{{{26|}}}|{{!}}-
{{!}}align=right {{!}} {{{25|13}}}.{{!}}{{!}} {{{26|}}}
{{!}}align=right {{!}} {{{25|{{#if:{{{zeroindex|}}}|12|13}}}.{{!}}{{!}} {{{26|}}}
|}}
|}}
{{#if:{{{28|}}}|{{!}}-
{{#if:{{{28|}}}|{{!}}-
{{!}}align=right {{!}} {{{27|14}}}.{{!}}{{!}} {{{28|}}}
{{!}}align=right {{!}} {{{27|{{#if:{{{zeroindex|}}}|13|14}}}.{{!}}{{!}} {{{28|}}}
|}}
|}}
{{#if:{{{30|}}}|{{!}}-
{{#if:{{{30|}}}|{{!}}-
{{!}}align=right {{!}} {{{29|15}}}.{{!}}{{!}} {{{30|}}}
{{!}}align=right {{!}} {{{29|{{#if:{{{zeroindex|}}}|14|15}}}.{{!}}{{!}} {{{30|}}}
|}}
|}}
{{#if:{{{32|}}}|{{!}}-
{{#if:{{{32|}}}|{{!}}-
{{!}}align=right {{!}} {{{31|16}}}.{{!}}{{!}} {{{32|}}}
{{!}}align=right {{!}} {{{31|{{#if:{{{zeroindex|}}}|15|16}}}.{{!}}{{!}} {{{32|}}}
|}}
|}}
{{#if:{{{34|}}}|{{!}}-
{{#if:{{{34|}}}|{{!}}-
{{!}}align=right {{!}} {{{33|17}}}.{{!}}{{!}} {{{34|}}}
{{!}}align=right {{!}} {{{33|{{#if:{{{zeroindex|}}}|16|17}}}.{{!}}{{!}} {{{34|}}}
|}}
|}}
{{#if:{{{36|}}}|{{!}}-
{{#if:{{{36|}}}|{{!}}-
{{!}}align=right {{!}} {{{35|18}}}.{{!}}{{!}} {{{36|}}}
{{!}}align=right {{!}} {{{35|{{#if:{{{zeroindex|}}}|17|18}}}.{{!}}{{!}} {{{36|}}}
|}}
|}}
{{#if:{{{38|}}}|{{!}}-
{{#if:{{{38|}}}|{{!}}-
{{!}}align=right {{!}} {{{37|19}}}.{{!}}{{!}} {{{38|}}}
{{!}}align=right {{!}} {{{37|{{#if:{{{zeroindex|}}}|18|19}}}.{{!}}{{!}} {{{38|}}}
|}}
|}}
{{#if:{{{40|}}}|{{!}}-
{{#if:{{{40|}}}|{{!}}-
{{!}}align=right {{!}} {{{39|20}}}.{{!}}{{!}} {{{40|}}}
{{!}}align=right {{!}} {{{39|{{#if:{{{zeroindex|}}}|19|20}}}.{{!}}{{!}} {{{40|}}}
|}}
|}}
{{#if:{{{42|}}}|{{!}}-
{{#if:{{{42|}}}|{{!}}-
{{!}}align=right {{!}} {{{41|21}}}.{{!}}{{!}} {{{42|}}}
{{!}}align=right {{!}} {{{41|{{#if:{{{zeroindex|}}}|20|21}}}.{{!}}{{!}} {{{42|}}}
|}}
|}}
{{#if:{{{44|}}}|{{!}}-
{{#if:{{{44|}}}|{{!}}-
{{!}}align=right {{!}} {{{43|22}}}.{{!}}{{!}} {{{44|}}}
{{!}}align=right {{!}} {{{43|{{#if:{{{zeroindex|}}}|21|22}}}.{{!}}{{!}} {{{44|}}}
|}}
|}}
{{#if:{{{46|}}}|{{!}}-
{{#if:{{{46|}}}|{{!}}-
{{!}}align=right {{!}} {{{45|23}}}.{{!}}{{!}} {{{46|}}}
{{!}}align=right {{!}} {{{45|{{#if:{{{zeroindex|}}}|22|23}}}.{{!}}{{!}} {{{46|}}}
|}}
|}}
{{#if:{{{48|}}}|{{!}}-
{{#if:{{{48|}}}|{{!}}-
{{!}}align=right {{!}} {{{47|24}}}.{{!}}{{!}} {{{48|}}}
{{!}}align=right {{!}} {{{47|{{#if:{{{zeroindex|}}}|23|24}}}.{{!}}{{!}} {{{48|}}}
|}}
|}}
{{#if:{{{50|}}}|{{!}}-
{{#if:{{{50|}}}|{{!}}-
{{!}}align=right {{!}} {{{49|25}}}.{{!}}{{!}} {{{50|}}}
{{!}}align=right {{!}} {{{49|{{#if:{{{zeroindex|}}}|24|25}}}.{{!}}{{!}} {{{50|}}}
|}}
|}}
|}<noinclude>
|}<noinclude>

Revision as of 08:07, 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+'|}';