Difference between revisions of "Template:Google Books URL/doc"
imported>Lwarrenwiki (→Usage: clarification) |
imported>Lwarrenwiki (→Usage: ce) |
||
| Line 14: | Line 14: | ||
The {{para|p}} parameter may be used to link to a particular page number. {{para|page}} works as an alias. | The {{para|p}} parameter may be used to link to a particular page number. {{para|page}} works as an alias. | ||
| − | An alternative parameter {{para|pg}} can be used for "special" pages, | + | An alternative parameter {{para|pg}} can be used for "special" pages as well as ordinary pages. For example, {{para|pg|PR1}} for the page numbered "i", or {{para|pg|PP2}} for an inside cover (check the specific circumstances as appropriate for the latter as they vary from book to book). Because the {{para|pg}} parameter corresponds directly to the ''pg'' parameter in the Google URL, it can also be used for ordinary pages numbered with Arabic numerals; ''e.g.'', {{para|pg|PA10}} yields the same result as {{para|p|10}}. |
The {{para|q}} (alias {{para|keywords}}) parameter may be used to search for particular keywords within the text (corresponding to the ''q'' parameter in the Google URL). Enclose phrases in quotation marks ("). | The {{para|q}} (alias {{para|keywords}}) parameter may be used to search for particular keywords within the text (corresponding to the ''q'' parameter in the Google URL). Enclose phrases in quotation marks ("). | ||
| Line 22: | Line 22: | ||
'''Example 1:''' | '''Example 1:''' | ||
:<pre><nowiki>* {{cite book |last=Doe |first=John |title=History of the Western Insurrection |url={{GBurl|7ydCAAAAIAAJ|p=42}} |page=42 }}</nowiki></pre> | :<pre><nowiki>* {{cite book |last=Doe |first=John |title=History of the Western Insurrection |url={{GBurl|7ydCAAAAIAAJ|p=42}} |page=42 }}</nowiki></pre> | ||
| − | creates | + | creates: |
:* {{cite book |last=Doe |first=John |title=History of the Western Insurrection |url={{User:Lwarrenwiki/Template:GBurl|7ydCAAAAIAAJ|p=42}} |page=42 }} | :* {{cite book |last=Doe |first=John |title=History of the Western Insurrection |url={{User:Lwarrenwiki/Template:GBurl|7ydCAAAAIAAJ|p=42}} |page=42 }} | ||
'''Example 2:''' | '''Example 2:''' | ||
:<pre><nowiki>{{cite book|last=Doe|first=John|title=History of the Western Insurrection|url={{GBurl|id=7ydCAAAAIAAJ|page=42}}|page=42}}</nowiki></pre> | :<pre><nowiki>{{cite book|last=Doe|first=John|title=History of the Western Insurrection|url={{GBurl|id=7ydCAAAAIAAJ|page=42}}|page=42}}</nowiki></pre> | ||
| − | creates | + | creates: |
:{{cite book|last=Doe|first=John|title=History of the Western Insurrection|url={{User:Lwarrenwiki/Template:GBurl|id=7ydCAAAAIAAJ|page=42}}|page=42}} | :{{cite book|last=Doe|first=John|title=History of the Western Insurrection|url={{User:Lwarrenwiki/Template:GBurl|id=7ydCAAAAIAAJ|page=42}}|page=42}} | ||
'''Example 3:''' | '''Example 3:''' | ||
| − | :<pre><nowiki>Doe, John. [{{GBurl|7ydCAAAAIAAJ|pg=PP2}} History of the Western Insurrection].</nowiki></pre> | + | :<pre><nowiki>Doe, John. [{{GBurl|7ydCAAAAIAAJ|pg=PP2}} ''History of the Western Insurrection''].</nowiki></pre> |
| − | creates this which links to the bookplate on the inside cover | + | creates this, which links to the bookplate on the inside cover: |
| − | :Doe, John. [{{User:Lwarrenwiki/Template:GBurl|7ydCAAAAIAAJ|pg=PP2}} History of the Western Insurrection]. | + | :Doe, John. [{{User:Lwarrenwiki/Template:GBurl|7ydCAAAAIAAJ|pg=PP2}} ''History of the Western Insurrection'']. |
'''Example 4:''' | '''Example 4:''' | ||
| − | :<pre><nowiki>Doe, John. [{{GBurl|7ydCAAAAIAAJ|pg=PR1}} History of the Western Insurrection].</nowiki></pre> | + | :<pre><nowiki>Doe, John. [{{GBurl|7ydCAAAAIAAJ|pg=PR1}} ''History of the Western Insurrection''].</nowiki></pre> |
| − | creates this which links to the title page complete with inscriptions | + | creates this, which links to the title page complete with inscriptions: |
| − | :Doe, John. [{{User:Lwarrenwiki/Template:GBurl|7ydCAAAAIAAJ|pg=PR1}} History of the Western Insurrection]. | + | :Doe, John. [{{User:Lwarrenwiki/Template:GBurl|7ydCAAAAIAAJ|pg=PR1}} ''History of the Western Insurrection'']. |
== See also == | == See also == | ||
Revision as of 16:36, 25 February 2019
| This is a documentation subpage for Template:Google Books URL. It contains usage information, categories and other content that is not part of the original template page. |
Template:Template shortcuts
This template, based on {{Google books}}, outputs a Google Books URL (web address) only, rather than a linked book title and page number. It is suitable for use in the |url= parameter of a citation template.
Usage
{{GBurl|id|p=|dq=|q=}}
The p, dq, and q parameters are all optional.
The |id= parameter is the string of twelve characters found in the specific Google Books URL after "id=" but before "&".
The |p= parameter may be used to link to a particular page number. |page= works as an alias.
An alternative parameter |pg= can be used for "special" pages as well as ordinary pages. For example, |pg=PR1 for the page numbered "i", or |pg=PP2 for an inside cover (check the specific circumstances as appropriate for the latter as they vary from book to book). Because the |pg= parameter corresponds directly to the pg parameter in the Google URL, it can also be used for ordinary pages numbered with Arabic numerals; e.g., |pg=PA10 yields the same result as |p=10.
The |q= (alias |keywords=) parameter may be used to search for particular keywords within the text (corresponding to the q parameter in the Google URL). Enclose phrases in quotation marks (").
The |dq= (alias |text=) parameter searches for a quoted phrase (corresponding to the dq parameter in the Google URL). Enclose phrases in quotation marks (").
Example 1:
* {{cite book |last=Doe |first=John |title=History of the Western Insurrection |url={{GBurl|7ydCAAAAIAAJ|p=42}} |page=42 }}
creates:
- Doe, John. [[[:User:Lwarrenwiki/Template:GBurl]] History of the Western Insurrection] Check
|url=value (help). p. 42.
- Doe, John. [[[:User:Lwarrenwiki/Template:GBurl]] History of the Western Insurrection] Check
Example 2:
{{cite book|last=Doe|first=John|title=History of the Western Insurrection|url={{GBurl|id=7ydCAAAAIAAJ|page=42}}|page=42}}
creates:
- Doe, John. [[[:User:Lwarrenwiki/Template:GBurl]] History of the Western Insurrection] Check
|url=value (help). p. 42.
Example 3:
Doe, John. [{{GBurl|7ydCAAAAIAAJ|pg=PP2}} ''History of the Western Insurrection''].
creates this, which links to the bookplate on the inside cover:
- Doe, John. [[[:User:Lwarrenwiki/Template:GBurl]] History of the Western Insurrection].
Example 4:
Doe, John. [{{GBurl|7ydCAAAAIAAJ|pg=PR1}} ''History of the Western Insurrection''].
creates this, which links to the title page complete with inscriptions:
- Doe, John. [[[:User:Lwarrenwiki/Template:GBurl]] History of the Western Insurrection].