Template:Wikisourcehas
Appearance
This template is currently being deleted. This template is being removed from the pages on which it is currently used, after which it will be deleted. Please check Wikipedia:Templates for discussion/Holding cell for any additional instructions. Please do not use it on any additional pages, but do not remove it from pages if it is under deletion review. The decision to delete this template was made following this discussion initiated on 5 July 2023 at Templates for discussion. Administrators: Please review this template's instructions at Wikipedia:Templates for discussion/Holding cell before proceeding with any action. |
Wikisource has original text related to this article:
Usage
[edit]This template can take two parameters:
- optional parameter which will replace the default text "original text related to this article".
- optional parameter which will replace the Wikipedia page name with another string, usually the page name on Wikisource.
{{Wikisourcehas|difference text|different [[page-name on Wikisource]] to that of the "page name on Wikipedia"}}
If only one parameter is passed in then the text will be altered, but the Wikisource page name will default to that of the Wikipedia article.
Examples
[edit]- Simplest version (only 2nd parameter is used):
- {{Wikisourcehas|2=[[s:Leaves of Grass/Book XVII|Leaves of Grass/Book XVII]]}}
- produces
Wikisource has original text related to this article:
- Using both parameters:
- {{Wikisourcehas|1=original text from ''Leaves of Grass''|2=[[s:Leaves of Grass/Book XVII|Book XVII]]}}
- produces
Wikisource has original text from Leaves of Grass:
- Using subsection on Wikisource:
- {{Wikisourcehas|1=a poem from ''Leaves of Grass'', called ''To You''|2=[[s:Leaves of Grass/Book XVII#To You|To You]]}}
- produces
Wikisource has a poem from Leaves of Grass, called To You:
- Using square brackets ("[" and "]"):
- Note how either "["/"]" or "%5B"/"%5D" have to be used depending on whether it's part of the text or part of the link.
- {{Wikisourcehas|1=a poem from ''Leaves of Grass'', called ''Year of Meteors [1859-60]''|2=[[s:Leaves of Grass/Book XVII#Year of Meteors %5B1859-60%5D|Year of Meteors [1859-60]]]}}
- produces
Wikisource has a poem from Leaves of Grass, called Year of Meteors [1859-60]:
Limitations
[edit]- Do not use square brackets ("[" and "]") in the second parameter. Use "["/"]" or "%5B"/"%5D" instead (depending on whether it's part of the text or part of the link). See one of the examples.
See also
[edit]- {{Wikisource}} for default text with optional page name parameter.
TemplateData
[edit]This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Wikisourcehas in articles based on its TemplateData.
TemplateData for Wikisourcehas
Creates a small box with a link to a document at Wikisource.
Parameter | Description | Type | Status | |
---|---|---|---|---|
replacement text | 1 | Replacement text instead of the default 'original text related to this article' | String | optional |
Displayed name | 2 | Optional displayed link text. | String | optional |