Template:Infobox number/link

From Holocaustmap

{{#if:

 | {{#ifexpr:0 < 0
      |−{{#expr:abs(0)}}
      |{{{number}}}
   }}
 | {{#ifexist: {{#ifexpr:0 < 0|−{{#expr:abs(0)}}|0}} (number)
      | [[{{#ifexpr:0 < 0|−{{#expr:abs(0)}}|0}} (number)| {{#ifexpr:0 < 0|−}}{{#expr:abs(0)}} ]]
      |  {{#ifexpr:0 < 0|−}}{{#expr:abs(0)}} 
   }}

}} Lua error: Module:TNT:172: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.{{#if:== Test 1 ==

  • {{Infobox number/link|number=-3}} → {{#if:
 | {{#ifexpr:-3 < 0
      |−{{#expr:abs(-3)}}
      |-3
   }}
 | {{#ifexist: {{#ifexpr:-3 < 0|−{{#expr:abs(-3)}}|-3}} (number)
      | [[{{#ifexpr:-3 < 0|−{{#expr:abs(-3)}}|-3}} (number)| {{#ifexpr:-3 < 0|−}}{{#expr:abs(-3)}} ]]
      |  {{#ifexpr:-3 < 0|−}}{{#expr:abs(-3)}} 
   }}

}}

  • {{Infobox number/link|number=-2}} → {{#if:
 | {{#ifexpr:-2 < 0
      |−{{#expr:abs(-2)}}
      |-2
   }}
 | {{#ifexist: {{#ifexpr:-2 < 0|−{{#expr:abs(-2)}}|-2}} (number)
      | [[{{#ifexpr:-2 < 0|−{{#expr:abs(-2)}}|-2}} (number)| {{#ifexpr:-2 < 0|−}}{{#expr:abs(-2)}} ]]
      |  {{#ifexpr:-2 < 0|−}}{{#expr:abs(-2)}} 
   }}

}}

  • {{Infobox number/link|number=-1}} → {{#if:
 | {{#ifexpr:-1 < 0
      |−{{#expr:abs(-1)}}
      |-1
   }}
 | {{#ifexist: {{#ifexpr:-1 < 0|−{{#expr:abs(-1)}}|-1}} (number)
      | [[{{#ifexpr:-1 < 0|−{{#expr:abs(-1)}}|-1}} (number)| {{#ifexpr:-1 < 0|−}}{{#expr:abs(-1)}} ]]
      |  {{#ifexpr:-1 < 0|−}}{{#expr:abs(-1)}} 
   }}

}}

  • {{Infobox number/link|number=0}} → {{#if:
 | {{#ifexpr:0 < 0
      |−{{#expr:abs(0)}}
      |0
   }}
 | {{#ifexist: {{#ifexpr:0 < 0|−{{#expr:abs(0)}}|0}} (number)
      | [[{{#ifexpr:0 < 0|−{{#expr:abs(0)}}|0}} (number)| {{#ifexpr:0 < 0|−}}{{#expr:abs(0)}} ]]
      |  {{#ifexpr:0 < 0|−}}{{#expr:abs(0)}} 
   }}

}}

  • {{Infobox number/link|number=1}} → {{#if:
 | {{#ifexpr:1 < 0
      |−{{#expr:abs(1)}}
      |1
   }}
 | {{#ifexist: {{#ifexpr:1 < 0|−{{#expr:abs(1)}}|1}} (number)
      | [[{{#ifexpr:1 < 0|−{{#expr:abs(1)}}|1}} (number)| {{#ifexpr:1 < 0|−}}{{#expr:abs(1)}} ]]
      |  {{#ifexpr:1 < 0|−}}{{#expr:abs(1)}} 
   }}

}}

  • {{Infobox number/link|number=2}} → {{#if:
 | {{#ifexpr:2 < 0
      |−{{#expr:abs(2)}}
      |2
   }}
 | {{#ifexist: {{#ifexpr:2 < 0|−{{#expr:abs(2)}}|2}} (number)
      | [[{{#ifexpr:2 < 0|−{{#expr:abs(2)}}|2}} (number)| {{#ifexpr:2 < 0|−}}{{#expr:abs(2)}} ]]
      |  {{#ifexpr:2 < 0|−}}{{#expr:abs(2)}} 
   }}

}}

Test 2

  • {{Infobox number/link|plain=y|number=-3}} → {{#if:y
 | {{#ifexpr:-3 < 0
      |−{{#expr:abs(-3)}}
      |-3
   }}
 | {{#ifexist: {{#ifexpr:-3 < 0|−{{#expr:abs(-3)}}|-3}} (number)
      | [[{{#ifexpr:-3 < 0|−{{#expr:abs(-3)}}|-3}} (number)| {{#ifexpr:-3 < 0|−}}{{#expr:abs(-3)}} ]]
      |  {{#ifexpr:-3 < 0|−}}{{#expr:abs(-3)}} 
   }}

}}

  • {{Infobox number/link|plain=y|number=-2}} → {{#if:y
 | {{#ifexpr:-2 < 0
      |−{{#expr:abs(-2)}}
      |-2
   }}
 | {{#ifexist: {{#ifexpr:-2 < 0|−{{#expr:abs(-2)}}|-2}} (number)
      | [[{{#ifexpr:-2 < 0|−{{#expr:abs(-2)}}|-2}} (number)| {{#ifexpr:-2 < 0|−}}{{#expr:abs(-2)}} ]]
      |  {{#ifexpr:-2 < 0|−}}{{#expr:abs(-2)}} 
   }}

}}

  • {{Infobox number/link|plain=y|number=-1}} → {{#if:y
 | {{#ifexpr:-1 < 0
      |−{{#expr:abs(-1)}}
      |-1
   }}
 | {{#ifexist: {{#ifexpr:-1 < 0|−{{#expr:abs(-1)}}|-1}} (number)
      | [[{{#ifexpr:-1 < 0|−{{#expr:abs(-1)}}|-1}} (number)| {{#ifexpr:-1 < 0|−}}{{#expr:abs(-1)}} ]]
      |  {{#ifexpr:-1 < 0|−}}{{#expr:abs(-1)}} 
   }}

}}

  • {{Infobox number/link|plain=y|number=0}} → {{#if:y
 | {{#ifexpr:0 < 0
      |−{{#expr:abs(0)}}
      |0
   }}
 | {{#ifexist: {{#ifexpr:0 < 0|−{{#expr:abs(0)}}|0}} (number)
      | [[{{#ifexpr:0 < 0|−{{#expr:abs(0)}}|0}} (number)| {{#ifexpr:0 < 0|−}}{{#expr:abs(0)}} ]]
      |  {{#ifexpr:0 < 0|−}}{{#expr:abs(0)}} 
   }}

}}

  • {{Infobox number/link|plain=y|number=1}} → {{#if:y
 | {{#ifexpr:1 < 0
      |−{{#expr:abs(1)}}
      |1
   }}
 | {{#ifexist: {{#ifexpr:1 < 0|−{{#expr:abs(1)}}|1}} (number)
      | [[{{#ifexpr:1 < 0|−{{#expr:abs(1)}}|1}} (number)| {{#ifexpr:1 < 0|−}}{{#expr:abs(1)}} ]]
      |  {{#ifexpr:1 < 0|−}}{{#expr:abs(1)}} 
   }}

}}

  • {{Infobox number/link|plain=y|number=2}} → {{#if:y
 | {{#ifexpr:2 < 0
      |−{{#expr:abs(2)}}
      |2
   }}
 | {{#ifexist: {{#ifexpr:2 < 0|−{{#expr:abs(2)}}|2}} (number)
      | [[{{#ifexpr:2 < 0|−{{#expr:abs(2)}}|2}} (number)| {{#ifexpr:2 < 0|−}}{{#expr:abs(2)}} ]]
      |  {{#ifexpr:2 < 0|−}}{{#expr:abs(2)}} 
   }}

}}

Test 3

  • {{Infobox number/link|pre=→|post=←|number=1}} → {{#if:
 | {{#ifexpr:1 < 0
      |−{{#expr:abs(1)}}
      |1
   }}
 | {{#ifexist: {{#ifexpr:1 < 0|−{{#expr:abs(1)}}|1}} (number)
      | [[{{#ifexpr:1 < 0|−{{#expr:abs(1)}}|1}} (number)|→ {{#ifexpr:1 < 0|−}}{{#expr:abs(1)}} ←]]
      | → {{#ifexpr:1 < 0|−}}{{#expr:abs(1)}} ←
   }}

}}

Test 4

  • {{Infobox number/link|plain=y|pre=→|post=←|number=1}} → {{#if:y
 | {{#ifexpr:1 < 0
      |−{{#expr:abs(1)}}
      |1
   }}
 | {{#ifexist: {{#ifexpr:1 < 0|−{{#expr:abs(1)}}|1}} (number)
      | [[{{#ifexpr:1 < 0|−{{#expr:abs(1)}}|1}} (number)|→ {{#ifexpr:1 < 0|−}}{{#expr:abs(1)}} ←]]
      | → {{#ifexpr:1 < 0|−}}{{#expr:abs(1)}} ←
   }}

}}| [[Category:Template documentation pages{{#translation:}}]] }}