Template:Glossary term/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{documentation subpage}} __NOTOC__ {| style="width: 8%; border-spacing: 2px; border: 1px solid #d7d3c8; border-collapse: collapse; margin-left: 20px; float: right;" |- ! styl...") |
|||
Line 51: | Line 51: | ||
| With {{para|rtl}} || {{tlc|gloterm|كلمة في القاموس|rtl{{=}}yes}} || {{gloterm|كلمة في القاموس|rtl=yes}} | | With {{para|rtl}} || {{tlc|gloterm|كلمة في القاموس|rtl{{=}}yes}} || {{gloterm|كلمة في القاموس|rtl=yes}} | ||
|- | |- | ||
| With {{tlf|glossary definition}} || {{tlc|gloterm|headword}}<br>{{tlc|glodef|definition}} || {{gloterm|headword}} | | With {{tlf|glossary definition}} || {{tlc|gloterm|headword}}<br>{{tlc|glodef|definition}} || {{gloterm|headword}}{{glodef|definition}} | ||
|} | |} | ||
Latest revision as of 11:29, 10 February 2015
Shortcuts |
---|
{{gloterm}} |
{{glossaryterm}} |
Usage
{{gloterm}} is a front-end for the HTML element <dt>
, which is used to delimit a word or expression entered as a glossary/dictionary headword.
Meant to be used in conjunction with {{glossary definition}}. To enter both the term and the definition in one go, with the possibility to add multiple definitions, use the template {{glossary entry}}.
Parameters
There are 2 parameters, of which 1 is unnamed and required, and 1 is named and optional.
Syntax
The template's syntax is
{{gloterm|glossary term |rtl=yes }}
Required parameter
1
- Glossary term
Your headword entry.
- Notes
- Headwords should always be entered in lower-case, with the exception of proper nouns, words that use capital letters within them, and abbreviations/acronyms in or with capital letters.
- Usage
{{gloterm|1}}
Optional parameter
rtl
- Forces text direction to flow right-to-left
- Notes
- You may call this parameter by setting it to any value; i.e.
|rtl=yes
will yield the same result as|rtl=whoopsadaisy
.
- Usage
{{gloterm|1|rtl=yes}}
Examples
Case | What you type | What you see |
---|---|---|
Basic use | {{gloterm|headword}} |
|
With |rtl |
{{gloterm|كلمة في القاموس|rtl=yes}} |
|
With {{glossary definition}} | {{gloterm|headword}} {{glodef|definition}} |
See also
- {{glossary list start}}
- {{glossary list end}}
- {{glossary entry}}: combines {{glossary term}} and {{glossary definition}} in a single template.