Module:Annotated link: Difference between revisions

Content deleted Content added
first draft to test in the wild
 
specific pattern for first case sensitive char
Line 8:
return short_description
end
local case_altered_short_description = mw.ustring.gsub( short_description, '^(.[^%d])', function( first_char )
if case == 'lower' then
return mw.ustring.lower( first_char )
Line 40:
local result = '[[' .. name
if display then
result = result .. '|' .. display
end
result = result .. ']]'