Module:GetShortDescription/sandbox: Difference between revisions

Content deleted Content added
+ redlink assumption
alter alarming message and comment logging
Line 159:
if only == 'explicit' then return getShortDescription( title_table, args_name ) end
if only == 'wikidata' then return getWikidataDescription( title, args ) end
return { alarm = 'only accepts either "explicit" or "wikidata" as the value of |only=' } end
if notEmpty( prefer ) then
if prefer == 'explicit' then
Line 166:
return getWikidataDescription( title, args ) end
if prefer == 'wikidata' then return getWikidataDescription( title, args ) or getShortDescription( title_table, args_name ) end
return { alarm = 'only accepts either "explicit" or "wikidata" as the value of |prefer=' }
end
end
Line 194:
--[[ DON'T FORGET THIS ]]
--local result = main( args )
--mw.logObject( result )
return resultmain( args )
--[[ DON'T FORGET THIS ]]