Template:translations/documentation: Difference between revisions
Jump to navigation
Jump to search
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) (→Usage) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{uses lua|Module:translations}} | |||
{{shortcut|Template:t}} | |||
==Usage== | ==Usage== | ||
Each language can be specified as such: | Each language can be specified as such: | ||
{{tempn|translations|eye (organ) | {{tempn|translations|kil|eye (organ) | ||
|bal={{tempn|l|bal|ota}}<br> | |bal={{tempn|l|bal|ota}}<br> | ||
|ryn={{tempn|l|ryn|vah}}<br> | |||
|lfv={{tempn|l|lfv|vat}}<br> | |lfv={{tempn|l|lfv|vat}}<br> | ||
|rad={{tempn|l|rad|vas}}<br> | |rad={{tempn|l|rad|vas}}<br> | ||
Line 10: | Line 13: | ||
Produces: | Produces: | ||
{{translations|eye (organ)|bal={{l|bal|ota}}|lfv={{l|lfv|vat}}|rad={{l|rad|vas}}|lus={{l|lus|va}}}} | {{translations|kil|eye (organ)|bal={{l|bal|ota}}|ryn={{l|ryn|vah}}|lfv={{l|lfv|vat}}|rad={{l|rad|vas}}|lus={{l|lus|va}}|nocat=1}} | ||
Note that all languages are alphabetised. | Note that all languages are alphabetised. | ||
Line 17: | Line 20: | ||
A shortcut to typing out the links is to use <code>*asterisks*</code>, which will replace whatever is inside each occurrence with a wordlink in the language. | A shortcut to typing out the links is to use <code>*asterisks*</code>, which will replace whatever is inside each occurrence with a wordlink in the language. | ||
{{tempn|translations|to see | {{tempn|translations|kil|to see | ||
|lfv=*lad*, *dalad*<br> | |lfv=*lad*, *dalad*<br> | ||
|rad=*vardt*<br> | |rad=*vardt*<br> | ||
Line 25: | Line 28: | ||
Produces: | Produces: | ||
{{translations|to see | {{translations|kil|to see | ||
|lfv=*lad*, *dalad* | |lfv=*lad*, *dalad* | ||
|rad=*vardt* | |rad=*vardt* | ||
|lus=*lirt* | |lus=*lirt* | ||
|nocat=1 | |||
}} | |||
If you use <code>*words:word*</code>, the link will display '''words''', but link to '''word'''. In other words: <code>*alt:link*</code>. | |||
{{tempn|translations|rad|Plantae | |||
|lfv=*þaorþir:þaorþ*<br> | |||
}} | |||
Produces: | |||
{{translations|rad|Plantae | |||
|lfv=*þaorþir:þaorþ* | |||
|nocat=1 | |||
}} | }} |
Latest revision as of 19:35, 26 July 2024
Uses Lua: |
Shortcut
{{t}} |
Usage
Each language can be specified as such:
{{translations|kil|eye (organ) |bal={{l|bal|ota}}
|lfv={{l|lfv|vat}}
|lus={{l|lus|va}}
|rad={{l|rad|vas}}
|ryn={{l|ryn|vah}}
}}
Produces:
Note that all languages are alphabetised.
A shortcut to typing out the links is to use *asterisks*
, which will replace whatever is inside each occurrence with a wordlink in the language.
{{translations|kil|to see |lfv=*lad*, *dalad*
|lus=*lirt*
|rad=*vardt*
}}
Produces:
If you use *words:word*
, the link will display words, but link to word. In other words: *alt:link*
.
{{translations|rad|Plantae |lfv=*þaorþir:þaorþ*
}}
Produces:
Plantae
|