Difference between revisions of "Template:Macdonald Dictionary/doc"
imported>Schwede66 (updated for changed URLs) |
imported>Pauli133 m (fixing lint errors) |
||
| Line 5: | Line 5: | ||
This template creates a {{tl|cite web}} reference to an entry in the ''Macdonald Dictionary'', a resource with 22,000 entries created by the historian [[George Macdonald (historian)|George Macdonald]] and held by [[Canterbury Museum, Christchurch|Canterbury Museum]]. | This template creates a {{tl|cite web}} reference to an entry in the ''Macdonald Dictionary'', a resource with 22,000 entries created by the historian [[George Macdonald (historian)|George Macdonald]] and held by [[Canterbury Museum, Christchurch|Canterbury Museum]]. | ||
| − | + | {{mono|<nowiki>{{Macdonald Dictionary|id|title|accessdate}}</nowiki>}} | |
Typical usage would be between <nowiki><ref></ref></nowiki> tags, with the code below suitable for copy and paste: | Typical usage would be between <nowiki><ref></ref></nowiki> tags, with the code below suitable for copy and paste: | ||
| − | + | {{mono|<nowiki><ref name="MacD lastname">{{Macdonald Dictionary|id|title|</nowiki>{{date}}<nowiki>}}</ref></nowiki>}} | |
| − | # | + | #{{mono|<nowiki>id</nowiki>}}: Id in the URL, consisting of 6 digits |
| − | # | + | #{{mono|<nowiki>title</nowiki>}}: Title of the dictionary entry |
| − | # | + | #{{mono|<nowiki>accessdate</nowiki>}}: Date the Macdonald Dictionary entry was last verified to support the text in the Wikipedia article |
| − | #A plain link without cite web can be created with | + | #A plain link without cite web can be created with {{mono|plainlink=y}}. |
| − | Apart from id, all parameters are optional. | + | Apart from id, all parameters are optional. {{mono|title}} defaults to PAGENAME.<!-- The <code>archiveurl</code> and <code>archivedate</code> parameters of {{tl|cite web}} can also be used. --> |
=== Example === | === Example === | ||
| − | The Macdonald Dictionary biography for [[Richard Molesworth Taylor]] is at <nowiki>https://collection.canterburymuseum.com/objects/123678</nowiki>. The | + | The Macdonald Dictionary biography for [[Richard Molesworth Taylor]] is at <nowiki>https://collection.canterburymuseum.com/objects/123678</nowiki>. The {{mono|id}} in the URL is '123678'. Accessing the biography today ([[Coordinated Universal Time|UTC]]) would result in the following code: |
| − | + | {{mono|<nowiki><ref name="MacD Taylor">{{Macdonald Dictionary|123678|Richard Molesworth Taylor|</nowiki>{{date}}<nowiki>}}</ref></nowiki>}} | |
Alternatively, to create a plain link:<ref name="MacD Taylor2">{{Macdonald Dictionary|123678|Richard Molesworth Taylor| |y }}</ref> | Alternatively, to create a plain link:<ref name="MacD Taylor2">{{Macdonald Dictionary|123678|Richard Molesworth Taylor| |y }}</ref> | ||
| − | + | {{mono|<nowiki><ref name="MacD Taylor2">{{Macdonald Dictionary|123678|Richard Molesworth Taylor| |y }}</ref></nowiki>}} | |
This will give the following footnotes: | This will give the following footnotes: | ||
Revision as of 16:34, 8 January 2020
| This is a documentation subpage for Template:Macdonald Dictionary. It contains usage information, categories and other content that is not part of the original template page. |
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|12 January 2026}}</ref>
- id: Id in the URL, consisting of 6 digits
- title: Title of the dictionary entry
- accessdate: Date the Macdonald Dictionary entry was last verified to support the text in the Wikipedia article
- 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|12 January 2026}}</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: