Template:Xyzy/doc

Usage
Universal script template

This template is a metatemplate used by such templates as and ; it handles the script selection. It will generate correct attributes and html/xml language tags. If the language is known, it attempts to invoke the most likely script template (e.g., Hebrew script, if lang=he, Hebrew language).

This is only to be used by other templates, never in entries; entries should use the correct script template directly if needed.

Parameters

 * (1) text to be tagged
 * sc= — optional — the specific script template to call, if known; omit, or set to blank, if the script template should be selected based on lang=.
 * lang= — optional, but strongly encouraged — the language code (included in the generated HTML, and used to select a script template if sc= is not specified); should be a valid language code; omit, or set explicitly to blank, if the correct language-code is unavailable.
 * face= — optional — one of [term, ital, head, bold] to set default attributes; omit, or set to blank, if none of these is appropriate.

See for details of how the script template is selected.

Examples
(see page source in your browser)



Bad examples:



Tests

 * : foo
 * : พจนานุกรม