Difference between revisions of "Template:LoM3/doc"

From blackwiki
Jump to navigation Jump to search
imported>Maky
(→‎See also: add template link)
imported>Maky
(→‎Example 3: adjust examples)
Line 53: Line 53:
  
 
=====Example 3=====
 
=====Example 3=====
In a large article that uses many individual page references to LoM3, such as the article [[Lemur]], do not use the ''page'' or ''pages'' parameter, but instead use the ''harv'' parameter to allow linking from note references.  This is used in conjunction with [[Template:LoM3 Harvnb]]In the text of the article (or in the ''References'' section if using [[Help:Footnotes#List-defined references|list-defined references (LDR)]]), wrap [[Template:LoM3 Harvnb]] in a [[Template:Ref|ref tag]].  In the ''Books cited'' or similar section, use this template with the "harv" parameter.
+
In a large article that uses many individual page references to LoM3, such as the article [[Lemur]], do not use the ''page'' or ''pages'' parameter, but instead use short [[WP:Harvard reference|author-date citation]] in a footnotes and the ''harv'' parameter to allow linking from footnote to the full reference.  This is done by using this template in conjunction with either {{tl|LoM3 Sfn}} or {{tl|LoM3 Harvnb}}The two are very similar, although the advantage of using {{tl|LoM3 Sfn}} over {{tl|LoM3 Harvnb}} is that no reference tags are needed, and multiple Sfn templates using the same page/location tags will automatically be consolidated in the references section.
  
For example, the [[Template:LoM3 Harvnb]] will create a reference that will link to the full citation created by this template.
+
{| class="wikitable"
 +
|-
 +
! width=400 | Markup !! width = 300 | Result
 +
|-<!-------------------------------------------------------------------------------------------------------->
 +
|<pre>At least 17 giant lemurs used to live
 +
on Madagascar.{{LoM3 Sfn | page = 22}}  There
 +
were also 3 kinds of giant eagles and 8 kinds
 +
of elephant bird on the island up until
 +
recently.{{LoM3 Sfn | page = 22}}
  
<pre>
+
The introduced tree ''Leucaena leucocephala''
<nowiki>
+
causes hair loss in ring-tailed
<ref name="LoM3_23">{{LoM3 Harvnb | page = 23}}</ref>
+
lemurs.{{LoM3 Sfn | pages = 368–375}}
</nowiki>
+
 
 +
First documented by sailors before the 17th
 +
century, intensive studies of lemur behavior
 +
did not begin until the
 +
1960s.{{LoM3 Sfn | loc = chapter 4}}
 +
 
 +
== Notes ==
 +
{{reflist}}
 +
 
 +
== References ==
 +
* {{LoM3 | harv}}
 
</pre>
 
</pre>
 +
|At least 17 giant lemurs used to live on Madagascar.{{LoM3 Sfn | page = 22}} There were also 3 kinds of giant eagles and 8 kinds of elephant bird on the island up until recently.{{LoM3 Sfn | page = 22}}
 +
 +
The introduced tree ''Leucaena leucocephala'' causes hair loss in ring-tailed lemurs.{{LoM3 Sfn | pages = 368–375}}
 +
 +
First documented by sailors before the 17th century, intensive studies of lemur behavior did not begin until the 1960s.{{LoM3 Sfn | loc = chapter 4}}
 +
 +
{{fake notes and references||}}
 +
* {{cite book
 +
| title = [[Lemurs of Madagascar (book)|Lemurs of Madagascar]]
 +
| last1 = Mittermeier
 +
| first1 = R.A.
 +
| last2 = Louis
 +
| first2 = E.E.
 +
| last3 = Richardson
 +
| first3 = M.
 +
| last4 = Schwitzer
 +
| first4 = C.
 +
| last5 = Langrand
 +
| first5 = O.
 +
| last6 = Rylands
 +
| first6 = A.B.
 +
| last7 = Hawkins
 +
| first7 = F.
 +
| last8 = Rajaobelina
 +
| first8 = S.
 +
| last9 = Ratsimbazafy
 +
| first9 = J.
 +
| authorlink1 = Russell Mittermeier
 +
| others = Illustrated by S.D. Nash
 +
| edition = 3rd
 +
| year = 2010
 +
| publisher = [[Conservation International]]
 +
| isbn = 978-1-934151-23-5
 +
| ref = harv
 +
}}
 +
|-<!-------------------------------------------------------------------------------------------------------->
 +
|<pre>At least 17 giant lemurs used to live
 +
on Madagascar.<ref name=LoM_p22>{{LoM3 Harvnb
 +
| page = 22}}</ref>  There were also 3 kinds
 +
of giant eagles and 8 kinds of elephant bird
 +
on the island up until recently.<ref name=LoM_p22/>
  
<pre>
+
The introduced tree ''Leucaena leucocephala''
<nowiki>
+
causes hair loss in ring-tailed
<ref name="LoM3_368–375">{{LoM3 Harvnb | pages = 368–375}}</ref>
+
lemurs.<ref>{{LoM3 Harvnb | pages = 368–375}}</ref>
</nowiki>
 
</pre>
 
  
<pre>
+
First documented by sailors before the 17th
<nowiki>
+
century, intensive studies of lemur behavior
<ref name="LoM3_Ch4">{{LoM3 Harvnb | loc = chapter 4}}</ref>
+
did not begin until the
</nowiki>
+
1960s.<ref name=LoM3_Ch4>{{LoM3 Harvnb |  
</pre>
+
loc = chapter 4}}</ref>
  
When listing the book somewhere in the ''References'', use the following:
+
== Notes ==
 +
{{reflist}}
  
<pre>
+
== References ==
<nowiki>
+
* {{LoM3}}
{{LoM3 | harv}}
 
</nowiki>
 
 
</pre>
 
</pre>
 +
|At least 17 giant lemurs used to live on Madagascar.<ref name=LoM_p22>{{LoM3 Harvnb | page = 22}}</ref> There were also 3 kinds of giant eagles and 8 kinds of elephant bird on the island up until recently.<ref name=LoM_p22/>
  
If used properly with reference tags, this yields:
+
The introduced tree ''Leucaena leucocephala'' causes hair loss in ring-tailed lemurs.<ref>{{LoM3 Harvnb | pages = 368–375}}</ref>
  
:'''<big>References</big>'''<br>
+
First documented by sailors before the 17th century, intensive studies of lemur behavior did not begin until the 1960s.<ref name=LoM3_Ch4>{{LoM3 Harvnb | loc = chapter 4}}</ref>
:# {{LoM3 Harvnb | page = 23}}
 
:# {{LoM3 Harvnb | pages = 368–375}}
 
:# {{LoM3 Harvnb | loc = chapter 4}}
 
  
:;Books cited
+
{{fake notes and references||}}
:* {{LoM3 | harv}}
+
* {{cite book
 +
| title = [[Lemurs of Madagascar (book)|Lemurs of Madagascar]]
 +
| last1 = Mittermeier
 +
| first1 = R.A.
 +
| last2 = Louis
 +
| first2 = E.E.
 +
| last3 = Richardson
 +
| first3 = M.
 +
| last4 = Schwitzer
 +
| first4 = C.
 +
| last5 = Langrand
 +
| first5 = O.
 +
| last6 = Rylands
 +
| first6 = A.B.
 +
| last7 = Hawkins
 +
| first7 = F.
 +
| last8 = Rajaobelina
 +
| first8 = S.
 +
| last9 = Ratsimbazafy
 +
| first9 = J.
 +
| authorlink1 = Russell Mittermeier
 +
| others = Illustrated by S.D. Nash
 +
| edition = 3rd
 +
| year = 2010
 +
| publisher = [[Conservation International]]
 +
| isbn = 978-1-934151-23-5
 +
| ref = harv
 +
}}
 +
|}
  
 
=== See also ===
 
=== See also ===

Revision as of 20:48, 30 January 2011


Usage

This template is used to generate a citation to any part of the 3rd edition of Lemurs of Madagascar (LoM3), illustrated by Stephen D. Nash and written by Russell Mittermeier, et al.

Parameters

{{LoM3
|pages=
|page=
|harv
}}
  • pages: (Optional)—The page range where the citation is found within the printed book. (e.g. 368–375)
  • page: (Optional)—The single page where the citation is found within the printed book. (e.g. 23)
Note: Please use either pages or page, but not both.
  • harv: (Optional)—This sets the parameter "|ref=harv" in the citation for linking from notes.

Examples

Example 1

In an article that uses only one individual page references to LoM3, use only the page parameter as follow:


{{LoM3 | page = 23}}

This yields:

Mittermeier, R.A.; Louis, E.E.; Richardson, M.; Schwitzer, C.; et al. (2010). Lemurs of Madagascar. Illustrated by S.D. Nash (3rd ed.). Conservation International. p. 23. ISBN 978-1-934151-23-5. OCLC 670545286.


Example 2

In an article that references a page range within LoM3, such as an entire section on the Ring-tailed Lemur, use only the pages parameter as follow:


{{LoM3 | pages = 368–375}}

This yields:

Mittermeier, R.A.; Louis, E.E.; Richardson, M.; Schwitzer, C.; et al. (2010). Lemurs of Madagascar. Illustrated by S.D. Nash (3rd ed.). Conservation International. pp. 368–375. ISBN 978-1-934151-23-5. OCLC 670545286.


Example 3

In a large article that uses many individual page references to LoM3, such as the article Lemur, do not use the page or pages parameter, but instead use short author-date citation in a footnotes and the harv parameter to allow linking from footnote to the full reference. This is done by using this template in conjunction with either {{LoM3 Sfn}} or {{LoM3 Harvnb}}. The two are very similar, although the advantage of using {{LoM3 Sfn}} over {{LoM3 Harvnb}} is that no reference tags are needed, and multiple Sfn templates using the same page/location tags will automatically be consolidated in the references section.

Markup Result
At least 17 giant lemurs used to live 
on Madagascar.{{LoM3 Sfn | page = 22}}  There 
were also 3 kinds of giant eagles and 8 kinds 
of elephant bird on the island up until 
recently.{{LoM3 Sfn | page = 22}}

The introduced tree ''Leucaena leucocephala'' 
causes hair loss in ring-tailed 
lemurs.{{LoM3 Sfn | pages = 368–375}}

First documented by sailors before the 17th 
century, intensive studies of lemur behavior 
did not begin until the 
1960s.{{LoM3 Sfn | loc = chapter 4}}

== Notes ==
{{reflist}}

== References ==
* {{LoM3 | harv}}
At least 17 giant lemurs used to live on Madagascar.[1] There were also 3 kinds of giant eagles and 8 kinds of elephant bird on the island up until recently.[1]

The introduced tree Leucaena leucocephala causes hair loss in ring-tailed lemurs.[2]

First documented by sailors before the 17th century, intensive studies of lemur behavior did not begin until the 1960s.[3]


Notes
References
At least 17 giant lemurs used to live 
on Madagascar.<ref name=LoM_p22>{{LoM3 Harvnb
 | page = 22}}</ref>  There were also 3 kinds 
of giant eagles and 8 kinds of elephant bird 
on the island up until recently.<ref name=LoM_p22/>

The introduced tree ''Leucaena leucocephala'' 
causes hair loss in ring-tailed 
lemurs.<ref>{{LoM3 Harvnb | pages = 368–375}}</ref>

First documented by sailors before the 17th 
century, intensive studies of lemur behavior 
did not begin until the 
1960s.<ref name=LoM3_Ch4>{{LoM3 Harvnb | 
loc = chapter 4}}</ref>

== Notes ==
{{reflist}}

== References ==
* {{LoM3}}
At least 17 giant lemurs used to live on Madagascar.[1] There were also 3 kinds of giant eagles and 8 kinds of elephant bird on the island up until recently.[1]

The introduced tree Leucaena leucocephala causes hair loss in ring-tailed lemurs.[2]

First documented by sailors before the 17th century, intensive studies of lemur behavior did not begin until the 1960s.[3]


Notes
References

See also