Module:Cite/doc
From Zoophilia Wiki
Jump to navigationJump to search
This is the documentation page for Module:Cite
| This Lua module is used on many pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
| This module should only be used on articles that are near the post-expand include size limit, in order to prevent them from exceeding it. Unless there is a pressing technical need, use the appropriate CS1 and {{Citation}} templates. |
| This module depends on the following other modules: |
| {{Cite arXiv}} | arXiv preprints |
|---|---|
| {{Cite AV media}} | A/V media |
| {{Cite AV media notes}} | A/V media liner notes |
| {{Cite bioRxiv}} | bioRxiv preprints |
| {{Cite book}} | books and book chapters |
| {{Cite CiteSeerX}} | CiteSeerX papers |
| {{Cite conference}} | conference papers |
| {{Cite document}} | short, standalone offline documents |
| {{Cite encyclopedia}} | edited collections |
| {{Cite episode}} | podcast, radio or television episodes |
| {{Cite interview}} | interviews |
| {{Cite journal}} | academic journals |
| {{Cite magazine}} | magazines and other periodicals |
| {{Cite mailing list}} | public email lists |
| {{Cite map}} | maps |
| {{Cite medRxiv}} | medRxiv preprints |
| {{Cite news}} | journalism pieces |
| {{Cite newsgroup}} | online newsgroups |
| {{Cite podcast}} | podcasts |
| {{Cite press release}} | press releases |
| {{Cite report}} | reports |
| {{Cite serial}} | A/V serials |
| {{Cite sign}} | signs or plaques |
| {{Cite speech}} | recorded/transcribed speeches |
| {{Cite SSRN}} | SSRN papers |
| {{Cite tech report}} | technical reports |
| {{Cite thesis}} | scholarly theses |
| {{Cite web}} | online sources not covered above |
| See also | Specific-source templates Citation Style 1 wrapper templates |
Usage
This module may be used to replace any of the CS1/CS2 templates in articles that are nearing the post-expand include size limit. Such use should only be done to prevent an article from exceeding the limit. If necessary, this module may be used in templates that wrap a CS1/CS2 template.
Examples
This module requires no parameters, but does require the canonical name of a CS1 template, without the Cite prefix, a la Cite book → Book and Cite web → Web. To replace {{Citation}} templates, use Citation.
The structure for calls to this module is…
{{#invoke:Cite|<template name>|<CS1 parameters…>}}
…where:
#invoke:Cite– calls this module, Cite.|<template name>– is the canonical name of the template, without theCiteprefix; this is the#invoke:function call; it is case-insensitive.|<CS1 parameters…>– are all of the parameters required by {{Cite <template name>}}
To go from {{Cite book}}:
{{Cite book|last=Green|first=E.B.|year=1915|title=Title|publisher=PseudoRandom}}- Green, E.B. (1915). Title. PseudoRandom.
…use wiki markup that follows this rubric:
{{#invoke:Cite|book|last=Green|first=E.B.|year=1915|title=Title|publisher=PseudoRandom}}- Green, E.B. (1915). Title. PseudoRandom.