User:Cbuckley/Sandbox

From Wikipedia, the free encyclopedia

This is my sandbox. I will fill this with random stuff on which I'm working.

[edit] Motorway signs

I am currently working on a template for motorway signs on Wikipedia. I'm following the idea used at cbrd.co.uk, and indeed the Motorway font from their site, but using SVG-format images, at least for the most part. Currently there is no support for many fonts on Wikimedia, and anything but straight characters struggle to be converted to paths. Still, here's a demonstration. I'm also hoping to produce a similar for trunk roads.

[edit] To do

  • Some sort of size control. Shouldn't be that difficult, just getting the premise first. Had problems with this, because Wikipedia stores resized images by widths (even when resized by height), and when these tall, thin images get resized the resulting width is not an integer, and any decimals are lost. I just uploaded smaller images.
  • Give the image pages some more descriptive names, perhaps adding a series infobox to them.
  • Give the templates some examples in the <noinclude> section.

Testing the sign for which the template was first created. Notice how the (M) is added if the classification is an A road, as the only raeson this sign would be being used with an A road is with an upgraded one.

[A64(M)]

Simple motorway example.

[M4]

Test some more numbers:

[M123]

[M5789]

[edit] Trunk-road signs

And here's the similar template for trunk-road signs:

[A1234]

[B5678]

[C9]