Jump to content

Template:Google books/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
updating documentation
no reason to include the title in a plain-url output, right?
Line 2: Line 2:
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->


=== Usage ===
== Usage ==


<code><nowiki>{{Google books|ID|title|page=|plainurl=}}</nowiki></code>
<code><nowiki>{{Google books|ID|title|page=|plainurl=}}</nowiki></code>


The page number is optional.
The page number is optional.


The {{para|plainurl}} parameter is also optional. It tells this template to output a URL (web address) only, rather than a linked book title and page number. Use {{para|plainurl|yes}} when using this template in a {{para|url}} parameter of a citation template.
The {{para|plainurl}} parameter is also optional. It tells this template to output a URL (web address) only, rather than a linked book title and page number. Use {{para|plainurl|yes}} when using this template in a {{para|url}} parameter of a citation template.
Line 16: Line 16:


'''Example 2:'''
'''Example 2:'''
:<code><nowiki>{{cite book|title=History of the Western Insurrection|url={{Google books|7ydCAAAAIAAJ|History of the Western Insurrection|page=42|plainurl=yes}}|page=42}}</nowiki></code>
:<code><nowiki>{{cite book|title=History of the Western Insurrection|url={{Google books|7ydCAAAAIAAJ|page=42|plainurl=yes}}|page=42}}</nowiki></code>
creates
creates
:{{cite book|last=Doe|first=John|title=History of the Western Insurrection|url={{Google books|7ydCAAAAIAAJ|History of the Western Insurrection|page=42|plainurl=yes}}|page=42}}
:{{cite book|last=Doe|first=John|title=History of the Western Insurrection|url={{Google books|7ydCAAAAIAAJ|page=42|plainurl=yes}}|page=42}}


=== See also ===
=== See also ===

Revision as of 10:31, 20 January 2015

Usage

{{Google books|ID|title|page=|plainurl=}}

The page number is optional.

The |plainurl= parameter is also optional. It tells this template to output a URL (web address) only, rather than a linked book title and page number. Use |plainurl=yes when using this template in a |url= parameter of a citation template.

Example 1:

Doe, John. {{Google books|7ydCAAAAIAAJ|History of the Western Insurrection|page=42}}

creates

Doe, John. History of the Western Insurrection, p. 42, at Google Books.

Example 2:

{{cite book|title=History of the Western Insurrection|url={{Google books|7ydCAAAAIAAJ|page=42|plainurl=yes}}|page=42}}

creates

Doe, John. History of the Western Insurrection. p. 42.

See also