Template:Wikisource/doc

From WikiAlpha
Jump to: navigation, search
The below content is licensed according to Creative Commons Attribution-ShareAlike License contrary to the public domain logo at the foot of the page. It originally appeared on http://en.wikipedia.org. The original article might still be accessible here. You may be able to find a list of the article's previous contributors on the talk page.

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=Leaves of Grass/Book XVII|2=name for Leaves of Grass}}

produces


{{Wikisource|1=Leaves of Grass/Book XVII#To You|2=name for Leaves of Grass To You}}

produces


Limitations

[] - square brackets

  • You cannot use square brackets ("[" and "]") in the first parameter.

{{Wikisource|1=Leaves of Grass/Book XVII#Year of Meteors [1859-60]|2=name for Leaves of Grass Year of Meteors [1859-60]}}

produces


To resolve this use "[" and "]" instead:
{{Wikisource|1=Leaves of Grass/Book XVII#Year of Meteors [1859-60]|2=name for Leaves of Grass Year of Meteors [1859-60]}}

produces


English only

For foreign language Wikisources use: {{Wikisourcelang}}

example:

{{Wikisourcelang|fr|Du contrat social}}

gives

Template:Wikisourcelang

TemplateData

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

See the monthly error report for this template.

TemplateData for Wikisource

<templatedata>{ "description": "Creates a small box with a links 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