Difference between revisions of "Template:EOL/sandbox"
Jump to navigation
Jump to search
imported>Erutuon (current version of Template:EOL) |
imported>Erutuon (somewhat easier to read) |
||
Line 1: | Line 1: | ||
{{#if:{{{1<includeonly>|</includeonly>}}}{{{id|}}}{{#property:P830}} | {{#if:{{{1<includeonly>|</includeonly>}}}{{{id|}}}{{#property:P830}} | ||
− | |[http://www.eol.org/pages/{{Trim|{{{1|{{{id<includeonly>|{{#property:P830}}</includeonly>}}}}}}}} ''{{#if:{{{2|{{{name<includeonly>|</includeonly>}}}}}}|{{{2|{{{name}}}}}}|{{PAGENAMEBASE}}}}''] at the [[Encyclopedia of Life]]<includeonly>{{EditAtWikidata|pid=P830|{{{1|{{{id|}}}}}}}}{{WikidataCheck|property=P830|value={{{1|{{{id|}}}}}}|category=Encyclopedia of Life ID}}</includeonly> | + | | [http://www.eol.org/pages/{{Trim|{{{1|{{{id<includeonly>|{{#property:P830}}</includeonly>}}}}}}}} ''{{#if:{{{2|{{{name<includeonly>|</includeonly>}}}}}} |
− | |<span class="error">{{[[Template:EOL|EOL]]}} template missing ID and not present in Wikidata.</span>{{Main other|[[Category:EOL template missing ID]]}} | + | |{{{2|{{{name}}}}}} |
+ | |{{PAGENAMEBASE}} | ||
+ | }}''] at the [[Encyclopedia of Life]]<!-- | ||
+ | --><includeonly>{{EditAtWikidata|pid=P830|{{{1|{{{id|}}}}}}}}<!-- | ||
+ | -->{{WikidataCheck|property=P830|value={{{1|{{{id|}}}}}}|category=Encyclopedia of Life ID}}</includeonly> | ||
+ | |<span class="error">{{[[Template:EOL|EOL]]}} template missing ID and not present in Wikidata.</span><!-- | ||
+ | -->{{Main other|[[Category:EOL template missing ID]]}} | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 17:36, 16 July 2018
{{{name}}} at the Encyclopedia of Life
![]() | This is the template sandbox page for Template:EOL (diff). |
Template:Uses Wikidata Template:Tracks Wikidata
![]() | 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)
The above documentation is transcluded from Template:EOL/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |