tips: 面对满屏幕的按键感到不知所措?可以多多尝试以发现其中的规律。
tips: 咕咕咕~如果你正开心,希望Phigros能让你笑颜常开哦!
{{color|#66ccff|aaa}} bbb
aaa bbb
711, $nnnil| 基本资料 | |
| 本名 | 一条茧 |
|---|---|
| 血型 | AB |
| 自述 | ... |
| 生日 | 7月1日 |
| 状态 | 一般 |
| 爱好 | /tl |
<div id=x></div>{{User_Infobox|用户名= 一条茧|本名= 一条茧|生日= 7月1日|血型= AB|爱好= [[/tl]]|状态= 一般|自述= ...}}== d ==
一条茧 2023年1月23日 (一) 06:58 (CST)
function test()
n = random(10)
m = random(10,20)
s = f[[{{color|#66ccff|$n}}
<b>
$m, $nnnil
</b>
]]
code = read('U:一条茧')
return _(f'$s$code<pre>$code</pre>')
end
x = '{{color|#66ccff|aaa}} <b>bbb</b>'
function a()
return x
end
function b()
return _('{{PAGENAME}}') == 'Sandbox/一条茧' and _(x) or x
end
--------
function tip()
tips = {}
for i in read('U:一条茧/tips'):gsub('==END==.*',''):gmatch('#[^\n]*') do
tips[#tips+1] = i:sub(2)
end
return tips[random(#tips)]
end
function sign()
color = '#7F8070'
return f'[[U:一条茧|<i style=color:$color>一条茧</i>]]'
end
--------
function f(s, t)
t = t or _G
return (s:gsub("%$[a-zA-Z0-9_]*", function(block)
local key, fmt = block:match("%$([a-zA-Z0-9_]*)")
local val = t[key]
return tostring(val == nil and '$'..key or val)
end))
end
function _(s, t)
s = t and s or s:gsub('\n%s*', '')
return mw and mw.getCurrentFrame():preprocess(s) or s
end
function read(page)
return mw and mw.title.new(page):getContent() or ''
end
_random_seed = 0.1
function random(a,b)
a, b = a or 65536, b or 1
if a > b then a,b = b,a end
_random_seed = tonumber('0.'..tostring(os.clock()*2^_random_seed):sub(3):reverse())
return a+math.floor(_random_seed*(b-a))
end
return mw and _G or print(test())