Jump to content

Module:Citation/CS1: Difference between revisions

can't track |nocat= without tracking |nocat=;
(sync from sandbox;)
(can't track |nocat= without tracking |nocat=;)
Line 1: Line 1:
--[[
History of changes since last sync: 2020-07-11
2020-07-16: Add editors to the deprecated list. See Help_talk:Citation_Style_1#Editors
2020-07-22: fix duplicate error message; see Help_talk:Citation_Style_1#duplicate_error_message
2020-07-29: auto-link bug fix; see Help_talk:Citation_Style_1#auto-link_bug_fix
2020-07-30: unify handling of error and maint messaging; see Help_talk:Citation_Style_1#Some_maintenance_items_to_upgrade_to_errors
2020-08-08: upgrade disp_names maintenance messaging to error,
    change unrecognized display name values from invalid_param_value to disp_name;
    see Help_talk:Citation_Style_1#Some_maintenance_items_to_upgrade_to_errors
2020-08-18: tweak |<name>-link= and |<name>-mask= interaction; see Help_talk:Citation_Style_1#Small_glitches_masking_and_linking_author_names
2020-08-30: fix given-missing-surname error message; see Help_talk:Citation_Style_1#Incorrect_error_message_when_given_param_is_used
2020-08-30: check for more than 0 semicolons; Help_talk:Citation_Style_1#Counting_semicolons
2020-09-02: {{para|orig-date}} preferred over {{para|orig-year}}, change metaparameters; see Help_talk:Citation_Style_1#cite_news_should_have_two_dates
2020-09-03: error messaging for 'Wayback Machine' and other generic titles; see Help_talk:Citation_Style_1#Wayback_Machine
2020-09-11: use common function to render comma-separated lists; see Help_talk:Citation_Style_1#last-author-amp=
2020-09-13: convert to <module>.<function>() calls to avoid upvalue limit; see Help_talk:Citation_Style_1#O_wicked_wall,_through_whom_I_see_no_bliss!
2020-09-26: move add_prop_cat() to Module:Citation/CS1/Utilities/sandbox; see Help_talk:Citation_Style_1#Request_for_new_maintenance_category_for_abbreviated_year_ranges_in_the_date%3D_parameter
2020-09-26: add keyword "off" to distinguish from "none" in |title=; see Help_talk:Citation_Style_1#Descriptive_titles_and_tokenizing_the_%22No_title%22_case
2020-09-26: add override and disable capability for auto-linking; see Help_talk:Citation_Style_1#Manual_override_of_auto-linking, Help_talk:Citation_Style_1#Guidance_on_title-linking:_update_after_RfC, Help_talk:Citation_Style_1/Archive_70#Towards_solving_pending_issues_of_the_auto-link_feature..., Help_talk:Citation_Style_1#Proceeding
2020-09-27: add trans/script/pages support for quotes; see Help_talk:Citation_Style_1#trans-quote?
]]
require('Module:No globals');
require('Module:No globals');


Line 2,622: Line 2,646:
local no_tracking_cats = is_valid_parameter_value (A['NoTracking'], A:ORIGIN('NoTracking'), cfg.keywords_lists['yes_true_y'], nil);
local no_tracking_cats = is_valid_parameter_value (A['NoTracking'], A:ORIGIN('NoTracking'), cfg.keywords_lists['yes_true_y'], nil);
if 'nocat' == A:ORIGIN('NoTracking') then
if 'nocat' == A:ORIGIN('NoTracking') then
utilities.set_message ('maint_nocat');
utilities.set_message ('maint_nocat'); -- this one so that we get the message; see main categorization at end of citation0()
end
end
Line 3,814: Line 3,838:
table.insert (render, utilities.make_wikilink ('Category:' .. v));
table.insert (render, utilities.make_wikilink ('Category:' .. v));
end
end
elseif 'nocat' == A:ORIGIN('NoTracking') then -- peculiar special case; can't track nocat without tracking nocat
table.insert (render, utilities.make_wikilink ('Category:CS1 maint: nocat')); -- hand-set this category because it is supposed to be temporary
end
end


Cookies help us deliver our services. By using our services, you agree to our use of cookies.