Jump to content

From Noumenapedia

Template:OL author/doc

__EXPECTED_UNCONNECTED_PAGE__


This template generates a link for browsing an author's works on Open Library.

Usage

One of:

  • {{OL author}}
  • {{OL author|id=id of the author as specified at openlibrary.org|cname=name to be displayed}}

The former fetches the ID from Wikidata and takes the name from the page name.

<syntaxhighlight lang="wikitext" inline style="display: none;" />|id= is the openlibrary id in the form ####A where #### is a series of one or more digits; do not include 'OL' prefix
<syntaxhighlight lang="wikitext" inline style="display: none;" />|cname= is an optional parameter for the name to be displayed – if omitted, uses page name

Examples

Code

{{OL author|21491A}}

Result

Works by OL author/doc at Open Library – no name provided so use page name

Code

{{OL author|id=21491A|cname=Jack Kerouac}}

Result

Works by Jack Kerouac at Open Library

Tracking categories

Template Data

<templatedata> { "params": { "id": { "label": "Author ID", "description": "The Open Library id in the form ####A where #### is a series of one or more digits; do not include 'OL' prefix", "example": "21491A", "type": "string", "required": true }, "cname": { "label": "Display name (optional)", "description": "An optional parameter for the name to be displayed – if omitted, uses page name.", "example": "Jack Kerouac", "type": "string" } }, "description": "This template generates a link for browsing an author's works on Open Library." } </templatedata>

See also