Permanently protected template

Template:Authority/link

From Wikisource
Jump to navigation Jump to search

"[[{{{title}}}/{{{1}}}|{{{1}}}]]," in [[{{{title}}}]]


Documentation icon Template documentation[view] [edit] [history] [purge]


Usage

To create citation type link (link) templates for hosted works, especially on Author: pages.

It can be used directly for a link using the parameters that you require or it can be used to create another/derivative template for further use.

Direct

{{authority/link
 | title =  Catholic Encyclopedia  (1913)| title display = Catholic Encyclopedia
 | link = Roger Brooke Taney
 | year = 1913
 | contributor = J. P. W. McNeal
 | publisher = The Encyclopaedia Press
 | location = New York
 | editor = Charles G. Herbermann and others
}}

producing

Derivative template

When using the template to create another template (eg. {{CE link}} as in the above example) it takes either

  • hard values to be set, eg. title = title text here
  • parameters to be re-used, eg. if the work has article contributors then contributor = {{{contributor|}}}
  • values can be omitted, where not needed
{{authority/link
 | title =  Catholic Encyclopedia  (1913)| title display = Catholic Encyclopedia
 | link = {{{link|{{{1}}}}}}
 | year = 1913
 | contributor = {{{contributor|{{{author|}}}}}}
 | publisher = The Encyclopaedia Press
 | location = New York
 | editor = Charles G. Herbermann and others
}}

Noting that the derivative template can have alternative names for its parameters (right hand side of equation) rather than use the default parameter name.


Examples of other citation templates using this format


Templatedata

For creation of standard authority/work linking templates

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
title of worktitle

title of work

Example
The Maclise Portrait-Gallery
Stringrequired
title displaytitle display

override display of title with a variation (piping wikitext)

Stringoptional
target subpage of worklink1

target subpage of work, would usually be set as parameter for use in linking template

Default
{{{link|{{{1}}}}}}
Stringrequired
link displaylink display

override text displayed for the article

Stringoptional
authorauthor

author of work, no requirement for addition of namespace

Example
William Bates (1821-1884)
Stringsuggested
author displayauthor display

to override the display of the author field

Example
William Bates; where author link is "Author:William Bates (1821-1884), and need to display "William Bates"
Stringoptional
illustratorillustrator

where illustrator requires listing

Example
Daniel Maclise
Stringoptional
illustrator displayillustrator display

where required to override display of illustrator's name

Stringoptional
locationlocation

location of publisher

Example
London
Stringsuggested
publisherpublisher

publisher

Example
Chatto and Windus
Stringsuggested
yearyear

year this edition published

Example
1883
Datesuggested
editionedition

where an edition needs to be added to a link, and the citation

Example
see [[Template:Men of the Time link]]
Stringoptional
volumevolume

volume of work, to display in citation

Numberoptional
contributorcontributor

display contributor of article in link display — raw text, may require formatting

Stringoptional
editoreditor

editor(s) of work — raw text, may require formatting

Example
[[Author:Henry Wace|]] and [[Author:William C. Piercy|]]
Stringoptional
pp

start page (or only page) of article

Numberoptional
pppp

end page of article

Numberoptional
commentcomment

terminating comment

Example
in 9 vols.
Stringoptional