Template:example/documentation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 16: | Line 16: | ||
and would add the category [[:Kilitic terms with usage examples]]. | and would add the category [[:Kilitic terms with usage examples]]. | ||
===Parameters=== | |||
; {{para|1|req=1}} | |||
: The language code of the language that the example is in. | |||
; {{para|2|req=1}} | |||
: The example sentence itself. | |||
; {{para|3|opt=1}} | |||
: An optional translation. | |||
; {{para|nocat}} | |||
: An optional marker which, if set to true, will suppress any categories from being automatically added to the entry. | |||
Revision as of 14:51, 7 August 2023
| Uses Lua: |
Shortcut
{{ex}} |
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}}
#: {{example|kil|Drazam wihurad haleṯad lešēndah.|I wrote my name in the book.}}
This would render the below:
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.
|nocat=- An optional marker which, if set to true, will suppress any categories from being automatically added to the entry.