| | |
| (One intermediate revision by one user not shown) |
| Line 2: | Line 2: |
| | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> |
| | ===Usage=== | | ===Usage=== |
| − | This template wraps text in the appropriate <tt>lang=</tt> HTML attribute, and optionally also adds a script class. | + | This template wraps text in the appropriate <tt>lang=</tt> HTML attribute, and optionally also adds a script class. It is similar to {{temp|l}} but does not provide a link. For tagging usage examples in definitions, use {{temp|usex}}. |
| | | | |
| | Parameters: | | Parameters: |
| | * <tt>1=</tt> - [[WT:LANGCODE|Language code]] | | * <tt>1=</tt> - [[WT:LANGCODE|Language code]] |
| | * <tt>2=</tt> - The term to be displayed. If you need to link to the term, use {{temp|l}} or {{temp|term}}, not this template. | | * <tt>2=</tt> - The term to be displayed. If you need to link to the term, use {{temp|l}} or {{temp|term}}, not this template. |
| − | * <tt>sc=</tt> - Specify the script. | + | * <tt>sc=</tt> - Specify the script, if different from the default for the language. |
| | | | |
| − | {{rfd}} | + | Note that {{temp|lang|sh|sc{{=}}Cyrl|...}} is equivalent to {{temp|Cyrl|2=lang=sh|...}}. However, script templates may be deleted at some time in the future, so using this template is probably preferred. It also has the advantage that it can select the default script for a language, like {{temp|l}}. |
| | | | |
| | ===See also=== | | ===See also=== |
| | * {{temp|l}} to create a language-specific link | | * {{temp|l}} to create a language-specific link |
| | * {{temp|term}} for mentioned terms | | * {{temp|term}} for mentioned terms |
| − | | |
| − | | |
| | <includeonly> | | <includeonly> |
| − | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | |
| | [[Category:Supplementary templates]] | | [[Category:Supplementary templates]] |
| | </includeonly> | | </includeonly> |