Template:Wikisource author-inline/doc

From English Wikipedia @ Freddythechick

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

Usage

For adding inline to "External links" listing.

Standard usage

In most cases it will be used without parameters At William Shakespeare <syntaxhighlight lang="wikitext">Wikisource logo Works by or about [[:s:|]] at Wikisource</syntaxhighlight> produces:

Wikisource logo Works by or about William Shakespeare at Wikisource


With "list" parameter

The template can also be used to produce a list of works by a particular author:

At William Shakespeare <syntaxhighlight lang="wikitext">Wikisource logo Works by or about [[:s:|]] on Wikisource:

  • [[s:All's Well That Ends Well|]] – 1598
  • [[s:As You Like It|]] – 1598</syntaxhighlight>

produces:

Wikisource logo Works by or about William Shakespeare on Wikisource:


Overriding parameters

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.

<syntaxhighlight lang="wikitext">Wikisource logo Works by or about Alice Gomme at Wikisource</syntaxhighlight>

produces:

Wikisource logo Works by or about Alice Gomme at Wikisource

"list" parameter can be applied with override parameters though that would be an unusual usage.


See also


Maintenance

Templates applied to articles without Wikidata items will be listed in Category:Wikisource templates with missing id.