Template:Wikisource/doc

From Ikwipedia
Revision as of 11:06, 31 October 2023 by wikipedia>Gonnym (fixes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

The default behaviour of this template is to present a string "Wikisource has original text related to this article:" with a link to a page on Wikisource with the same name as the Wikipedia page.

This template takes up to two optional parameters which will alter the page name used to link to Wikisource.

{{Wikisource|alternative page link|different name, if desired}}

Examples

{{Wikisource|1=The Velveteen Rabbit|2=Name for The Velveteen Rabbit}}

produces

{{Wikisource|1=The Velveteen Rabbit#9|2=Name for The Velveteen Rabbit}}

produces


English only

For foreign language Wikisources use:

{{Wikisourcelang|fr|Du contrat social}}

gives

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Wikisource in articles based on its TemplateData.

TemplateData for Wikisource

<templatedata>{ "description": "Creates a small box with a link to a document at Wikisource.", "params": {

 "1": {
   "label": "Page name",
   "description": "The document name on Wikisource. The article's page name is used as a default. Square brackets [ and ] need to be coded as &#91; and &#93; instead.",
   "type": "string",
   "required": false
 },
 "2": {
   "label": "Displayed name",
   "description": "Optional displayed link text.",
   "type": "string",
   "required": false
 }

}}</templatedata>

See also