Difference between revisions of "Template:Librivox author/doc"

From blackwiki
Jump to navigation Jump to search
imported>Pppery
imported>Zyxw
m (add link)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{high-use| 5100+ }}
 
 
<!-- 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>]]) -->
'''Instructions'''
+
{{High-use}}
 +
{{Uses Wikidata|P1899}}
 +
{{Lua|Module:EditAtWikidata}}
  
Example for Albert Einstein:  
+
== Usage ==
:::<nowiki>{{Librivox author |Albert+Einstein}}</nowiki>
+
Unnamed parameters:
::::::or
+
: {{tlcw|{{BASEPAGENAME}} | <var>SEARCH+TEXT</var> }}
:::<nowiki>{{Librivox author |id=615}}</nowiki>
+
: {{tlcw|{{BASEPAGENAME}} | <var>SEARCH+TEXT</var> | <var>TITLE</var> }}
::::::or
 
:::<nowiki>{{Librivox author |id=615 |title=Albert Einstein}}</nowiki>
 
  
'''Notes'''
+
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 ==
 +
 
 +
=== Unnamed parameters (search page) ===
 +
; Usage
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}|Albert+Einstein|Albert Einstein}}</code>
 +
 
 +
; Output
 +
:* {{{{BASEPAGENAME}}|Albert+Einstein|Albert Einstein}}
 +
 
 +
; URL
 +
: [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
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}|id=1035|title=Albert Einstein}}</code>
 +
 
 +
; Output
 +
:* {{{{BASEPAGENAME}}|id=1035|title=Albert Einstein}}
 +
 
 +
; URLs
 +
: [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==
 
*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/615
+
*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.
  
'''See also'''
+
==See also==
 
*[https://github.com/greencardamom/LV2WP LV2WP], code to map LibriVox author IDs to Wikipedia article names.
 
*[https://github.com/greencardamom/LV2WP LV2WP], code to map LibriVox author IDs to Wikipedia article names.
 
*{{tl|Internet Archive author}} for [[Internet Archive]]
 
*{{tl|Internet Archive author}} for [[Internet Archive]]
 
*{{tl|Gutenberg author}} for [[Project Gutenberg]]
 
*{{tl|Gutenberg author}} for [[Project Gutenberg]]
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- 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

Template:Uses Wikidata

Usage

Unnamed parameters:

Template:Tlcw
Template:Tlcw

Named parameters:

Template:Tlcw
Template:Tlcw

Using Wikidata property Template:Property:

Template:Tlcw
Template:Tlcw

Examples

Unnamed parameters (search page)

Usage
* {{Librivox author|Albert+Einstein|Albert Einstein}}
Output
URL
https://librivox.org/search?q=Albert+Einstein&search_form=advanced

Named parameters (author page)

Usage
* {{Librivox author|id=1035|title=Albert Einstein}}
Output
URLs
https://librivox.org/author/1035

No parameters and no ID in Wikidata

Usage
* {{Librivox author}}
Output

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