Template:transclude
- Belgium (a country in Western Europe that has borders with the Netherlands, Germany, Luxembourg and France)
- The following documentation is located at Template:transclude/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
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:
{{place}}
{{abbreviation of}}
{{acronym of}}
{{contraction of}}
{{initialism of}}
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
- Belgium (a country in Western Europe that has borders with the Netherlands, Germany, Luxembourg and France)
TemplateData
TemplateData for transclude
Creates a rich definition based on an existing English definition.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Language code | 1 | The code of the language for which a definition is to be provided.
| String | required |
English entry | 2 | The word to link to.
| String | required |
English entry sense ID | id | The sense ID of the English sense to link to.
| String | required |
Sort key | sort | The sort key to provide to the invoked templates. | String | optional |
Suppressing gloss | nogloss | Whether to suppress the gloss (the definition copied over from the English entry). | Boolean | optional |
Additional labels | lb | A semicolon-separated list of additional labels to be prepended to the transcluded labels. | String | optional |