Difference between revisions of "Template:EOL/doc"

From blackwiki
Jump to navigation Jump to search
imported>Pigsonthewing
(+)
imported>Zyxw
(add links to tracking categories, add {{TemplateDataHeader}})
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
{{Uses Wikidata|P830}}
 
{{Uses Wikidata|P830}}
 
+
{{Tracks Wikidata|P830}}
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE. -->
 
  
 
==Usage==
 
==Usage==
Line 16: Line 16:
  
 
Add to the external links section the text:
 
Add to the external links section the text:
:<nowiki>* {{EOL|#######|label}}</nowiki>
+
: <nowiki>* {{EOL|#######|label}}</nowiki>
:where "#######" is the number you've copied, and "label" is the full title of the EOL article, for example: ''Pogonomyrmex anergismus''
+
: where "#######" is the number you've copied, and "label" is the full title of the EOL article, for example: ''Pogonomyrmex anergismus''
  
 
==Example==
 
==Example==
#Search for ''Nicrophorus americanus'' on eol.org. You'll get to this page: http://www.eol.org/pages/1044544
+
# Search for ''Nicrophorus americanus'' on eol.org. You'll get to this page: http://www.eol.org/pages/1044544
#Copy "1044544" and add this number as the first parameter, then copy "Nicrophorus americanus" and add it as the second parameter:
+
# Copy "1044544" and add this number as the first parameter, then copy "Nicrophorus americanus" and add it as the second parameter:
::<nowiki>{{EOL|1044544|Nicrophorus americanus}}</nowiki>
+
:: <nowiki>{{EOL|1044544|Nicrophorus americanus}}</nowiki>
 
The result on the page [[Nicrophorus americanus]] is:
 
The result on the page [[Nicrophorus americanus]] is:
::{{EOL|1044544|Nicrophorus americanus}}
+
:: {{EOL|1044544|Nicrophorus americanus}}
  
 
Typically this is a list item in the external links section (even if there is only one link), so you should add "*" in front.
 
Typically this is a list item in the external links section (even if there is only one link), so you should add "*" in front.
  
 +
== TemplateData ==
 +
{{TemplateDataHeader}}
 
<templatedata>
 
<templatedata>
 
{
 
{
Line 48: Line 50:
 
</templatedata>
 
</templatedata>
  
<includeonly>
+
==Tracking categories==
 +
* [[:Category:Encyclopedia of Life ID not in Wikidata]] ({{PAGESINCAT:Encyclopedia of Life ID not in Wikidata}} pages)
 +
* [[:Category:Encyclopedia of Life ID different from Wikidata]] ({{PAGESINCAT:Encyclopedia of Life ID different from Wikidata}} pages)
 +
* [[:Category:Encyclopedia of Life ID same as Wikidata]] ({{PAGESINCAT:Encyclopedia of Life ID same as Wikidata}} pages)
 +
* [[:Category:EOL template with no id set]] (exists in template, not created)
 +
 
 +
<includeonly>{{sandbox other||
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Encyclopedia external link templates]]
 
[[Category:Encyclopedia external link templates]]
 
[[Category:Biology external link templates]]
 
[[Category:Biology external link templates]]
 
[[Category:Flora external link templates]]
 
[[Category:Flora external link templates]]
[[or:ଛାଞ୍ଚ:EOL]]
+
[[Category:Templates that add a tracking category]]
</includeonly>
+
}}</includeonly>

Revision as of 14:33, 20 October 2016

Template:Uses Wikidata Template:Tracks Wikidata

Usage

  1. Search on eol.org for the subject you want.
  2. Click on the correct link to go to the subject's page.
  3. The page URL should look like http://www.eol.org/pages/#######, where "#######" indicates a number.
  4. Copy ONLY that number
  5. Add thet number to the corresponding Wikidata item, using Template:Wikidata entity.
  6. Add to the external links section the text:
* {{EOL}}

Alternatively:

Add to the external links section the text:

* {{EOL|#######|label}}
where "#######" is the number you've copied, and "label" is the full title of the EOL article, for example: Pogonomyrmex anergismus

Example

  1. Search for Nicrophorus americanus on eol.org. You'll get to this page: http://www.eol.org/pages/1044544
  2. Copy "1044544" and add this number as the first parameter, then copy "Nicrophorus americanus" and add it as the second parameter:
{{EOL|1044544|Nicrophorus americanus}}

The result on the page Nicrophorus americanus is:

"Nicrophorus americanus" at the Encyclopedia of LifeScript error: No such module "EditAtWikidata".Template:WikidataCheck

Typically this is a list item in the external links section (even if there is only one link), so you should add "*" in front.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for EOL

Quickly link to resources on EOL.org

Template parameters

ParameterDescriptionTypeStatus
Page number1

The page number found in the URL http://www.eol.org/pages/<number>/

Default
Numberoptional
Page title2

The title of the EOL webpage

Default
{{PAGENAME}}
Stringoptional

Tracking categories