모듈:Pipeline 문서 원본 보기
보이기
문서 편집 권한이 없습니다. 다음 이유를 확인해주세요:
문서의 원본을 보거나 복사할 수 있습니다.
local p = {}
local tf = require('모듈:TemplateFunction')
local passSuffix = 'pipe-passed-data'
local passSuffixPattern = 'pipe%-passed%-data'
function p.pipe(frame)
local returned = ''
local passed = nil
for _, source in ipairs(frame.args) do
local title = mw.title.new(source, 'Template')
source = mw.text.unstripNoWiki(mw.text.decode(source)):gsub('{{RETURNED}}', function(default)
return returned or ''
end)
if title and title.exists then
returned = tf.load(source):parse(passed)
else
returned = source:gsub('<includeonly ' .. passSuffixPattern .. '>.-</includeonly ' .. passSuffixPattern .. '>', '')
returned = tf.create(returned):parse(passed)
passed = source:match('<includeonly ' .. passSuffixPattern .. '>(.-)</includeonly ' .. passSuffixPattern.. '>')
passed = passed and mw.text.jsonDecode(passed)
end
000
1:0
이 문서에서 사용한 틀:
- 틀:아이콘 (원본 보기)
- 틀:예시 (원본 보기)
- 틀:틀 설명문서 (원본 보기)
- 모듈:Arguments (원본 보기)
- 모듈:Category handler (원본 보기) (준보호됨)
- 모듈:Category handler/blacklist (원본 보기)
- 모듈:Category handler/config (원본 보기)
- 모듈:Category handler/data (원본 보기)
- 모듈:Category handler/shared (원본 보기)
- 모듈:Documentation (원본 보기)
- 모듈:Documentation/config (원본 보기)
- 모듈:IIFE (원본 보기)
- 모듈:Message box (원본 보기)
- 모듈:Message box/configuration (원본 보기)
- 모듈:Message box/localize (원본 보기)
- 모듈:Namespace detect/config (원본 보기)
- 모듈:Namespace detect/data (원본 보기)
- 모듈:No globals (원본 보기)
- 모듈:Pipeline (원본 보기)
- 모듈:Pipeline/설명문서 (원본 보기)
- 모듈:Random (원본 보기)
- 모듈:TemplateFunction (원본 보기)
- 모듈:Yesno (원본 보기)
모듈:Pipeline 문서로 돌아갑니다.