Jump to content

Template:transclude

From Wiktionary, the free dictionary
  1. Belgium (a country in Western Europe that has borders with the Netherlands, Germany, Luxembourg and France)

This template is used to provide richer definitions for non-English terms based on existing English definitions. A link to the corresponding English sense is generated, accompanied by the labels and categories used within the English entry along with the full English definition, presented in the form of a gloss. If the English definition is corrected or expanded, the change automatically propagates to all transcluding entries. If the full English definition is too verbose, it can be suppressed using |nogloss=1 which still has the benefit of labels and categories propagating. Scientific categories are often refined once there are enough entries to justify a new subcategory; this refinement would also propagate to all transcluding entries.

If a sense currently lacks {{senseid}} and you want to add it, please first check if https://www.wikidata.org/ has an entry for that sense and if so, please use Wikidata's Q code as the sense ID. If an entry already contains {{senseid}}, you can use {{transclude}} without specifying |id=, preview the page and the preview error message will suggest sense ID codes from that entry to you for convenience.

For categories to propagate correctly, they have to appear on the definition line, too. They are best placed after {{senseid}} but before {{lb}}.

Beyond plain-text definitions, the following definition templates are also handled correctly:

Only use {{transclude}} if the English and non-English senses are perfect translations of one another. Perfect translations usually come in the form of proper nouns (mostly toponyms) or scientific vocabulary. If you have to think about whether something is a perfect translation, it probably isn't and you should always err on the side of not using this template.

Example

(In Belgia#Breton)

# {{transclude|br|Belgium|id=Q31}}

gives

  1. Belgium (a country in Western Europe that has borders with the Netherlands, Germany, Luxembourg and France)

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for transclude

Creates a rich definition based on an existing English definition.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Language code1

The code of the language for which a definition is to be provided.

Example
ro
Stringrequired
English entry2

The word to link to.

Example
Belgium
Stringrequired
English entry sense IDid

The sense ID of the English sense to link to.

Example
Q31
Stringrequired
Sort keysort

The sort key to provide to the invoked templates.

Stringoptional
Suppressing glossnogloss

Whether to suppress the gloss (the definition copied over from the English entry).

Booleanoptional
Additional labelslb

A semicolon-separated list of additional labels to be prepended to the transcluded labels.

Stringoptional