Template:Wikisource

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]

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



Limitation [] - square brackets

  • You can not 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 ] : {{Wikisource|1=Leaves_of_Grass/Book_XVII#Year of Meteors [1859-60]|2=name for Leaves of Grass Year of Meteors [1859-60]}}

produces


Template data

Creates a small box with a links to a document at Wikisource.

Template parameters
Parameter Description Type Default Status
Page name 1 The document name on commons. The article's page name is used as a default. Square brackets [, ] needed to be coded as [ and ] string empty optional
Displayed name 2 Optional displayed link text. string empty optional


See also