Difference between revisions of "Template:EOL/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
(→‎Usage: update to https)
imported>Jonesey95
(update to https)
 
Line 6: Line 6:
  
 
==Usage==
 
==Usage==
# Search on [http://www.eol.org/ eol.org] for the subject you want.
+
# Search on [https://www.eol.org/ eol.org] for the subject you want.
 
# Click on the correct link to go to the subject's page.
 
# Click on the correct link to go to the subject's page.
 
# The page [[URL]] should look like <nowiki>https://www.eol.org/pages/#######</nowiki>, where "#######" indicates a number.
 
# The page [[URL]] should look like <nowiki>https://www.eol.org/pages/#######</nowiki>, where "#######" indicates a number.
Line 21: Line 21:
  
 
==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: https://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>
Line 38: Line 38:
 
"label": "Page ID number",
 
"label": "Page ID number",
 
"aliases": [ "id" ],
 
"aliases": [ "id" ],
"description": "The page number found in the URL http://www.eol.org/pages/<number>/",
+
"description": "The page number found in the URL https://www.eol.org/pages/<number>/",
 
"type": "number",
 
"type": "number",
 
"default": "",
 
"default": "",

Latest revision as of 13:24, 11 April 2020

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 https://www.eol.org/pages/#######, where "#######" indicates a number.
  4. Copy ONLY that number
  5. Add that 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: https://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 ID number1 id

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

Default
Numberoptional
Page name/title2 name

The title of the EOL webpage

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories