-
WikiChip
WikiChip
-
Architectures
Popular x86
-
Intel
- Client
- Server
- Big Cores
- Small Cores
-
AMD
Popular ARM
-
ARM
- Server
- Big
- Little
-
Cavium
-
Samsung
-
-
Chips
Popular Families
-
Ampere
-
Apple
-
Cavium
-
HiSilicon
-
MediaTek
-
NXP
-
Qualcomm
-
Renesas
-
Samsung
-
From WikiChip
Difference between revisions of "Module:title"
(title) |
(No difference)
|
Revision as of 20:26, 7 February 2020
Documentation for this module may be created at Module:title/doc
local p = {}
local origArgs
function has_arg(name)
-- The argument can exist and be empty or not exist at all
return string.len(origArgs[name] or '') > 0
end
function arg(name)
if has_arg(name) then
return origArgs[name]
end
return ''
end
function p.title(frame)
p.frame = frame
if frame == mw.getCurrentFrame() then
origArgs = frame:getParent().args
else
origArgs = frame.args
end
local title = ''
if has_arg('title') then
title = arg('title')
end
p.frame:preprocess('{{DISPLAYTITLE: ' .. title .. ' }}')
end
Retrieved from "https://en.wikichip.org/w/index.php?title=Module:title&oldid=95857"