Template:Wiktionary-inline/doc

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Useful in "External links" section, making a one-line navigation to Wiktionary. Not inline in the usual sense.

Usage[edit]

* {{Wiktionary-inline}} produces a link to the Wiktionary definition of the page title. Notice: The first letter of each word is turned to lower case. Pass a parameter explicitly if it's not what you want.

* {{Wiktionary-inline|word}} Produces a link to word on Wiktionary:

  • The dictionary definition of word at Wiktionary

* {{Wiktionary-inline|word|Word}} Produces a link to word on Wiktionary, but titles the link Word:

  • The dictionary definition of Word at Wiktionary

See also[edit]

Similar templates for other Wikimedia projects[edit]

Other templates linking to Wiktionary[edit]

Template:Wiktionary templates common doc

TemplateData[edit]

<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

Adds an inline link to a given term, defaulting to BASEPAGENAME, on wiktionary

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
term1

the term to link to

Example
word
Linerequired
displayed text2

text to render in the link to the wiktionary entry

Example
Word
Linesuggested
extra textextratext

extra text to display after the link

Example
sense #2
Stringoptional