Module:Nihongo: Difference between revisions

Content deleted Content added
m Protected "Module:Nihongo": High-risk Lua module: to match supported templates; ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
add ref_name
Line 197:
local post = args[6] or args.post;
local group = args.group;
local ref_name = args.ref_name
local lead = 'yes' == args.lead; -- make boolean
 
Line 240 ⟶ 241:
content = content:gsub ('<5p4n>', ''):gsub ('</5p4n>$', '', 1); -- strip secret <5p4n> and </5p4n> tags added by nihongo_renderer(); spans not used by this template
 
return english .. frame:extensionTag ({name='ref', args={group=group, name=ref_name}, content=content}); -- english with attached reference tag
else
return english; -- nothing to be inside ref tag so just return english