Difference between revisions of "Template:EOL/doc"
Jump to navigation
Jump to search
imported>Pigsonthewing (ce) |
imported>Jonesey95 (update to https) |
||
| (12 intermediate revisions by 7 users not shown) | |||
| 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}} | ||
| + | {{Tracks Wikidata|P830}} | ||
| + | {{Lua|Module:EditAtWikidata|Module:WikidataCheck}} | ||
==Usage== | ==Usage== | ||
| − | # Search on [ | + | # 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> | + | # The page [[URL]] should look like <nowiki>https://www.eol.org/pages/#######</nowiki>, where "#######" indicates a number. |
# Copy ONLY that number | # Copy ONLY that number | ||
| − | # Add | + | # Add that number to the corresponding Wikidata item, using {{Wikidata entity|P830}}. |
# Add to the external links section the text: | # Add to the external links section the text: | ||
:<nowiki>* {{EOL}}</nowiki> | :<nowiki>* {{EOL}}</nowiki> | ||
| Line 14: | Line 17: | ||
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: | + | # 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> |
The result on the page [[Nicrophorus americanus]] is: | The result on the page [[Nicrophorus americanus]] is: | ||
| − | ::{{ | + | :: {{ {{replace|{{PAGENAME}}|/doc|}} |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 == | ||
| + | {{TemplateData header}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| Line 31: | Line 36: | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
| − | "label": "Page number", | + | "label": "Page ID number", |
| − | "description": "The page number found in the URL | + | "aliases": [ "id" ], |
| + | "description": "The page number found in the URL https://www.eol.org/pages/<number>/", | ||
"type": "number", | "type": "number", | ||
"default": "", | "default": "", | ||
"required": false}, | "required": false}, | ||
"2": { | "2": { | ||
| − | "label": "Page title", | + | "label": "Page name/title", |
| + | "aliases": [ "name" ], | ||
"description": "The title of the EOL webpage", | "description": "The title of the EOL webpage", | ||
"type": "string", | "type": "string", | ||
| − | "default": "{{ | + | "default": "{{PAGENAMEBASE}}", |
"required": false} | "required": false} | ||
} | } | ||
| Line 46: | Line 53: | ||
</templatedata> | </templatedata> | ||
| − | <includeonly> | + | ==Tracking categories== |
| + | * {{clc|Encyclopedia of Life ID not in Wikidata}} | ||
| + | * {{clc|Encyclopedia of Life ID different from Wikidata}} | ||
| + | * {{clc|Encyclopedia of Life ID same as Wikidata}} | ||
| + | * {{clc|EOL template missing ID}} | ||
| + | |||
| + | <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: | + | [[Category:Botany external link templates]] |
| − | [[ | + | [[Category:External link templates using Wikidata]] |
| − | </includeonly> | + | [[Category:Templates that add a tracking category]] |
| + | }}</includeonly> | ||
Latest revision as of 13:24, 11 April 2020
| 40px | This is a documentation subpage for Template:EOL. It contains usage information, categories and other content that is not part of the original template page. |
Template:Uses Wikidata Template:Tracks Wikidata
| File:Lua-Logo.svg | This template uses Lua: |
Usage
- Search on eol.org for the subject you want.
- Click on the correct link to go to the subject's page.
- The page URL should look like https://www.eol.org/pages/#######, where "#######" indicates a number.
- Copy ONLY that number
- Add that number to the corresponding Wikidata item, using Template:Wikidata entity.
- 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
- 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:
- {{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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Page ID number | 1 id | The page number found in the URL https://www.eol.org/pages/<number>/
| Number | optional |
| Page name/title | 2 name | The title of the EOL webpage
| String | optional |
Tracking categories
- Category:Encyclopedia of Life ID not in Wikidata (0)
- Category:Encyclopedia of Life ID different from Wikidata (0)
- Category:Encyclopedia of Life ID same as Wikidata (0)
- Category:EOL template missing ID (0)