Difference between revisions of "Template:Librivox author/doc"
Jump to navigation
Jump to search
imported>Zyxw m (update examples) |
imported>Zyxw m (add link) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[</nowiki>[[Wikipedia:Wikidata]]<nowiki>]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[</nowiki>[[Wikipedia:Wikidata]]<nowiki>]]) --> | ||
{{High-use}} | {{High-use}} | ||
| − | {{Wikidata property| | + | {{Uses Wikidata|P1899}} |
| + | {{Lua|Module:EditAtWikidata}} | ||
| + | |||
| + | == Usage == | ||
| + | Unnamed parameters: | ||
| + | : {{tlcw|{{BASEPAGENAME}} | <var>SEARCH+TEXT</var> }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | <var>SEARCH+TEXT</var> | <var>TITLE</var> }} | ||
| + | |||
| + | Named parameters: | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | title{{=}} <var>TITLE</var> }} | ||
| + | |||
| + | Using [[Wikidata]] property {{Property|1899}}: | ||
| + | : {{tlcw|{{BASEPAGENAME}} }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | title{{=}} <var>TITLE</var> }} | ||
== Examples == | == Examples == | ||
| − | === | + | === Unnamed parameters (search page) === |
; Usage | ; Usage | ||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}|Albert+Einstein|Albert Einstein}}</code> | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}|Albert+Einstein|Albert Einstein}}</code> | ||
| Line 16: | Line 30: | ||
: [https://librivox.org/search?q=Albert+Einstein&search_form=advanced https://librivox.org/search?q={{Highlight|Albert+Einstein}}&search_form=advanced] | : [https://librivox.org/search?q=Albert+Einstein&search_form=advanced https://librivox.org/search?q={{Highlight|Albert+Einstein}}&search_form=advanced] | ||
| − | === | + | === Named parameters (author page) === |
; Usage | ; Usage | ||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}|id=1035|title=Albert Einstein}}</code> | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}|id=1035|title=Albert Einstein}}</code> | ||
| Line 25: | Line 39: | ||
; URLs | ; URLs | ||
: [https://librivox.org/author/1035 https://librivox.org/author/{{Highlight|1035}}] | : [https://librivox.org/author/1035 https://librivox.org/author/{{Highlight|1035}}] | ||
| + | |||
| + | === No parameters and no ID in Wikidata === | ||
| + | ; Usage | ||
| + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}}}</code> | ||
| + | |||
| + | ; Output | ||
| + | :* {{{{BASEPAGENAME}}<!-- -->}} | ||
==Notes== | ==Notes== | ||
*Note the "+" sign replaces [space] in the first example. This leads to a search result page. To go direct to the author page, use the "id=" switch. | *Note the "+" sign replaces [space] in the first example. This leads to a search result page. To go direct to the author page, use the "id=" switch. | ||
| − | *The optional "id=##" is for linking directly to authors page bypassing the search page. eg. http://librivox.org/author/ | + | *The optional "id=##" is for linking directly to authors page bypassing the search page. eg. http://librivox.org/author/1035 |
*See {{tl|Librivox book}} for individual books. | *See {{tl|Librivox book}} for individual books. | ||
| Line 39: | Line 60: | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Author and writer external link templates]] | [[Category:Author and writer external link templates]] | ||
| + | [[Category:External link templates using Wikidata]] | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 22:08, 15 October 2020
| This is a documentation subpage for Template:Librivox author. It contains usage information, categories and other content that is not part of the original template page. |
| This template is used on approximately 5,100 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
| This template uses Lua: |
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property Template:Property:
Examples
Unnamed parameters (search page)
- Usage
* {{Librivox author|Albert+Einstein|Albert Einstein}}
- Output
-
- Works by Albert Einstein at LibriVox (public domain audiobooks)
Script error: No such module "EditAtWikidata".
- Works by Albert Einstein at LibriVox (public domain audiobooks)
Named parameters (author page)
- Usage
* {{Librivox author|id=1035|title=Albert Einstein}}
- Output
-
- Works by Albert Einstein at LibriVox (public domain audiobooks)
Script error: No such module "EditAtWikidata".
- Works by Albert Einstein at LibriVox (public domain audiobooks)
No parameters and no ID in Wikidata
- Usage
* {{Librivox author}}
- Output
-
- Works by Template:PAGENAMEBASE at LibriVox (public domain audiobooks)
Script error: No such module "EditAtWikidata".
- Works by Template:PAGENAMEBASE at LibriVox (public domain audiobooks)
Notes
- Note the "+" sign replaces [space] in the first example. This leads to a search result page. To go direct to the author page, use the "id=" switch.
- The optional "id=##" is for linking directly to authors page bypassing the search page. eg. http://librivox.org/author/1035
- See {{Librivox book}} for individual books.
See also
- LV2WP, code to map LibriVox author IDs to Wikipedia article names.
- {{Internet Archive author}} for Internet Archive
- {{Gutenberg author}} for Project Gutenberg