Module:Template test case: Difference between revisions

    (inline rows need to be separated with a newline)
    (allow args[1] as an alias for args.code for nowiki invocations)
    Line 544: Line 544:
    cfg = cfg or mw.loadData(DATA_MODULE)
    cfg = cfg or mw.loadData(DATA_MODULE)


    local invocationObj = NowikiInvocation.new(args.code, cfg)
    local code = args.code or args[1]
    local invocationObj = NowikiInvocation.new(code, cfg)
    args.code = nil
    args.code = nil
    args[1] = nil
    -- Assume we want to see the code as we already passed it in.
    -- Assume we want to see the code as we already passed it in.
    args.showcode = args.showcode or true
    args.showcode = args.showcode or true