Module:Cite news
This module may be placed directly on articles by replacing {{Cite news| with {{#invoke:Cite news|| (note the double pipe). This is likely to be unclear to othe…
| This module is rated as ready for general use. It has reached a mature form and is thought to be relatively bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
| This module should only be used on articles which are near the post-expand include size limit, in order to prevent them exceeding it. Unless there is a pressing technical need, use {{Cite news}} like normal. |
| This module depends on the following other modules: |
Usage
This module may be placed directly on articles by replacing {{Cite news| with {{#invoke:Cite news|| (note the double pipe). This is likely to be unclear to other editors and should only be done to prevent pages exceeding the post-expand include size limit. It is also fine to use in templates that wrap {{Cite news}}.
For the module that actually implements {{Cite news}}, see Module:Citation/CS1.
TemplateData
TemplateData for Cite news
This module is like {{Cite news}} with two exceptions. It is only for use on pages with lots of citations (e.g. several hundred) where that is causing technical problems, and you must pass an empty first parameter. For all other usage information, see [[Template:Cite news]].
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Required blank parameter | 1 | no description | Unknown | optional |
local p = {}
local CS1 = require('Module:Citation/CS1')
p[''] = function(frame)
local newFrame = {
getParent = function(self)
return frame
end,
getTitle = function(self)
return 'Template:Cite news'
end,
args = {CitationClass='news'}
}
setmetatable(newFrame, {
__index = function(t, k)
if type(frame[k]) == 'function' then
return function(...)
return frame[k](frame, select(2, ...))
end
else
return frame[k]
end
end
})
return CS1.citation(newFrame)
end
return p
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.