Template:Glossary definition/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|glodef|تعريف|rtl{{=}}yes}} || {{glodef|تعريف|rtl=yes}} | | With {{para|rtl}} || {{tlc|glodef|تعريف|rtl{{=}}yes}} || {{glodef|تعريف|rtl=yes}} | ||
|- | |- | ||
| With {{tlf|glossary term}} || {{tlc|gloterm|headword}}<br>{{tlc|glodef|definition}} || {{gloterm|headword}} | | With {{tlf|glossary term}} || {{tlc|gloterm|headword}}<br>{{tlc|glodef|definition}} || {{gloterm|headword}}{{glodef|definition}} | ||
|} | |} | ||
Latest revision as of 11:29, 10 February 2015
Shortcuts |
---|
{{glodef}} |
{{glossarydefinition}} |
Usage
{{glodef}} is a front-end for the HTML element <dd>
, which is used to delimit a word or expression entered as a glossary/dictionary definition.
Meant to be used in conjunction with {{glossary term}}. 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
{{glodef|glossary definition |rtl=yes }}
Required parameter
1
- Glossary definition
Your definition of the headword.
- Notes
- Definitions should be as concise as possible, but still give a clear description of the headword's meaning and usage in a given context. If a headword appears within multiple word classes, the definition should indicate which of the headword's word classes it covers; for example: the word code can be used as a verb or a noun, so a definition of it should start with the word class that the definition covers, e.g. vb. or n..
- Usage
{{glodef|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
{{glodef|1|rtl=yes}}
Examples
Case | What you type | What you see |
---|---|---|
Basic use | {{glodef|definition}} |
|
With |rtl |
{{glodef|تعريف|rtl=yes}} |
|
With {{glossary term}} | {{gloterm|headword}} {{glodef|definition}} |
See also
- {{glossary term}}
- {{glossary list start}}
- {{glossary list end}}
- {{glossary entry}}: combines {{glossary term}} and {{glossary definition}} in a single template.