Template:Wikisource/doc
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. |
This is a documentation subpage for Template:Wikisource. It contains usage information, categories and other content that is not part of the original template page. |
Contents
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
40x40px | Wikisource has original text related to this article: |
{{Wikisource|1=Leaves of Grass/Book XVII#To You|2=name for Leaves of Grass To You}}
produces
40x40px | Wikisource has original text related to this article: |
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
40x40px | Wikisource has original text related to this article:
[[wikisource:Leaves of Grass/Book XVII#Year of Meteors [1859-60]|name for Leaves of Grass Year of Meteors [1859-60]]] |
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
40x40px | Wikisource has original text related to this article: |
English only
For foreign language Wikisources use: {{Wikisourcelang}}
example:
{{Wikisourcelang|fr|Du contrat social}}
gives
Template:Wikisourcelang
TemplateData
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 [ and ] instead.", "type": "string", "required": false }, "2": { "label": "Displayed name", "description": "Optional displayed link text.", "type": "string", "required": false }
}}</templatedata>
See also
- {{Wikisource-inline}} inline version
- {{Wikisourcehas}} for allowing the including editor to choose the wording
- {{Wikisource author}} for linking to an author's pages in Wikisource
- {{Cite wikisource}} used to cite sources in Wikipedia
- {{Ws}} for a less complicated interface than {{Cite wikisource}}
- {{Wikisource redirect}} a specialized template for redirecting to Wikisource
- Wikipedia:Sister projects for background and full usage information
- Wikipedia:Template messages/Sister projects#Wikisource for full usage information
- {{Copy to Wikisource}}
- {{Wikilivres}}