Module:Citation/CS1: Difference between revisions
Fix via/subscription bug
m>Gadget850 (registration required) |
m>Gadget850 (Fix via/subscription bug) |
||
Line 1,303: | Line 1,303: | ||
if is_set(Via) then | if is_set(Via) then | ||
Via = " " .. wrap( 'via', Via ); | Via = " " .. wrap( 'via', Via ); | ||
end | |||
-- SubscriptionRequired = sepc .. " " .. cfg.messages['subscription']; --citation always requires subscription if 'via' parameter is used | -- SubscriptionRequired = sepc .. " " .. cfg.messages['subscription']; --citation always requires subscription if 'via' parameter is used | ||
-- This line removed because of editors desire to use via for citations that do not require subscriptions | -- This line removed because of editors desire to use via for citations that do not require subscriptions | ||
if is_set(SubscriptionRequired) then | |||
SubscriptionRequired = sepc .. " " .. cfg.messages['subscription_no_via']; --here when 'via' parameter not used but 'subscription' is | SubscriptionRequired = sepc .. " " .. cfg.messages['subscription_no_via']; --here when 'via' parameter not used but 'subscription' is | ||
elseif is_set(RegistrationRequired) then | elseif is_set(RegistrationRequired) then |