Difference between revisions of "Template:LoM2/doc"

From blackwiki
Jump to navigation Jump to search
imported>Maky
(→‎Usage: fix link)
imported>Maky
(update doc)
Line 13: Line 13:
 
|pages=
 
|pages=
 
|page=
 
|page=
|harv
 
 
}}</pre>
 
}}</pre>
 
|
 
|
Line 19: Line 18:
 
*'''page''': (<u>Optional</u>)—The single page where the citation is found within the printed book. (e.g. 23)
 
*'''page''': (<u>Optional</u>)—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.
 
::'''Note:''' Please use either ''pages'' or ''page'', but not both.
*'''harv''': (<u>Optional</u>)—This sets the parameter "|ref=harv" in the citation for linking from notes.
 
 
|}
 
|}
  
Line 53: Line 51:
  
 
=====Example 3=====
 
=====Example 3=====
In a large article that uses many individual page references to LoM2, 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:LoM2 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:LoM2 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|LoM2 Sfn}} or {{tl|LoM2 Harvnb}}The two are very similar, although the advantage of using {{tl|LoM2 Sfn}} over {{tl|LoM2 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:LoM2 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.{{LoM2 Sfn | page = 22}}  There
 +
were also 3 kinds of giant eagles and 8 kinds
 +
of elephant bird on the island up until
 +
recently.{{LoM2 Sfn | page = 22}}
  
<pre>
+
The introduced tree ''Leucaena leucocephala''
<nowiki>
+
causes hair loss in ring-tailed
<ref name="LoM2_23">{{LoM2 Harvnb | page = 23}}</ref>
+
lemurs.{{LoM2 Sfn | pages = 368–375}}
</nowiki>
+
 
 +
First documented by sailors before the 17th
 +
century, intensive studies of lemur behavior
 +
did not begin until the
 +
1960s.{{LoM2 Sfn | loc = chapter 4}}
 +
 
 +
== Notes ==
 +
{{reflist}}
 +
 
 +
== References ==
 +
* {{LoM3 | harv}}
 
</pre>
 
</pre>
 +
|At least 17 giant lemurs used to live on Madagascar.{{LoM2 Sfn | page = 22}} There were also 3 kinds of giant eagles and 8 kinds of elephant bird on the island up until recently.{{LoM2 Sfn | page = 22}}
  
<pre>
+
The introduced tree ''Leucaena leucocephala'' causes hair loss in ring-tailed lemurs.{{LoM2 Sfn | pages = 368–375}}
<nowiki>
+
 
<ref name="LoM2_237-249">{{LoM2 Harvnb | pages = 237–249}}</ref>
+
First documented by sailors before the 17th century, intensive studies of lemur behavior did not begin until the 1960s.{{LoM2 Sfn | loc = chapter 4}}
</nowiki>
+
 
</pre>
+
{{fake notes and references||}}
 +
* {{cite book
 +
| title = [[Lemurs of Madagascar (book)|Lemurs of Madagascar]]
 +
| last1 = Mittermeier
 +
| first1 = R.A.
 +
| last2 = Konstant
 +
| first2 = W.R.
 +
| last3 = Hawkins
 +
| first3 = F.
 +
| last4 = Louis
 +
| first4 = E.E.
 +
| last5 = Langrand
 +
| first5 = O.
 +
| last6 = Ratsimbazafy
 +
| first6 = J.
 +
| last7 = Rasoloarison
 +
| first7 = R.
 +
| last8 = Ganzhorn
 +
| first8 = J.U.
 +
| last9 = Rajaobelina
 +
| first9 = S.
 +
| last10 = Tattersall
 +
| first10 = I.
 +
| last11 = Meyers
 +
| first11 = D.M.
 +
| authorlink1 = Russell Mittermeier
 +
| others = Illustrated by S.D. Nash
 +
| edition = 2nd
 +
| year = 2006
 +
| publisher = [[Conservation International]]
 +
| isbn = 1-881173-88-7
 +
| ref = harv
 +
}}
 +
|-<!-------------------------------------------------------------------------------------------------------->
 +
|<pre>At least 17 giant lemurs used to live
 +
on Madagascar.<ref name=LoM_p22>{{LoM2 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>{{LoM2 Harvnb | pages = 368–375}}</ref>
  
<pre>
+
First documented by sailors before the 17th
<nowiki>
+
century, intensive studies of lemur behavior
<ref name="LoM2_Ch4">{{LoM2 Harvnb | loc = chapter 4}}</ref>
+
did not begin until the
</nowiki>
+
1960s.<ref name=LoM2_Ch4>{{LoM3 Harvnb |  
</pre>
+
loc = chapter 4}}</ref>
  
When listing the book somewhere in the ''References'', use the following:
+
== Notes ==
 +
{{reflist}}
  
<pre>
+
== References ==
<nowiki>
+
* {{LoM2}}
{{LoM2 | harv}}
 
</nowiki>
 
 
</pre>
 
</pre>
 +
|At least 17 giant lemurs used to live on Madagascar.<ref name=LoM_p22>{{LoM2 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>{{LoM2 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=LoM2_Ch4>{{LoM2 Harvnb | loc = chapter 4}}</ref>
:# {{LoM2 Harvnb | page = 23}}
 
:# {{LoM2 Harvnb | pages = 237–249}}
 
:# {{LoM2 Harvnb | loc = chapter 4}}
 
  
:;Books cited
+
{{fake notes and references||}}
:* {{LoM2 | harv}}
+
* {{cite book
 +
| title = [[Lemurs of Madagascar (book)|Lemurs of Madagascar]]
 +
| last1 = Mittermeier
 +
| first1 = R.A.
 +
| last2 = Konstant
 +
| first2 = W.R.
 +
| last3 = Hawkins
 +
| first3 = F.
 +
| last4 = Louis
 +
| first4 = E.E.
 +
| last5 = Langrand
 +
| first5 = O.
 +
| last6 = Ratsimbazafy
 +
| first6 = J.
 +
| last7 = Rasoloarison
 +
| first7 = R.
 +
| last8 = Ganzhorn
 +
| first8 = J.U.
 +
| last9 = Rajaobelina
 +
| first9 = S.
 +
| last10 = Tattersall
 +
| first10 = I.
 +
| last11 = Meyers
 +
| first11 = D.M.
 +
| authorlink1 = Russell Mittermeier
 +
| others = Illustrated by S.D. Nash
 +
| edition = 2nd
 +
| year = 2006
 +
| publisher = [[Conservation International]]
 +
| isbn = 1-881173-88-7
 +
| ref = harv
 +
}}
 +
|}
  
 
=== See also ===
 
=== See also ===
 +
*[[Template:LoM2 Sfn]]
 
*[[Template:LoM2 Harvnb]]
 
*[[Template:LoM2 Harvnb]]
 
*[[Template:LoM3]]
 
*[[Template:LoM3]]
 +
*[[Template:Lom3 Sfn]]
 
*[[Template:LoM3 Harvnb]]
 
*[[Template:LoM3 Harvnb]]
 
*[[Template:LoM1]]
 
*[[Template:LoM1]]

Revision as of 05:52, 17 February 2011


Usage

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

Parameters

{{LoM2
|pages=
|page=
}}
  • pages: (Optional)—The page range where the citation is found within the printed book. (e.g. 237–249)
  • 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.

Examples

Example 1

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


{{LoM2 | page = 23}}

This yields:

Mittermeier, R.A.; Konstant, W.R.; Hawkins, F.; Louis, E.E.; et al. (2006). Lemurs of Madagascar. Illustrated by S.D. Nash (2nd ed.). Conservation International. p. 23. ISBN 1-881173-88-7. OCLC 883321520.


Example 2

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


{{LoM2 | pages = 237–249}}

This yields:

Mittermeier, R.A.; Konstant, W.R.; Hawkins, F.; Louis, E.E.; et al. (2006). Lemurs of Madagascar. Illustrated by S.D. Nash (2nd ed.). Conservation International. pp. 237–249. ISBN 1-881173-88-7. OCLC 883321520.


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 {{LoM2 Sfn}} or {{LoM2 Harvnb}}. The two are very similar, although the advantage of using {{LoM2 Sfn}} over {{LoM2 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.{{LoM2 Sfn | page = 22}}  There 
were also 3 kinds of giant eagles and 8 kinds 
of elephant bird on the island up until 
recently.{{LoM2 Sfn | page = 22}}

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

First documented by sailors before the 17th 
century, intensive studies of lemur behavior 
did not begin until the 
1960s.{{LoM2 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>{{LoM2 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>{{LoM2 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=LoM2_Ch4>{{LoM3 Harvnb | 
loc = chapter 4}}</ref>

== Notes ==
{{reflist}}

== References ==
* {{LoM2}}
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