Difference between revisions of "Template:Infobox road/shieldmain/THA"

From blackwiki
Jump to navigation Jump to search
imported>Imzadi1979
m (adding in ifexist switch)
imported>Fredddie
(add second shield logic)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#ifexist: {{#switch:{{{type|}}}
+
{{#ifeq:{{Infobox road/shield/THA|type={{{type|}}}|route={{{route|}}}}}|none|none|[[File:{{Infobox road/shield/THA|type={{{type|}}}|route={{{route|}}}}}|x70px|alt={{Infobox road/name/THA|type={{{type|}}}|route={{{route|}}}}} shield}}]]}}{{#switch:{{{type|}}}
|R=File:Thai Highway-{{{route}}}.svg
+
  |M={{#switch:{{{route|}}}
|M=File:Thai Motorway-f{{{route}}}.svg
+
  |5|6|7|8|9|31|91=[[File:{{Infobox road/shield/THA|type=T|route={{{route|}}}}}|x70px|alt={{Infobox road/name/THA|type=T|route={{{route|}}}}} shield}}]]
|T=File:Thai Motorway-t{{{route}}}.svg
+
  |#default=
|#default= }}
+
  }}
|{{#switch:{{{type|}}}
+
  |#default=
  |R=[[File:Thai Highway-{{{route}}}.svg|70px]]
+
}}<noinclude>[[Category:Thailand expressway and road infobox templates|{{PAGENAME}}]]</noinclude>
|M=[[File:Thai Motorway-f{{{route}}}.svg|70px]]
 
|T=[[File:Thai Motorway-t{{{route}}}.svg|70px]]
 
  |#default=none }}
 
| none }}
 

Latest revision as of 23:39, 27 October 2020

none