Modul:Formular/Work: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 73: Zeile 73:
info = args.frame:callParserFunction("#info", info, "note")
info = args.frame:callParserFunction("#info", info, "note")
end
end
local field_args = p.form_attr[a].field_args
local field =
"{{{field|" .. a .. "|" .. p.form_attr[a].field_args .. "}}}"
if args.format == "vertical" then
if args.format == "vertical" then
t = t ..
t = t ..
Zeile 79: Zeile 80:
"  <th>" .. attr_text .. ":</th>\n" ..
"  <th>" .. attr_text .. ":</th>\n" ..
"  <td>" .. info .. "</td>\n" ..
"  <td>" .. info .. "</td>\n" ..
"  <td>{{{field|" .. a .. "|" .. field_args .. "}}}</td>\n" ..
"  <td>" .. field .. "</td>\n" ..
"</tr>\n"
"</tr>\n"
elseif args.format == "horizontal" then
elseif args.format == "horizontal" then
l1 = l1 .. "  <th>" .. attr_text .. info .. ":</th>\n"
l1 = l1 .. "  <th>" .. attr_text .. info .. ":</th>\n"
l2 = l2 .. "  <td>{{{field|" .. field_args .. "}}}</td>\n"
l2 = l2 .. "  <td>" .. field .. "</td>\n"
end
end
end
end