Difference between revisions of "Template:Cover Image Data2/Doc"

From ISFDB
Jump to navigation Jump to search
(→‎Alias: Pub)
m (→‎Usage: {{UnnamedParmDoc}})
 
Line 43: Line 43:
  
 
{{AngleBracketDoc}}
 
{{AngleBracketDoc}}
 +
 +
{{UnnamedParmDoc}}
  
 
==Parameters==
 
==Parameters==

Latest revision as of 19:10, 30 August 2010



Documentation for the template: Cover Image Data2 (transcluded from Template:Cover Image Data2/Doc.

Purpose

This template is to be placed on the image description page of a book, magazine, or other publication cover image used under fair use. This template provides less information than does Template:Cover Image Data, but requires less user input.

Usage

Call this template as:

{{Cover Image Data2
|Pub=<TAG>
|Title=<Book Title>
}}

or as:

{{Cover Image Data2
|Id=<TAG>
|Title=<Book Title>
}}

or as:

{{Cover Image Data2
|Pub=<TAG>
}}

or as:

{{Cover Image Data2|<TAG>|<Book Title>}}

or as:

{{Cover Image Data2|<TAG>}}

Note: In all the above examples, when a parameter is shown in angle brackets, like:

<Parameter>

then the parameter, and the angle brackets, should be replaced by the value of the parameter. For example: Title=<TITLE> should become Title=The Name of the Book (or whatever the name might be).

When using an unnamed (positional) parameter, it should NOT be the last thing on the line. It should be followed by either a pipe symbol (|) if there is another parameter to follow, or by the template call close (}}) if there is not. Otherwise the parameter value will be passed as including the carriage return at the end of the line, which will probably cause the template to function incorrectly.

Parameters

  • Pub must specify a publication record tag or record number, an acceptable argument to Template:P (which see). Id may be used instead. If neither the "Pub=" nor the "Id=" parameter is not present, the first unnamed parameter is used. One or the other must be present and valid for the template to work correctly.
  • Title may specify the title of the book. This will be used in formating the link to the publication record, as the optional name parameter to Template:P. If "Title=" is not present, the 2nd unnamed parameter is used instead. If neither is present, the tag is used in place of the title.

Alias

To reduce typing, the alias {{CID2}} has been created for this template. So this template can also be called as

{{CID2
|Pub=<TAG>
|Title=<Book Title>
}}

or as:

{{CID2
|Id=<TAG>
}}

or as:

{{CID2|<TAG>|<Book Title>}}

The alias {{C}} is also available, and works exactly the same way.

Categories

This template puts all pages that transclude (call) it into the following categories: