Difference between revisions of "Template:DictCanbio/doc"

From blackwiki
Jump to navigation Jump to search
imported>Big iron
(→‎Usage: expand a bit)
imported>PBS
 
Line 1: Line 1:
{{Documentation subpage}}
+
#Redirect [[Template:Cite DCB/doc]]
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
 
 
=== Usage ===
 
This template creates a "bulleted" link to a specified entry in the ''Dictionary of Canadian Biography Online''.
 
 
 
<nowiki>{{DictCanbio|ID=####}}</nowiki>
 
 
 
The ID parameter is derived from the "id_nbr" parameter of the articles URL.
 
 
 
For example, if the biography item for [[Richard Willis Jameson]] is located at this URL:
 
 
 
[http://www.biographi.ca/009004-119.01-e.php?&id_nbr=6182 http://www.biographi.ca/009004-119.01-e.php?&id_nbr='''6182''']
 
 
 
Then the ID parameter in this case is '''6182'''.
 
 
 
Set up the following template line for ID=6182:
 
 
 
:<nowiki>{{DictCanbio|ID=6182}}</nowiki>
 
 
 
which produces the following list-bulleted link item:
 
 
 
:{{DictCanbio|ID=6182}}
 
 
 
Note that any bracketed text will be removed from the article name that appears in the generated entry; for example, '''Peter Mitchell (politician)''' will appear as '''Peter Mitchell'''.
 
 
 
The optional name parameter should be used when the name of the biography is different from that of the wikipedia article, such as when the template us used in a reference to another person
 
 
 
:<nowiki>{{DictCanbio|ID=6186|name=John Jenkins}}</nowiki>
 
 
 
which produces the following link item:
 
 
 
:{{DictCanbio|ID=6186|name=John Jenkins}}
 
 
 
Bracketed text will not be removed from the name parameter value if it is specified.
 
 
 
=== See also ===
 
* {{tl|Canadabio}} - similar link, except it does not include a list bullet and is more suitable for inline inclusion such as references
 
 
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:People and person external link templates|{{PAGENAME}}]]
 
 
 
[[ko:틀:DictCanbio]]
 
</includeonly>
 

Latest revision as of 20:44, 9 January 2012