Template:example/documentation: Difference between revisions
Jump to navigation
Jump to search
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
# to {{tempn|eng|write}} {{tempn|eng|in}} | # to {{tempn|eng|write}} {{tempn|eng|in}} | ||
#: {{tempn|ex|kil|Drazam wihurad haleṯad *lešēndah*.|I *wrote* my name in the book.}} | #: {{tempn|ex|kil|Drazam wihurad haleṯad *lešēndah*.|I *wrote* my name in the book.|pl:Za*pisałem/am* swoje imię w książce.}} | ||
This would render the below: | This would render the below: | ||
# to {{eng|write}} {{eng|in}} | # to {{eng|write}} {{eng|in}} | ||
#: {{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.|pl:Za*pisałem/am* swoje imię w książce.|nocat=1}} | ||
and would add the category [[:Category:Kilitic terms with usage examples|Kilitic terms with usage examples]]. | and would add the category [[:Category:Kilitic terms with usage examples|Kilitic terms with usage examples]]. | ||
Line 24: | Line 24: | ||
: The example sentence itself. | : The example sentence itself. | ||
; {{para|3|opt=1}} | ; {{para|3|opt=1}}, {{para|4}} … | ||
: | : Optional translations. Prefix with <code>de:</code>, <code>sl:</code> etc. to specify non-English language (see [[Module:languages-oow/data]]) | ||
; {{para|inline}} | ; {{para|inline}} |
Revision as of 22:32, 25 December 2024
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. 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.|pl:Za*pisałem/am* swoje imię w książce.}}
This would render the below:
- to write in
- Drazam wihurad haleṯad lešēndah.
- I wrote my name in the book. — 🇵🇱 Zapisałem/am swoje imię w książce.
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),|4=
…- Optional translations. Prefix with
de:
,sl:
etc. to specify non-English language (see Module:languages-oow/data)
|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.