Difference between revisions of "Template:CS1 wrapper"

From blackwiki
Jump to navigation Jump to search
imported>Retro
m (Retro moved page Template:Cs1 wrapper to Template:CS1 wrapper over redirect: Capitalize letters of initialism.)
imported>Andrybak
 
Line 6: Line 6:
 
|module:=[[{{{base}}}]].
 
|module:=[[{{{base}}}]].
 
|#default={{tl|{{ucfirst:{{{base}}}}}}}.
 
|#default={{tl|{{ucfirst:{{{base}}}}}}}.
}} For centrali{{#switch:{{lc:{{{spell|}}}}}|z=z|s|#default=s}}ed [[Help:Citation Style 1|Citation Style 1]] discussions, see [[Help talk:Citation Style 1]].}}<includeonly>{{#ifeq:{{NAMESPACE}}|Template|{{#switch:{{lc:{{SUBPAGENAME}}}}|doc|sandbox|testcases=|#default=[[Category:Templates that wrap {{ucfirst:{{{base}}}}}]]}}|<!--no category-->}}</includeonly><noinclude>
+
}} For centrali{{#switch:{{lc:{{{spell|}}}}}|z=z|s|#default=s}}ed [[Help:Citation Style 1|Citation Style 1]] discussions, see [[Help talk:Citation Style 1]].}}<includeonly>{{category handler
 
+
|template = {{#switch:{{lc:{{SUBPAGENAME}}}}
{{Documentation}}</noinclude>
+
  |doc
 +
  |sandbox
 +
  |testcases=<noinclude><!-- do not categorize template maintenance subpages --></noinclude>
 +
  |#default=[[Category:Templates that wrap {{ucfirst:{{{base}}}}}]]
 +
}}
 +
|nocat = {{{nocat|}}}
 +
}}</includeonly><noinclude>
 +
{{Documentation}}
 +
</noinclude>

Latest revision as of 23:27, 25 March 2020

50px Template documentation[view] [edit] [history] [purge]

This template is a message box for the talk pages of Citation Style 1 (CS1) wrapper templates, including CS1 meta-templates and CS1 specific-source templates.

Usage

{{CS1 wrapper |type= |base= }}

Parameters

  • type=
    If this parameter is omitted, a more generic message is shown (see examples).
  • base= (required parameter)
    Either
    • The name of the CS1 template that the wrapper is based on. Do not wikilink; do not include the "Template:" prefix.
    Or:
    • The name of the module, including the "Module:" prefix, that the wrapper is based on. Do not wikilink.
  • spell=
    • s to use "centralised", for varieties of English with that spelling
    • z to use "centralized", for varieties of English with that spelling
    Spelling with an s is the default, for consistency with {{Central}}

Examples

Meta-template based on cite web:

{{CS1 wrapper |type=meta |base=Cite web}}


Specific-source template based on cite journal:

{{CS1 wrapper |type=source |base=Cite journal}}


Generic message (type not specified), template based on cite book:

{{CS1 wrapper |base=Cite book}}


Meta-template based on Module:Citation/CS1:

{{CS1 wrapper |type=meta |base=Module:Citation/CS1}}

Categories

See also