Module:Excerpt: Difference between revisions

Content deleted Content added
Overhaul argument handling; add support for selected article template
m Accept selected= as a string with a numeric value, e.g. "3"
Line 225:
if articlecount < 1 then err("No articles provided") end
if articlenumber then
if type(articlenumber) == "string" then tonumber(articlenumber) =or tonumber(args[articlenumber] end)
-- normalise selected article into the range 1..#args
articlenumber = articlenumber % articlecount