Template:example/documentation: Difference between revisions

From Laenkea
Jump to navigation Jump to search
m (Added nowiki to example code)
No edit summary
Line 15: Line 15:
#: {{ex|kil|Drazam wihurad haleṯad '''lešēndah'''.|I '''wrote''' my name in the book.|nocat=1}}
#: {{ex|kil|Drazam wihurad haleṯad '''lešēndah'''.|I '''wrote''' my name in the book.|nocat=1}}


and would add the category [[:Kilitic terms with usage examples]].
and would add the category [[:Category:Kilitic terms with usage examples]].


===Parameters===
===Parameters===

Revision as of 23:50, 11 August 2023

Edit-copy green.svg Documentation for Template:example. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

Renders an example sentence for a language entry.

Usage

Here's a sample usage as you might find with a definition.

# to {{eng|write}} {{eng|in}}
#: {{tempn|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 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.
|nocat=
An optional marker which, if set to true, will suppress any categories from being automatically added to the entry.