Template:SMWQ

From Wikispooks
(Redirected from Template:Quotation)
Jump to navigation Jump to search

This template is for quotations. An example of its usage is at Quotation#Template:SMWQ.
It marks them up, semantically as well as physically. For simple formatting, you may use Template:QB, but for quotations, this template is recommended.

Blue parameters are for a single Wikispooks page name (If no suitable page exists, then pick a title for a future page)
Brown parameters are for numbers
Green parameters are for comma-separated lists of page names (Or planned page names).
Navy parameters are for dates
Orange parameters are for booleans. (Usually, either "Yes" or just leave blank).
Purple parameters are URLs.
Violet parameters are slash-separated lists.
Pink parameters are for coordinates.
Crossed out parameters were formerly available, but have been upgraded. Some may still work, but do not use these.

It takes the following parameters:

{{SMWQ
|text = The text of the quotation (Must not include ref tags) (Property:Has text)
|date = The status of this object (Property:Has publicationDate)
|eio = For italicised or bold quotations ('1' = Emphasis in original, '0' = Emphasis added) Not Yet Implemented
|authors = Comma separated list of author(s). Usually just a single name however (Property:Has author). [If omitted, on a Person page, then this defaults to PAGENAME]
|subjects = Optional list of subjects for this quote (Property:Is about). [If omitted, on a non-Person page, then this defaults to PAGENAME]
|wikipedia = URL of the matching Wikipedia page, if any (Property:Has wikipediaPage)
|location = The location where the quote was made (Property:Has location)
|source_name = Name of a reference page (Property:Sourced from)
|source_URL = URL of a reference page (Property:Has sourceURL)
|source_details = Extra details for the reference (Property:Has sourceDetails)
|source_title = Title of the reference (Property:Has sourceTitle)
|ref_name = Name of this reference tag (internal page reference)
|format = How to format this quote. Acceptable values are {QB, image (=image_left), image_right, inline, inline_italics, inline_bold}. It defaults to QB (quotation box), which is the most visible
|image = Image name. Required if and only if above format is chosen as "image"
|image_width = Optional chance to specifiy the width if the image - ignored unless the above format is chosen as "image".
|font = The font used to display this text
|quote_marks = Set =0 to not display quote marks
|note = Extra text field
}}