Template:eng: Difference between revisions

From Laenkea
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[wikt:{{{1}}}#{{{pos|English}}}|{{{2|{{{1}}}}}}]]<noinclude>[[Category:Link templates]][[Category:Format templates]]
<includeonly>{{#if:{{{2|}}}|{{#switch:{{{1}}}
== Usage ==
|m+ = [[w:English_language|English]] <i>[[wikt:{{{2}}}#{{{pos|English}}}|{{{3|{{{2}}}}}}]]</i>
This creates a link to the Wiktionary entry for an English word.<br>The first argument is the word which you wish to be linked.<br>
|+ = [[w:English_language|English]] <i>[[wikt:{{{2}}}#{{{pos|English}}}|{{{3|{{{2}}}}}}]]</i>
Optional second argument is the text to display if different from the first argument (the link).
|m = <i>[[wikt:{{{2}}}#{{{pos|English}}}|{{{3|{{{2}}}}}}]]</i>
<code>pos</code> specifies part of speech, if you wish to hyperlink it to that specific section.</noinclude>
|l = [[wikt:{{{2}}}#{{{pos|English}}}|{{{3|{{{2}}}}}}]]
|[[wikt:{{{1}}}#{{{pos|English}}}|{{{2|{{{1}}}}}}]]}}|[[wikt:{{{1}}}#{{{pos|English}}}|{{{2|{{{1}}}}}}]]}}</includeonly><noinclude>{{documentation}}[[Category:Link templates]][[Category:Definition templates]]</noinclude>

Latest revision as of 21:36, 3 September 2024

TemplateDocumentation.svg Template documentation [view] [edit] [purge]

This creates a link to the Wiktionary entry for an English word.
{{eng|there}}there
{{eng|there be|there to be}}there to be
{{eng|pass|pos=Noun}}pass
The first argument is the word which you wish to be linked.
Optional second argument is the text to display if different from the first argument (the link).
pos specifies part of speech, if you wish to hyperlink it to that specific section. (should be capitalised).

You can also specify l (default), m or (m)+ to style it as per the standard linking modules:
{{eng|word}} = {{eng|l|word}}word
{{eng|m|word}}word
{{eng|+|word}} = {{eng|m+|word}}English word