The wiki has recently been updated. Please contact me by talk page or email if you encounter any issues.

Template:X: Difference between revisions

From FrathWiki
Jump to navigationJump to search
mNo edit summary
m (cat)
 
Line 56: Line 56:


This template does not <tt>subst:</tt> gracefully.
This template does not <tt>subst:</tt> gracefully.
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 02:34, 5 October 2014

Convenience transliteration-to-images template for entering conlang script.

Usage is: {{x|language name|character|character|character...}} — for up to 30 characters.

Optional parameters are:

  • size — to specify a particular size for the images. The default is to use their natural size. I don't think resizing works well at the moment, so it's best to keep the original images around the same size and at a size suitable for text
  • rtl — to display the images in reverse order of entry (e.g. for a right-to-left language).
  • type — file extension of the images (if none is given, assumes gif)

It works by doing e.g. [[Image:languagename-character.gif]], so to use it you'll need to have files with names matching that template in place.

Notice that the character portion is included as the image's alt text, so it'll be helpful if it's reasonably representative of the character's value.

Example usage:

the Drake word *{{x|Drake|D|G|D|G}} /ðoɣðoɣ/

which gives:

the Drake word *DGDG /ðoɣðoɣ/

Of course since Drake is actually an RTL language we ought to do:

the Drake word *{{x|Drake|rtl=x|D|G|D|G}} /ðoɣðoɣ/

which gives:

the Drake word *DGDG /ðoɣðoɣ/

This template does not subst: gracefully.