Difference between revisions of "Template:LepIndex/doc"

From blackwiki
Jump to navigation Jump to search
imported>SchreiberBike
(→‎With parameters: Make parameters more clear)
imported>Shyamal
Line 21: Line 21:
 
Use:
 
Use:
 
:<code><nowiki>|name= </nowiki></code>
 
:<code><nowiki>|name= </nowiki></code>
:Example <code><nowiki>{{LepIndex|id=31468|name=Dasysphinx rubrilatera}}</nowiki></code> gives {{LepIndex|id=31468|name=Dasysphinx rubrilatera}}
+
:Example <code><nowiki>{{LepIndex|id=31468|name=Dasysphinx rubrilatera}}</nowiki></code> gives {{LepIndex|id=31468|name=Dasysphinx rubrilatera}}. By default the value is the name of the page and thus it can be omitted if the template is used on the article titled ''Dasysphinx rubrilatera''.
  
 
==Tracking categories==
 
==Tracking categories==

Revision as of 10:42, 25 April 2018

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, minus an parenthetical disambiguation.

With parameters

Use:

|id=
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=
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. By default the value is the name of the page and thus it can be omitted if the template is used on the article titled Dasysphinx rubrilatera.

Tracking categories