잔글
편집 요약 없음
잔글편집 요약 없음 |
잔글편집 요약 없음 |
||
200번째 줄: | 200번째 줄: | ||
-- The title object for the current page, or a test page passed with args.page. | -- The title object for the current page, or a test page passed with args.page. | ||
local title | local title | ||
local titleArg = args.page | local titleArg = (args.page or args["문서"]) | ||
if titleArg then | if titleArg then | ||
title = mw.title.new(titleArg) | title = mw.title.new(titleArg) | ||
444번째 줄: | 444번째 줄: | ||
env = env or p.getEnvironment(args) | env = env or p.getEnvironment(args) | ||
local links | local links | ||
local content = args.content | local content = (args.content or args["내용"]) | ||
if not content then | if not content then | ||
-- No need to include the links if the documentation is on the template page itself. | -- No need to include the links if the documentation is on the template page itself. | ||
497번째 줄: | 497번째 줄: | ||
data.purgeLinkDisplay = message('purge-link-display') | data.purgeLinkDisplay = message('purge-link-display') | ||
-- Create link if /doc doesn't exist. | -- Create link if /doc doesn't exist. | ||
local preload = args.preload | local preload = (args.preload or args["미리싣기"]) | ||
if not preload then | if not preload then | ||
if subjectSpace == 6 then -- File namespace | if subjectSpace == 6 then -- File namespace | ||
646번째 줄: | 646번째 줄: | ||
env = env or p.getEnvironment(args) | env = env or p.getEnvironment(args) | ||
local docTitle = env.docTitle | local docTitle = env.docTitle | ||
local content = args.content | local content = (args.content or args["내용"]) | ||
if not content and docTitle and docTitle.exists then | if not content and docTitle and docTitle.exists then | ||
content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText} | content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText} | ||
660번째 줄: | 660번째 줄: | ||
env = env or p.getEnvironment(args) | env = env or p.getEnvironment(args) | ||
local docTitle = env.docTitle | local docTitle = env.docTitle | ||
if not args.content and docTitle and docTitle.exists then | if not (args.content or args["내용"]) and docTitle and docTitle.exists then | ||
return docTitle.prefixedText | return docTitle.prefixedText | ||
else | else | ||
729번째 줄: | 729번째 줄: | ||
text = text .. (p.makeExperimentBlurb(args, env) or '') | text = text .. (p.makeExperimentBlurb(args, env) or '') | ||
text = text .. '<br />' | text = text .. '<br />' | ||
if not args.content and not args[1] then | if not (args.content or args["내용"]) and not args[1] then | ||
-- "Please add categories to the /doc subpage." | -- "Please add categories to the /doc subpage." | ||
-- Don't show this message with inline docs or with an explicitly specified doc page, | -- Don't show this message with inline docs or with an explicitly specified doc page, |