Template:Nominal list: Difference between revisions

From Tygron 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|1}}}.{{!}}{{!}} {{{2|}}}
|}}
|}}
{{if#:{{{4|}}}|{{!}}-
{{#if:{{{4|}}}|{{!}}-
{{!}}align=right {{!}} {{{3|2}}}.{{!}}{{!}} {{{4|}}}
{{!}}align=right {{!}} {{{3|2}}}.{{!}}{{!}} {{{4|}}}
|}}
|}}
{{if#:{{{6|}}}|{{!}}-
{{#if:{{{6|}}}|{{!}}-
{{!}}align=right {{!}} {{{5|3}}}.{{!}}{{!}} {{{6|}}}
{{!}}align=right {{!}} {{{5|3}}}.{{!}}{{!}} {{{6|}}}
|}}
|}}
{{if#:{{{8|}}}|{{!}}-
{{#if:{{{8|}}}|{{!}}-
{{!}}align=right {{!}} {{{7|4}}}.{{!}}{{!}} {{{8|}}}
{{!}}align=right {{!}} {{{7|4}}}.{{!}}{{!}} {{{8|}}}
|}}
|}}
{{if#:{{{10|}}}|{{!}}-
{{#if:{{{10|}}}|{{!}}-
{{!}}align=right {{!}} {{{9|5}}}.{{!}}{{!}} {{{10|}}}
{{!}}align=right {{!}} {{{9|5}}}.{{!}}{{!}} {{{10|}}}
|}}
|}}
{{if#:{{{12|}}}|{{!}}-
{{#if:{{{12|}}}|{{!}}-
{{!}}align=right {{!}} {{{11|6}}}.{{!}}{{!}} {{{12|}}}
{{!}}align=right {{!}} {{{11|6}}}.{{!}}{{!}} {{{12|}}}
|}}
|}}
{{if#:{{{14|}}}|{{!}}-
{{#if:{{{14|}}}|{{!}}-
{{!}}align=right {{!}} {{{13|7}}}.{{!}}{{!}} {{{14|}}}
{{!}}align=right {{!}} {{{13|7}}}.{{!}}{{!}} {{{14|}}}
|}}
|}}
{{if#:{{{16|}}}|{{!}}-
{{#if:{{{16|}}}|{{!}}-
{{!}}align=right {{!}} {{{15|8}}}.{{!}}{{!}} {{{16|}}}
{{!}}align=right {{!}} {{{15|8}}}.{{!}}{{!}} {{{16|}}}
|}}
|}}
{{if#:{{{18|}}}|{{!}}-
{{#if:{{{18|}}}|{{!}}-
{{!}}align=right {{!}} {{{17|9}}}.{{!}}{{!}} {{{18|}}}
{{!}}align=right {{!}} {{{17|9}}}.{{!}}{{!}} {{{18|}}}
|}}
|}}
{{if#:{{{20|}}}|{{!}}-
{{#if:{{{20|}}}|{{!}}-
{{!}}align=right {{!}} {{{19|10}}}.{{!}}{{!}} {{{20|}}}
{{!}}align=right {{!}} {{{19|10}}}.{{!}}{{!}} {{{20|}}}
|}}
|}}
{{if#:{{{22|}}}|{{!}}-
{{#if:{{{22|}}}|{{!}}-
{{!}}align=right {{!}} {{{21|11}}}.{{!}}{{!}} {{{22|}}}
{{!}}align=right {{!}} {{{21|11}}}.{{!}}{{!}} {{{22|}}}
|}}
|}}
{{if#:{{{24|}}}|{{!}}-
{{#if:{{{24|}}}|{{!}}-
{{!}}align=right {{!}} {{{23|12}}}.{{!}}{{!}} {{{24|}}}
{{!}}align=right {{!}} {{{23|12}}}.{{!}}{{!}} {{{24|}}}
|}}
|}}
{{if#:{{{26|}}}|{{!}}-
{{#if:{{{26|}}}|{{!}}-
{{!}}align=right {{!}} {{{25|13}}}.{{!}}{{!}} {{{26|}}}
{{!}}align=right {{!}} {{{25|13}}}.{{!}}{{!}} {{{26|}}}
|}}
|}}
{{if#:{{{28|}}}|{{!}}-
{{#if:{{{28|}}}|{{!}}-
{{!}}align=right {{!}} {{{27|14}}}.{{!}}{{!}} {{{28|}}}
{{!}}align=right {{!}} {{{27|14}}}.{{!}}{{!}} {{{28|}}}
|}}
|}}
{{if#:{{{30|}}}|{{!}}-
{{#if:{{{30|}}}|{{!}}-
{{!}}align=right {{!}} {{{29|15}}}.{{!}}{{!}} {{{30|}}}
{{!}}align=right {{!}} {{{29|15}}}.{{!}}{{!}} {{{30|}}}
|}}
|}}
{{if#:{{{32|}}}|{{!}}-
{{#if:{{{32|}}}|{{!}}-
{{!}}align=right {{!}} {{{31|16}}}.{{!}}{{!}} {{{32|}}}
{{!}}align=right {{!}} {{{31|16}}}.{{!}}{{!}} {{{32|}}}
|}}
|}}
{{if#:{{{34|}}}|{{!}}-
{{#if:{{{34|}}}|{{!}}-
{{!}}align=right {{!}} {{{33|17}}}.{{!}}{{!}} {{{34|}}}
{{!}}align=right {{!}} {{{33|17}}}.{{!}}{{!}} {{{34|}}}
|}}
|}}
{{if#:{{{36|}}}|{{!}}-
{{#if:{{{36|}}}|{{!}}-
{{!}}align=right {{!}} {{{35|18}}}.{{!}}{{!}} {{{36|}}}
{{!}}align=right {{!}} {{{35|18}}}.{{!}}{{!}} {{{36|}}}
|}}
|}}
{{if#:{{{38|}}}|{{!}}-
{{#if:{{{38|}}}|{{!}}-
{{!}}align=right {{!}} {{{37|19}}}.{{!}}{{!}} {{{38|}}}
{{!}}align=right {{!}} {{{37|19}}}.{{!}}{{!}} {{{38|}}}
|}}
|}}
{{if#:{{{40|}}}|{{!}}-
{{#if:{{{40|}}}|{{!}}-
{{!}}align=right {{!}} {{{39|20}}}.{{!}}{{!}} {{{40|}}}
{{!}}align=right {{!}} {{{39|20}}}.{{!}}{{!}} {{{40|}}}
|}}
|}}
{{if#:{{{42|}}}|{{!}}-
{{#if:{{{42|}}}|{{!}}-
{{!}}align=right {{!}} {{{41|21}}}.{{!}}{{!}} {{{42|}}}
{{!}}align=right {{!}} {{{41|21}}}.{{!}}{{!}} {{{42|}}}
|}}
|}}
{{if#:{{{44|}}}|{{!}}-
{{#if:{{{44|}}}|{{!}}-
{{!}}align=right {{!}} {{{43|22}}}.{{!}}{{!}} {{{44|}}}
{{!}}align=right {{!}} {{{43|22}}}.{{!}}{{!}} {{{44|}}}
|}}
|}}
{{if#:{{{46|}}}|{{!}}-
{{#if:{{{46|}}}|{{!}}-
{{!}}align=right {{!}} {{{45|23}}}.{{!}}{{!}} {{{46|}}}
{{!}}align=right {{!}} {{{45|23}}}.{{!}}{{!}} {{{46|}}}
|}}
|}}
{{if#:{{{48|}}}|{{!}}-
{{#if:{{{48|}}}|{{!}}-
{{!}}align=right {{!}} {{{47|24}}}.{{!}}{{!}} {{{48|}}}
{{!}}align=right {{!}} {{{47|24}}}.{{!}}{{!}} {{{48|}}}
|}}
|}}
{{if#:{{{50|}}}|{{!}}-
{{#if:{{{50|}}}|{{!}}-
{{!}}align=right {{!}} {{{49|25}}}.{{!}}{{!}} {{{50|}}}
{{!}}align=right {{!}} {{{49|25}}}.{{!}}{{!}} {{{50|}}}
|}}
|}}

Revision as of 08:03, 5 August 2020

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)+'|'+base+'}}}.{{!}}{{!}} {{{'+(base*2)+'|}}}\r\n';
    output=output+'|}}\r\n';
}
output=output+'|}';