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

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Zyxw
m (update examples)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{high-use| 9940 }}
 
 
<!-- 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}}
 +
{{Wikidata property|P1899}}
  
Example for Albert Einstein:
+
== Examples ==
:::<nowiki>{{Librivox author |Albert+Einstein}}</nowiki>
+
 
::::::or
+
=== Search page (unnamed parameters) ===
:::<nowiki>{{Librivox author |id=615}}</nowiki>
+
; Usage
::::::or
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}|Albert+Einstein|Albert Einstein}}</code>
:::<nowiki>{{Librivox author |id=615 |title=Albert Einstein}}</nowiki>
+
 
 +
; 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]
 +
 
 +
=== Author page (named parameters) ===
 +
; 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}}]
  
 
==Notes==
 
==Notes==
Line 17: Line 32:
  
 
==See also==
 
==See also==
{{Wikidata property|1=P1899}}
 
 
*[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]]

Revision as of 19:47, 15 October 2020

Template:Wikidata property

Examples

Search page (unnamed parameters)

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

Author page (named parameters)

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

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/615
  • See {{Librivox book}} for individual books.

See also