en:Module:InfoboxImage 07:42, 31 October 2015(UTC)より
template>K-iczn (en:Module:InfoboxImage 03:22, 19 November 2014(UTC)より) |
template>K-iczn (en:Module:InfoboxImage 07:42, 31 October 2015(UTC)より) |
||
1行目: | 1行目: | ||
-- Inputs: | -- Inputs: | ||
-- image - Can either be a bare filename (with or without the File:/Image: prefix) or a fully formatted image link | -- image - Can either be a bare filename (with or without the File:/Image: prefix) or a fully formatted image link | ||
-- page - page to display for multipage images (DjVu) | |||
-- size - size to display the image | -- size - size to display the image | ||
-- maxsize - maximum size for image | -- maxsize - maximum size for image | ||
175行目: | 176行目: | ||
else | else | ||
local result = ""; | local result = ""; | ||
local page = frame.args["page"]; | |||
local size = frame.args["size"]; | local size = frame.args["size"]; | ||
local maxsize = frame.args["maxsize"]; | local maxsize = frame.args["maxsize"]; | ||
217行目: | 219行目: | ||
result = "[[File:" .. image; | result = "[[File:" .. image; | ||
if page ~= "" and page ~= nil then | |||
result = result .. "|page=" .. page; | |||
end | |||
if size ~= "" and size ~= nil then | if size ~= "" and size ~= nil then | ||
result = result .. "|" .. size; | result = result .. "|" .. size; | ||
236行目: | 241行目: | ||
result = result .. "|border"; | result = result .. "|border"; | ||
end | end | ||
if upright ~= "" then | if upright == "yes" then | ||
result = result .. "|upright"; | |||
elseif upright ~= "" then | |||
result = result .. "|upright=" .. upright; | result = result .. "|upright=" .. upright; | ||
end | end |