ব্যবহারকারী:Rahul amin roktim/lua: সংশোধিত সংস্করণের মধ্যে পার্থক্য
বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
সম্পাদনা সারাংশ নেই |
সম্পাদনা সারাংশ নেই |
||
৪ নং লাইন:
{{#invoke:ConvertTime|main|১৬:২৫, ৩ এপ্রিল ২০১৩ (ইউটিসি)}}
<syntaxhighlight lang="lua">
local p = {}
return "Hello, world!"
▲function p.has_fruit(frame)
return result▼
end
function p.roktim(frame)
return "hello roktim!"
end
-- how to use ? don't know ?
-- [[
{{#invoke:test2|hello}}
{{#invoke:test2|roktim}}
here #invoke: for call lua
test2 is page name
hello is function name
:)
---
when you call function you have to 'declare local p ={}' name space in wikipedia
]]
</syntaxhighlight>
|