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

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (update examples)
imported>Zyxw
m (update examples)
Line 6: Line 6:
 
== Examples ==
 
== Examples ==
  
=== Search page (unnamed parameters) ===
+
=== 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 16:
 
: [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]
  
=== Author page (named parameters) ===
+
=== 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 25:
 
; 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 ===
 +
; Usage
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}}}</code>
 +
 +
; Output
 +
:* {{{{BASEPAGENAME}}<!-- -->}}
  
 
==Notes==
 
==Notes==

Revision as of 20:08, 15 October 2020

Template:Wikidata property

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

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

See also