Difference between revisions of "Template:JKR"
Jump to navigation
Jump to search
imported>Johnuniq (accept parameter 2 to reduce number of expensive parser calls per WP:VPT discussion) |
imported>Plastikspork (Nested noinclude tags) |
||
| Line 11: | Line 11: | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
| − | <noinclude> | + | </noinclude> |
Latest revision as of 23:47, 26 April 2020
This template displays the route marker for Malaysian roads given the route number. If the proper image does not exist on this wiki or Wikimedia Commons, the template will display the route number in italics until the image is uploaded. This template does not currently work for expressway routes and will display an error instead.
Examples
{{JKR|1}}→
{{JKR|9999}}→ 9999{{JKR|P1}}→ P1{{JKR|E40}}→ Wrong template: use {{MES-E|route number without "E"}}
Specifying output
Some pages (example) use this template many times. To avoid errors due to the large number of expensive function calls to test which images exist, an optional second parameter can be added:
svgto use the svg imagepngto use the png imagetextto use italic text
Examples:
| The above documentation is transcluded from Template:JKR/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |