Difference between revisions of "Template:LepIndex/doc"

From blackwiki
Jump to navigation Jump to search
imported>SchreiberBike
(→‎No parameters: Copy edits)
imported>Zyxw
m (module note)
Line 4: Line 4:
 
{{Uses Wikidata|P3064}}
 
{{Uses Wikidata|P3064}}
 
{{Tracks Wikidata|P3064}}
 
{{Tracks Wikidata|P3064}}
 +
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
  
 
== Usage ==
 
== Usage ==
Line 42: Line 43:
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Biology external link templates]]
 
[[Category:Biology external link templates]]
 +
[[Category:External link templates using Wikidata]]
 
[[Category:Templates that add a tracking category]]
 
[[Category:Templates that add a tracking category]]
[[Category:External link templates using Wikidata]]
 
 
[[Category:Templates that wrap Cite web]]
 
[[Category:Templates that wrap Cite web]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 05:58, 10 May 2019

Template:Uses Wikidata Template:Tracks Wikidata

Usage

No parameters

Use:

{{LepIndex}}
and the template will pull the ID from Wikidata (if present there) and extract the link text from the page name, less any text in parenthesis.

With parameters

Use:

|id=
Optional - not required if the LepIndex ID associated with the page on Wikidata is the same as that used by LepIndex
Example {{LepIndex |id=31468}} gives
Beccaloni, G.; Scoble, M.; Kitching, I.; Simonsen, T.; Robinson, G.; Pitkin, B.; Hine, A.; Lyal, C., eds. (2003). "[[:Template:PAGENAMEBASE]]". The Global Lepidoptera Names Index. Natural History Museum. URL–wikilink conflict (help)Script error: No such module "EditAtWikidata". Template:WikidataCheck

Use:

|name=
Optional - not required if the page name is the same as the "Current Comb:" at LepIndex
Example {{LepIndex |id=31468 |name=Dasysphinx rubrilatera}} gives
Beccaloni, G.; Scoble, M.; Kitching, I.; Simonsen, T.; Robinson, G.; Pitkin, B.; Hine, A.; Lyal, C., eds. (2003). "Dasysphinx rubrilatera". The Global Lepidoptera Names Index. Natural History Museum.Script error: No such module "EditAtWikidata". Template:WikidataCheck
Example {{LepIndex |id=36290 |name=Asura mimetica'' ssp. ''flagrans}} prevents the text "ssp." from being in italics.

Use:

|accessdate=
Optional
Example {{LepIndex |id=36289 |accessdate=April 26, 2018}}, on the page Asura mimetica, gives
Beccaloni, G.; Scoble, M.; Kitching, I.; Simonsen, T.; Robinson, G.; Pitkin, B.; Hine, A.; Lyal, C., eds. (2003). "Asura mimetica". The Global Lepidoptera Names Index. Natural History Museum. Retrieved April 26, 2018.Script error: No such module "EditAtWikidata". Template:WikidataCheck

Tracking categories