Difference between revisions of "Template:Gutenberg Australia/doc"

From blackwiki
Jump to navigation Jump to search
imported>GreenC
imported>GreenC
Line 24: Line 24:
 
::The <code>id</code> is the same as when linking to a book (above), but also include the argument <code>author=yes</code>
 
::The <code>id</code> is the same as when linking to a book (above), but also include the argument <code>author=yes</code>
 
::The <code>name</code> is the author's name
 
::The <code>name</code> is the author's name
 +
 +
==Arguments==
 +
 +
:* '''id''': the id at PGAU website. See "Usage" above for how to determine.
 +
:* '''name''': The name of the author, or the title of the book. Can be anything doesn't have to match the Wikipedia page or the PGAU website.
 +
:* '''author''': Set to "yes" ie. <code>author=yes</code> if ''name'' is an author's name. Don't use if name = book title.
 +
:* '''coda''': A text string that follows the template.
 +
::: For example this <code><nowiki>{{Gutenberg Australia |id=plusfifty-a-m.html#dickensc |name=Tale of Two Cities |coda=(Third American edition)}}</nowiki></code> will produce:
 +
::::{{Gutenberg Australia |id=plusfifty-a-m.html#dickensc |name=Tale of Two Cities |coda=(Third American edition)}}
  
 
==Notes==
 
==Notes==

Revision as of 19:17, 8 October 2015

This template is for linking books or authors at Project Gutenberg Australia (PGAU).

Usage

For example for Charles Dickens the HTML looks like this:
<td><a name="dickensc" id="dickensc"></a><b>Charles DICKENS (1812-1870)</b>
The ID is dickensc
  • Step 2A: If linking to a book..
    • Create the template like this:
{{Gutenberg Australia |id=plusfifty-a-m.html#dickensc |name=Tale of Two Cities}}
The id is now composed of the "plusfifty-a-m.html" + "#" + "dickensc"
The name is the title of the book
  • Step 2B: If linking an author..
    • Create the template like this:
{{Gutenberg Australia |id=plusfifty-a-m.html#dickensc |name=Charles Dickens |author=yes}}
The id is the same as when linking to a book (above), but also include the argument author=yes
The name is the author's name

Arguments

  • id: the id at PGAU website. See "Usage" above for how to determine.
  • name: The name of the author, or the title of the book. Can be anything doesn't have to match the Wikipedia page or the PGAU website.
  • author: Set to "yes" ie. author=yes if name is an author's name. Don't use if name = book title.
  • coda: A text string that follows the template.
For example this {{Gutenberg Australia |id=plusfifty-a-m.html#dickensc |name=Tale of Two Cities |coda=(Third American edition)}} will produce:
Tale of Two Cities at Project Gutenberg Australia (Third American edition)


Notes

  • The PGAU website has no page for individual book titles, the only way to link is to the author's "page", which is a sub-section of a longer page.

See also