Difference between revisions of "Template:ISRint"

From blackwiki
Jump to navigation Jump to search
imported>Gonnym
(making code more readable)
imported>Gonnym
(testing switch case)
Line 1: Line 1:
 
{{Jctint/core
 
{{Jctint/core
|1                 = {{{1|}}}
+
|1                   = {{{1|}}}
|2                 = {{{2|}}}
+
|2                   = {{{2|}}}
|region             = {{{country|}}}
+
|region             = {{{country|}}}
|regionspan         = {{{cspan|}}}
+
|regionspan         = {{{cspan|}}}
|region_special     = {{{country_special|}}}
+
|region_special     = {{{country_special|}}}
|sub1               = {{{district|}}}
+
|sub1               = {{{district|}}}
|sub1name          = District
+
|sub1name           = {{#switch: {{{district|}}}
|sub1span           = {{{dspan|}}}
+
| Central           = District (Israel)
|sub1_special       = {{{district_special|}}}
+
| Judea and Samaria = Area
|sub1dab           = {{{cdab|}}}
+
| default District
|sub2               = {{{location|}}}
+
}}
|sub2span           = {{{lspan|}}}
+
|sub1span           = {{{dspan|}}}
|sub2_special       = {{{location_special|}}}
+
|sub1_special       = {{{district_special|}}}
|indep_city_special = {{#if:{{{indep_city|}}}|[[{{{indep_city}}}]]|{{{indep_city_special|}}}}}
+
|sub1dab             = {{{cdab|}}}
|type               = {{{type|}}}
+
|sub2               = {{{location|}}}
|unit               = {{{km|}}}
+
|sub2span           = {{{lspan|}}}
|unit2             = {{{km2|}}}
+
|sub2_special       = {{{location_special|}}}
|uspan             = {{{kmspan|}}}
+
|indep_city_special = {{#if:{{{indep_city|}}}|[[{{{indep_city}}}]]|{{{indep_city_special|}}}}}
|unitdef           = km
+
|type               = {{{type|}}}
|exit               = {{{exit|}}}
+
|unit               = {{{km|}}}
|old               = {{{old|}}}
+
|unit2               = {{{km2|}}}
|espan             = {{{espan|}}}
+
|uspan               = {{{kmspan|}}}
|ospan             = {{{ospan|}}}
+
|unitdef             = km
|name               = {{{name|}}}
+
|exit               = {{{exit|}}}
|namespan           = {{{namespan|}}}
+
|old                 = {{{old|}}}
|road               = {{{road|}}}
+
|espan               = {{{espan|}}}
|notes             = {{{notes|}}}
+
|ospan               = {{{ospan|}}}
 +
|name               = {{{name|}}}
 +
|namespan           = {{{namespan|}}}
 +
|road               = {{{road|}}}
 +
|notes               = {{{notes|}}}
 
}}<noinclude>[[Category:Israel highway templates]]</noinclude>
 
}}<noinclude>[[Category:Israel highway templates]]</noinclude>

Revision as of 11:33, 4 December 2018