Wikipetik
mswikiquote
https://ms.wikiquote.org/wiki/Laman_Utama
MediaWiki 1.47.0-wmf.1
first-letter
Media
Khas
Perbincangan
Pengguna
Perbincangan pengguna
Wikipetik
Perbincangan Wikipetik
Fail
Perbincangan fail
MediaWiki
Perbincangan MediaWiki
Templat
Perbincangan templat
Bantuan
Perbincangan bantuan
Kategori
Perbincangan kategori
TimedText
TimedText talk
Modul
Perbincangan modul
Acara
Perbincangan acara
Modul:Ciptalaman
828
2161
10042
2026-05-08T10:51:16Z
Ultron90
149
Mencipta laman baru dengan kandungan 'local p = {} function p.createButton(frame) local currentTitle = mw.title.getCurrentTitle() local basePath = currentTitle.fullText -- 1. Find the next available number local nextNum = 1 while nextNum <= 100 do local target = basePath .. "/" .. nextNum local t = mw.title.new(target) if t and not t.exists then break end nextNum = nextNum + 1 end local targetPage =...'
10042
Scribunto
text/plain
local p = {}
function p.createButton(frame)
local currentTitle = mw.title.getCurrentTitle()
local basePath = currentTitle.fullText
-- 1. Find the next available number
local nextNum = 1
while nextNum <= 100 do
local target = basePath .. "/" .. nextNum
local t = mw.title.new(target)
if t and not t.exists then
break
end
nextNum = nextNum + 1
end
local targetPage = basePath .. "/" .. nextNum
-- 2. Build the InputBox configuration string
-- We put the settings here to fix the "type not specified" error
local config = table.concat({
'type=create',
'hidden=true',
'useve=true',
'default=' .. targetPage,
'buttonlabel=Cipta petikan #' .. nextNum,
'preload=Templat:Quote/format'
}, '\n')
-- 3. Return the tag with settings in the SECOND argument
return frame:extensionTag('inputbox', config)
end
return p
3wdkpfgwd1toduebmzaevn6qaezx40m
Templat:Ciptalaman
10
2162
10043
2026-05-08T10:52:12Z
Ultron90
149
Mencipta laman baru dengan kandungan '<noinclude>This template creates an auto-incrementing subpage button.</noinclude> <div class="noprint" style="background: #f8f9fa; border: 1px solid #a2a9b1; padding: 15px; text-align: center; border-radius: 5px;"> {{#invoke:Ciptalaman|createButton}} <div style="font-size: 85%; margin-top: 8px; color: #54595d;"> Not seeing the next number? '''[{{fullurl:{{FULLPAGENAME}}|action=purge}} Click here to refresh]''' </div> </div>'
10043
wikitext
text/x-wiki
<noinclude>This template creates an auto-incrementing subpage button.</noinclude>
<div class="noprint" style="background: #f8f9fa; border: 1px solid #a2a9b1; padding: 15px; text-align: center; border-radius: 5px;">
{{#invoke:Ciptalaman|createButton}}
<div style="font-size: 85%; margin-top: 8px; color: #54595d;">
Not seeing the next number? '''[{{fullurl:{{FULLPAGENAME}}|action=purge}} Click here to refresh]'''
</div>
</div>
qbb4rf0wnbjej0vvrbilnxy382t16xv