Jump to content

ទំព័រគំរូ:Xyzy/script/doc

ពីWiktionary

This is a helper template for {{Xyzy}}; it takes the arguments sc=, lang=, and langprefix=, and returns the name of the script template that {{Xyzy}} should use, according to these rules:

  • If sc= is non-blank, and not Xyzy, its value is returned.
  • Otherwise, if lang= has a template like {{en/script}} or {{proto:sem-pro/script}}, then the value of that template is returned. (langprefix= is used in deciding where to look for that template.)
    • In particular, if lang= is blank, then None is returned. (This is controlled by {{/script}}.)
  • Otherwise, Eror is returned.