Template:Wikisource author/doc
This is a documentation subpage for Template:Wikisource author. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 5,400 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. |
This template uses Lua: |
This template when used on an author's page will utilise interwiki links stored at Wikidata to create the link and the label to the author page at English Wikisource. A different language can be chosen by using the |lang=
parameter and the corresponding language code.
Usage
[edit]Wikisource title link via Wikidata Sitelink
[edit]Wikitext | Output | Notes |
---|---|---|
At William Shakespeare{{wikisource author}}
|
Placement of the template is usually after the "External links" section header prior to any inline list. Warning: Do not put an asterisk "*" at the start of the line or it will cause the box and text to be distorted. |
Wikisource title link via Parameter Argument
[edit]To note that parameters can still be utilised to override the presentation, though this would not be the preferred means as when a page is moved here or at Wikisource the link would be broken. An example of such usage would be adding an author link on an article that is a list of works of the author.
Wikitext | Output |
---|---|
At Alice Bertha Gomme {{wikisource author|wslink=Alice Bertha Gomme|title=Alice Gomme}}
|
"works by or about"
[edit]The default template text says "Wikisource has original works by or about [author]". This can be changed to "works by [author]", "works about [author]", or "works by and about [author]", by setting the |works=
parameter.
Wikitext | Output |
---|---|
At Joseph Hardman{{wikisource author|works=by}}
|
|
At Henry VII{{wikisource author|works=about}}
|
|
At William Shakespeare{{wikisource author|works=both}}
|
See also
[edit]- {{Wikisource author-inline}}
- d:Special:GoToLinkedPage/enwikisource, e.g., d:Special:GoToLinkedPage/enwikisource/Q692
Maintenance
[edit]Templates applied to articles without Wikidata items will be listed in Category:Wikisource templates with missing id.