Module:Cite/doc: Difference between revisions

From Runnina
Jump to navigation Jump to search
Module:Cite/doc>Trappist the monk
m ce;
 
m 1 revision imported
 
(No difference)

Latest revision as of 06:22, 9 July 2025

Template:High-risk Template:Notice

Template:Csdoc

Usage

This module may be used to replace any of the cs1|2 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 PEIS limit. If necessary, this module may be used in templates that wrap a cs1|2 template.

Examples

This module requires no parameters but does require the canonical name of a cs1 template without the cite prefix: cite bookbook, cite webweb. To replace Template:Tlx templates, use citation.

The structure for calls to this module:

{{Template:Color:cite |<Template:Var>|<Template:Var>}}

where:

Template:Color:cite – calls this module: Module:cite
|<Template:Var> – is the canonical name of the template without the cite prefix; this is the #invoke: function call; case insensitive
|<Template:Var> – are all of the parameters required by Template:Tld

To go from Template:Tlx:

<syntaxhighlight lang="wikitext" inline="1">Template:Cite book</syntaxhighlight>
Template:Cite book

write:

<syntaxhighlight lang="wikitext" inline="1">Lua error in package.lua at line 80: module 'Module:Cite/config' not found.</syntaxhighlight>
Lua error in package.lua at line 80: module 'Module:Cite/config' not found.