మూస:Xyzy/script
స్వరూపం
< మూస:Xyzy
- The following documentation is located at Template:Xyzy/script/doc. [edit]
- Note: Please move the documentation subpage to Template:Xyzy/script/documentation.
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.