Module:Citation/CS1 and Module:Citation/CS1/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
sync from sandbox; |
add to changelog |
||
Line 1: | Line 1: | ||
--[[ |
|||
History of changes since last sync: 2024-03-23 |
|||
2024-05-27: allow |agency= in {{cite magazine}} |
|||
]] |
|||
require ('strict'); |
require ('strict'); |
||
Line 3,747: | Line 3,753: | ||
Series = utilities.is_set (Series) and wrap_msg ('series', {sepc, Series}) or ""; -- not the same as SeriesNum |
Series = utilities.is_set (Series) and wrap_msg ('series', {sepc, Series}) or ""; -- not the same as SeriesNum |
||
local Agency = A['Agency'] or ''; -- |agency= |
local Agency = A['Agency'] or ''; -- |agency= is supported by {{cite magazine}}, {{cite news}}, {{cite press release}}, {{cite web}}, and certain {{citation}} templates |
||
if utilities.is_set (Agency) then -- this testing done here because {{citation}} supports 'news' citations |
if utilities.is_set (Agency) then -- this testing done here because {{citation}} supports 'news' citations |
||
if utilities.in_array (config.CitationClass, {'news', 'pressrelease', 'web'}) or ('citation' == config.CitationClass and utilities.in_array (Periodical_origin, {"newspaper", "work"})) then |
if utilities.in_array (config.CitationClass, {'magazine', 'news', 'pressrelease', 'web'}) or ('citation' == config.CitationClass and utilities.in_array (Periodical_origin, {"magazine", "newspaper", "work"})) then |
||
Agency = wrap_msg ('agency', {sepc, Agency}); -- format for rendering |
Agency = wrap_msg ('agency', {sepc, Agency}); -- format for rendering |
||
else |
else |