Template:example

Revision as of 13:58, 7 August 2023 by Maria (talk | contribs) (Created page with "<includeonly>{{#invoke:example|show}}</includeonly><noinclude>Category:Definition templates{{documentation}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
TemplateDocumentation.svg Template documentation [view] [edit] [purge]

Renders an example sentence for a language entry.

Usage

Here's a sample usage as you might find with a definition. You can use *asterisks* to bold the sentence and gloss.

# to {{eng|write}} {{eng|in}}
#: {{ex|kil|Drazam wihurad haleṯad *lešēndah*.|I *wrote* my name in the book.}}

This would render the below:

  1. to write in
    Drazam wihurad haleṯad lešēndah.
    I wrote my name in the book.

and would add the category Kilitic terms with usage examples.

Parameters

|1= (required)
The language code of the language that the example is in.
|2= (required)
The example sentence itself.
|3= (optional)
An optional translation.
|inline=
Whether the example is short enough that it can be shown inline.
|nocat=
An optional marker which, if set to true, will suppress any categories from being automatically added to the entry.