Template:Wikisource/doc: Difference between revisions
m (fmt) |
m (1 revision imported) |
Latest revision as of 17:43, 30 September 2023
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. |
This template is used on approximately 11,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
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#9}}
produces
English only
For foreign language Wikisources use:
{{Wikisourcelang|fr|Du contrat social}}
gives
Template:Wikisourcelang
TemplateData
TemplateData for Wikisource
Creates a small box with a link to a document at Wikisource.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page name | 1 | The document name on Wikisource. The article's page name is used as a default. Square brackets <tt>[</tt> and <tt>]</tt> need to be coded as <tt>&#91;</tt> and <tt>&#93;</tt> instead. | String | optional |
Displayed name | 2 | Optional displayed link text. | String | optional |
See also
- {{Wikisource-inline}} inline version
- {{Wikisourcehas}} for allowing the including editor to choose the wording
- {{Wikisource-multi}} for linking to multiple pages on Wikisource
- {{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