Template:Citation Style documentation/doc

From Wikizilla, the kaiju encyclopedia

Template:Documentation subpage Template:Template shortcut

When updating this template keep in mind that it is used on a number of template documentation pages. If the parameters in question are unique to a template, then either add it manually to the template documentation or create a new section here for transclusion.
Wikipedia logo.png This page uses Creative Commons Licensed content from Wikipedia (view authors).

Usage

This template is used to build consistent documentation pages for Template:Cs1 templates.

For example: {{Citation Style documentation|author}} will show the author documentation.

Where a particular section of documentation is not appropriate for a certain template, simply add the text manually or create a new subtemplate.

Each module of text is a subtemplate that can be edited using the link.

Section usage

When creating template documentation, use the following order of sections and content:

  • Lead: a brief overview of the template intent
  • Usage: samples of blank parameters that can be copied and pasted
  • Examples: examples of various usage
  • Parameters: detailed descriptions of each parameter
    • Syntax: overview of the template syntax
    • Deprecated: list of deprecated parameters
    • Description: parameter descriptions separated by function in this general order:
      • Authors
      • Title
      • Date
      • Publisher
      • Edition, series, volume
      • In-source locations
      • URL
      • Anchor
      • Identifiers
      • Quote
      • Editors
      • Lay summary
      • Display options

Lead section

Use {{csdoc|lead|content}} to create consistent content for the lead:

Template:Citation Style documentation/edit Template:Citation Style documentation/opt

Template:Markup

Lua notice

Script error: No such module "Suppress categories".

Usage section

Start the usage section with {{csdoc|usage}}:

Template:Citation Style documentation/usage

Parameters to copy are enclosed in tables created by sub-templates.

Full horizontal style

  • Start with {{csdoc|usage full}}
  • Precede the sample markup with : to create an indent
  • Enclose the sample in <code><nowiki>...</nowiki></code>
  • Close the table with {{end}}

Template:Pre2 Template:Citation Style documentation/usage full

{{cite book |last1= |first1= |author1-link= |last2= |first2= |author2-link= |editor1-first= |editor1-last= |editor1-link= |others= |title= |trans-title= |url= |archive-url= |archive-date= |format= |access-date= |type= |edition= |series= |volume= |date= |year= |orig-year= |publisher= |location= |language= |isbn= |oclc= |doi= |id= |page= |pages= |at= |trans-chapter= |chapter= |chapter-url= |quote= |ref= |bibcode= |lay-url= |lay-source= |lay-date= |author-mask= |display-authors= |postscript= |last-author-amp=}}

Template:End

Most commonly used horizontal style

  • Start with {{csdoc|usage common}}
  • Precede the sample markup with : to create an indent
  • Enclose the sample in <code><nowiki>...</nowiki></code>
  • Close the table with {{end}}

Template:Pre2 Template:Citation Style documentation/usage common

{{cite book |last= |first= |author-link= |title= |url= |access-date= |year= |publisher= |location= |isbn= |page= |pages=}}

Template:End

Full vertical style

The full vertical style is created in three columns: Vertical list, Prerequisites and Brief instructions / notes.

  • Start with:

Template:Pre2

  • Create the vertical list column
  • Separate the next column with:

Template:Pre2

  • Create the prerequisites column; blank lines must include a &nbsp;
  • Separate the next column with:

Template:Pre2

  • Create the instructions column; blank lines must include a &nbsp;
  • End with:

Template:Pre2

Example: Template:Pre2 Template:Citation Style documentation/usage vertical

{{cite book
| last                  =
| first                 =
| author-link           =
}}

Template:Citation Style documentation/usage vertical mid

 
 
last
 
 

Template:Citation Style documentation/usage vertical mid

 
same as last1
same as first1
 
 

Template:Citation Style documentation/usage vertical end

Sub-templates

Usage

Template:Citation Style documentation/edit Template:End

Usage full

Template:Citation Style documentation/edit Template:End

Usage common

Template:Citation Style documentation/edit Template:End

Usage vertical

Template:Citation Style documentation/edit Template:End

Usage vertical mid

Template:Citation Style documentation/edit Template:End

Usage vertical end

Template:Citation Style documentation/edit

Examples section

Use {{markup2}} to format the examples Template:Crossref.

{{markup2 |t=Basic usage with url (and accessdate) and edition
|m={{cite book |title=Mysterious book}}
|r={{cite book |title=Mysterious book}}
}}

Template:Markup2

Parameters section

syntax

Template:Citation Style documentation/edit

COinS

Template:Citation Style documentation/edit

sep_period

Template:Citation Style documentation/edit

sep_comma

Template:Citation Style documentation/edit

required

Template:Citation Style documentation/edit

whats new

Template:Citation Style documentation/edit

deprecated

Template:Citation Style documentation/edit

author

Template:Citation Style documentation/edit Template:Citation Style documentation/opt

editor

Template:Citation Style documentation/edit

title

Template:Citation Style documentation/edit

Template:Citation Style documentation/opt

web

Template:Citation Style documentation/edit

chapter

Template:Citation Style documentation/edit Template:Citation Style documentation/opt

type

Template:Citation Style documentation/edit Template:Citation Style documentation/opt

journal

Template:Citation Style documentation/edit Template:Citation Style documentation/opt

edition

Template:Citation Style documentation/edit

series

Template:Citation Style documentation/edit

series_episode

Template:Citation Style documentation/edit

event

Template:Citation Style documentation/edit

agency

Template:Citation Style documentation/edit

volume

Template:Citation Style documentation/edit

date

Template:Citation Style documentation/edit Template:Citation Style documentation/opt

publisher

Template:Citation Style documentation/edit Template:Citation Style documentation/opt


newsgroup

Template:Citation Style documentation/edit

language

Template:Citation Style documentation/edit

pages

Template:Citation Style documentation/edit Template:Citation Style documentation/opt

time

Template:Citation Style documentation/edit

id1

Template:Citation Style documentation/edit

id2

Template:Citation Style documentation/edit

url

Template:Citation Style documentation/edit Template:Citation Style documentation/opt

chapterurl

Template:Citation Style documentation/edit

lay

Template:Citation Style documentation/edit

quote

Template:Citation Style documentation/edit Template:Citation Style documentation/opt

ref

Template:Citation Style documentation/edit

ref2

Template:Citation Style documentation/edit

display

Template:Citation Style documentation/edit Template:Citation Style documentation/opt

Subscription or registration required

Template:Citation Style documentation/edit

map_series

Template:Citation Style documentation/edit

map_pages

Template:Citation Style documentation/edit

interview_id

Template:Citation Style documentation/edit

interview_author

Template:Citation Style documentation/edit

interview_interviewer

Template:Citation Style documentation/edit

album_name

Template:Citation Style documentation/edit

season

Template:Citation Style documentation/edit

network

Template:Citation Style documentation/edit

transcript

Template:Citation Style documentation/edit

conference

Template:Citation Style documentation/edit

See also

Template:Citation Style 1