Module:String2 का स्रोत देखें
नेविगेशन पर जाएँ
खोज पर जाएँ
आपको इस पृष्ठ को सम्पादित करने की अनुमति नहीं हैं, निम्नलिखित कारण की वजह से:
आप इस पृष्ठ का स्रोत देख सकते हैं और उसकी नकल उतार सकते हैं:
local p = {}
p.trim = function(frame)
return mw.text.trim(frame.args[1] or "")
end
p.sentence = function (frame)
-- {{lc:}} is strip-marker safe, string.lower is not.
frame.args[1] = frame:callParserFunction('lc', frame.args[1])
return p.ucfirst(frame)
end
p.ucfirst = function (frame )
local s = mw.text.trim( frame.args[1] or "" )
local s1 = ""
-- if it's a list chop off and (store as s1) everything up to the first <li>
local lipos = mw.ustring.find(s, "<li>" )
if lipos then
s1 = mw.ustring.sub(s, 1, lipos + 3)
s = mw.ustring.sub(s, lipos + 4)
000
1:0
इस पृष्ठ पर प्रयुक्त साँचे:
Module:String2 को लौटें।