Difference between revisions of "Template:Macdonald Dictionary"

From blackwiki
Jump to navigation Jump to search
imported>Schwede66
(change default URL)
imported>Trappist the monk
m (support hyphenated parameter names;)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
 
-->{{#if: {{{4|{{{plainlink|}}}}}}<!--
 
-->{{#if: {{{4|{{{plainlink|}}}}}}<!--
     -->| [https://collection.canterburymuseum.com/objects/{{{1|{{{id|}}}}}}&db=object {{{2|{{{title|}}}}}}]<!--
+
     -->| [https://collection.canterburymuseum.com/objects/{{{1|{{{id|}}}}}}]<!--
 
     -->|{{cite web<!--
 
     -->|{{cite web<!--
 
           -->|last=Macdonald<!--
 
           -->|last=Macdonald<!--
 
           -->|first=George<!--
 
           -->|first=George<!--
           -->|authorlink=George Macdonald (historian)<!--
+
           -->|author-link=George Macdonald (historian)<!--
 
           -->|title={{if empty|{{{2|{{{title|}}}}}}|{{PAGENAME}}}}<!--
 
           -->|title={{if empty|{{{2|{{{title|}}}}}}|{{PAGENAME}}}}<!--
           -->|url=https://collection.canterburymuseum.com/objects/{{{1|{{{id|}}}}}}&db=object<!--
+
           -->|url=https://collection.canterburymuseum.com/objects/{{{1|{{{id|}}}}}}<!--
 
           -->|publisher=[[Canterbury Museum, Christchurch|Canterbury Museum]]<!--
 
           -->|publisher=[[Canterbury Museum, Christchurch|Canterbury Museum]]<!--
           -->|accessdate={{{3|{{{accessdate|}}}}}}<!--
+
           -->|access-date={{{3|{{{access-date|{{{accessdate|}}}}}}}}}<!--
 
           -->|work=Macdonald Dictionary<!--
 
           -->|work=Macdonald Dictionary<!--
           -->|archiveurl={{{archiveurl|}}}<!--
+
           -->|archive-url={{{archive-url|{{{archiveurl|}}}}}}<!--
           -->|archivedate={{{archivedate|}}}<!--
+
           -->|archive-date={{{archive-date|{{{archivedate|}}}}}}<!--
 
     -->}}<!--
 
     -->}}<!--
 
-->}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
-->}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 23:37, 3 February 2021

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

Usage

This template creates a {{cite web}} reference to an entry in the Macdonald Dictionary, a resource with 22,000 entries created by the historian George Macdonald and held by Canterbury Museum.

{{Macdonald Dictionary|id|title|accessdate}}

Typical usage would be between <ref></ref> tags, with the code below suitable for copy and paste:

<ref name="MacD lastname">{{Macdonald Dictionary|id|title|9 November 2025}}</ref>

  1. id: Id in the URL, consisting of 6 digits
  2. title: Title of the dictionary entry
  3. accessdate: Date the Macdonald Dictionary entry was last verified to support the text in the Wikipedia article
  4. A plain link without cite web can be created with {{{1}}}.

Apart from id, all parameters are optional. title defaults to PAGENAME.

Example

The Macdonald Dictionary biography for Richard Molesworth Taylor is at https://collection.canterburymuseum.com/objects/123678. The id in the URL is '123678'. Accessing the biography today (UTC) would result in the following code:

<ref name="MacD Taylor">{{Macdonald Dictionary|123678|Richard Molesworth Taylor|9 November 2025}}</ref>

Alternatively, to create a plain link:[1]

<ref name="MacD Taylor2">{{Macdonald Dictionary|123678|Richard Molesworth Taylor| |y }}</ref>

This will give the following footnotes: