Wikiversity
betawikiversity
https://beta.wikiversity.org/wiki/Main_Page
MediaWiki 1.47.0-wmf.10
first-letter
Media
Special
Talk
User
User talk
Wikiversity
Wikiversity talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
TimedText
TimedText talk
Module
Module talk
Translations
Translations talk
Event
Event talk
Module:Lua banner
828
51611
385301
365379
2026-07-12T16:56:40Z
AtUkr
17909
385301
Scribunto
text/plain
-- This module implements the {{lua}} template.
local yesno = require('Module:Yesno')
local mList = require('Module:List')
local mTableTools = require('Module:TableTools')
local mMessageBox = require('Module:Message box')
local p = {}
function p.main(frame)
local origArgs = frame:getParent().args
local args = {}
for k, v in pairs(origArgs) do
v = v:match('^%s*(.-)%s*$')
if v ~= '' then
args[k] = v
end
end
return p._main(args)
end
function p._main(args)
local modules = mTableTools.compressSparseArray(args)
local box = p.renderBox(modules)
local trackingCategories = p.renderTrackingCategories(args, modules)
return box .. trackingCategories
end
function p.renderBox(modules)
local boxArgs = {}
if #modules < 1 then
boxArgs.text = '<strong class="error">Error: no modules specified</strong>'
else
local moduleLinks = {}
for i, module in ipairs(modules) do
moduleLinks[i] = string.format('[[:%s]]', module)
local maybeSandbox = mw.title.new(module .. '/sandbox')
if maybeSandbox and maybeSandbox.exists then
moduleLinks[i] = moduleLinks[i] .. string.format(' ([[:%s|sandbox]])', maybeSandbox.fullText)
end
end
local moduleList = mList.makeList('bulleted', moduleLinks)
local title = mw.title.getCurrentTitle()
if title.subpageText == "doc" then
title = title.basePageTitle
end
if title.contentModel == "Scribunto" then
boxArgs.text = 'This module depends on the following other modules:' .. moduleList
else
boxArgs.text = 'This template uses [[Wikipedia:Lua|Lua]]:\n' .. moduleList
end
end
boxArgs.type = 'notice'
boxArgs.small = true
boxArgs.image = '[[File:Lua-Logo.svg|30px|alt=|link=]]'
return mMessageBox.main('mbox', boxArgs)
end
function p.renderTrackingCategories(args, modules, titleObj)
if yesno(args.nocat) then
return ''
end
local cats = {}
-- Error category
if #modules < 1 then
cats[#cats + 1] = 'Lua templates with errors'
end
-- Lua templates category
titleObj = titleObj or mw.title.getCurrentTitle()
local subpageBlacklist = {
doc = true,
sandbox = true,
sandbox2 = true,
testcases = true
}
if not subpageBlacklist[titleObj.subpageText] then
local protCatName
if titleObj.namespace == 10 then
local category = args.category
if not category then
local categories = {
['Module:String'] = 'Templates based on the String Lua module',
['Module:Math'] = 'Templates based on the Math Lua module',
['Module:BaseConvert'] = 'Templates based on the BaseConvert Lua module',
['Module:Citation/CS1'] = 'Templates based on the Citation/CS1 Lua module'
}
category = modules[1] and categories[modules[1]]
category = category or 'Lua-based templates'
end
cats[#cats + 1] = category
protCatName = "Templates using under-protected Lua modules"
elseif titleObj.namespace == 828 then
protCatName = "Modules depending on under-protected modules"
end
if not args.noprotcat and protCatName then
local protLevels = {
autoconfirmed = 1,
extendedconfirmed = 2,
templateeditor = 3,
sysop = 4
}
local currentProt
if titleObj.id ~= 0 then
-- id is 0 (page does not exist) if am previewing before creating a template.
currentProt = titleObj.protectionLevels["edit"][1]
end
if currentProt == nil then currentProt = 0 else currentProt = protLevels[currentProt] end
for i, module in ipairs(modules) do
if module ~= "WP:libraryUtil" then
local moduleTitle = mw.title.new(module)
local moduleProt = moduleTitle and moduleTitle.protectionLevels["edit"]
if moduleProt == nil then moduleProt = 0 else moduleProt = protLevels[moduleProt] end
if moduleProt < currentProt then
cats[#cats + 1] = protCatName
break
end
end
end
end
end
for i, cat in ipairs(cats) do
cats[i] = string.format('[[Category:%s]]', cat)
end
return table.concat(cats)
end
return p
q6f3yd6bx5hwlcu0ij8ack8pm93qjhp
385302
385301
2026-07-12T16:58:44Z
AtUkr
17909
385302
Scribunto
text/plain
-- This module implements the {{lua}} template.
local yesno = require('Module:Yesno')
local mList = require('Module:List')
local mTableTools = require('Module:TableTools')
local mMessageBox = require('Module:Message box')
local p = {}
function p.main(frame)
local origArgs = frame:getParent().args
local args = {}
for k, v in pairs(origArgs) do
v = v:match('^%s*(.-)%s*$')
if v ~= '' then
args[k] = v
end
end
return p._main(args)
end
function p._main(args)
local modules = mTableTools.compressSparseArray(args)
local box = p.renderBox(modules)
local trackingCategories = p.renderTrackingCategories(args, modules)
return box .. trackingCategories
end
function p.renderBox(modules)
local boxArgs = {}
if #modules < 1 then
boxArgs.text = '<strong class="error">Error: no modules specified</strong>'
else
local moduleLinks = {}
for i, module in ipairs(modules) do
moduleLinks[i] = string.format('[[:%s]]', module)
local maybeSandbox = mw.title.new(module .. '/sandbox')
if maybeSandbox and maybeSandbox.exists then
moduleLinks[i] = moduleLinks[i] .. string.format(' ([[:%s|sandbox]])', maybeSandbox.fullText)
end
end
local moduleList = mList.makeList('bulleted', moduleLinks)
local title = mw.title.getCurrentTitle()
if title.subpageText == "doc" then
title = title.basePageTitle
end
if title.contentModel == "Scribunto" then
boxArgs.text = 'This module depends on the following other modules:' .. moduleList
else
boxArgs.text = 'This template uses [[Wikipedia:Lua|Lua]]:\n' .. moduleList
end
end
boxArgs.type = 'notice'
boxArgs.small = true
boxArgs.image = '[[File:Lua-Logo.svg|30px|alt=|link=]]'
return mMessageBox.main('mbox', boxArgs)
end
function p.renderTrackingCategories(args, modules, titleObj)
if yesno(args.nocat) then
return ''
end
local cats = {}
-- Error category
if #modules < 1 then
cats[#cats + 1] = 'Lua templates with errors'
end
-- Lua templates category
titleObj = titleObj or mw.title.getCurrentTitle()
local subpageBlacklist = {
doc = true,
sandbox = true,
sandbox2 = true,
testcases = true
}
if not subpageBlacklist[titleObj.subpageText] then
local protCatName
if titleObj.namespace == 10 then
local category = args.category
if not category then
local categories = {
['Module:String'] = 'Templates based on the String Lua module',
['Module:Math'] = 'Templates based on the Math Lua module',
['Module:BaseConvert'] = 'Templates based on the BaseConvert Lua module',
['Module:Citation/CS1'] = 'Templates based on the Citation/CS1 Lua module'
}
category = modules[1] and categories[modules[1]]
category = category or 'Lua-based templates'
end
cats[#cats + 1] = category
protCatName = "Templates using under-protected Lua modules"
elseif titleObj.namespace == 828 then
protCatName = "Modules depending on under-protected modules"
end
if not args.noprotcat and protCatName then
local protLevels = {
autoconfirmed = 1,
extendedconfirmed = 2,
templateeditor = 3,
sysop = 4
}
local currentProt
if titleObj.id ~= 0 then
-- id is 0 (page does not exist) if am previewing before creating a template.
currentProt = titleObj.protectionLevels["edit"][1]
end
if currentProt == nil then currentProt = 0 else currentProt = protLevels[currentProt] end
for i, module in ipairs(modules) do
if module ~= "WP:libraryUtil" then
local moduleTitle = mw.title.new(module)
local moduleProt = moduleTitle and moduleTitle.protectionLevels["edit"]
if moduleProt == nil then moduleProt = 0 else moduleProt = protLevels[moduleProt] end
if moduleProt and moduleProt < currentProt then
cats[#cats + 1] = protCatName
break
end
end
end
end
end
for i, cat in ipairs(cats) do
cats[i] = string.format('[[Category:%s]]', cat)
end
return table.concat(cats)
end
return p
77i574ig3ca1bgem5z2w06k2txsat0i
User:Satya Rambana
2
55839
385303
2026-07-13T03:42:16Z
Satya Rambana
55705
Added userboxes
385303
wikitext
text/x-wiki
{| style="float: right; border: 1px solid #99b3ff; background: #f2f5f8; padding: 5px; font-size: 85%; width: 240px;"
! style="background: #99b3ff; text-align: center;" | USER BOX
|-
| {{Userbox|border=#000000|mainbkg=#ffffff|idbkg=#cccccc|id=🎓|info=This user is interested in how to change '''Natural Reality to Mathematical Equality'''.}}
|-
| {{Userbox|border=#2a4b7c|mainbkg=#f8f9fa|idbkg=#b4cbe4|id=id|info= This user is a '''native''' speaker of '''[[:Category:User id|Indonesian]]'''.}}
|-
| {{Userbox|border=#000000|mainbkg=#f8f9fa|idbkg=#e0e8ff|id=en-2|info=This user has an '''intermediate''' knowledge of '''[[:Category:User en|English]]'''.}}
pqv2oc9bhfu8ud0wmy0e1mtp3rpbbem
385304
385303
2026-07-13T05:56:26Z
Satya Rambana
55705
Add babel user information
385304
wikitext
text/x-wiki
{{#babel:id|en-2}}
3vr8xyty0vr34f417b80fe6y44a6a8i
385305
385304
2026-07-13T11:03:33Z
Satya Rambana
55705
Menambahkan latar belakang personal
385305
wikitext
text/x-wiki
{{#babel:id|en-2}}
Tulisan yang saya sampaikan sepenuhnya menggunakan Bahasa Indonesia dan saya hanya bergerak di Wikiversity Bahasa Indonesia.
Marilah kita bangun bersama pengetahuan yang jelas asalnya dan jelas pula perkembangannya.
Buku pengetahuan tidak boleh sekedar menjadi sekumpulan tulisan yang sulit dipelajari. Ia harus menjadi buku yang dapat memberikan pemahaman yang dapat membuat seseorang mengetahui apa yang diketahui dan mengetahui apa yang tidak diketahui.
==Latar Belakang==
Pengetahuan adalah sesuatu yang dimiliki oleh makhluk hidup, termasuk diantaranya adalah manusia. Manusia telah melewati banyak peristiwa yang kemudian dengan kehadiran beragam peristiwa tersebut manusia dapat membangun pengetahuan. Pengetahuan manusia kemudian membangun peradaban manusia itu sendiri.
Secara personal, saya telah menjalani proses pendidikan formal selama belasan tahun. Saya melihat bahwa banyak proses penyampaian dari pengetahuan yang diajarkan belum memberikan penjelasan yang membuat seseorang tahu mengapa suatu pengetahuan dapat terbentuk. Setelah upaya saya selama beberapa tahun terakhir memikirkan tentang pembentukan pengetahuan dan membaca beberapa buku pengetahuan sepanjang peradaban manusia dari abad ke-3 SM sampai dengan abad ke-20 M yang telah berstatus domain publik, saya mulai menyadari kenapa sesuatu pengetahuan dianggap jelas dan mengapa sesuatu pengetahuan tidak dianggap jelas. Ada elemen penjelas di mana sifatnya cenderung filosofis kurang diperkenalkan ketika suatu ilmu pengetahuan diajarkan kembali.
Saya kemudian tergugah secara personal untuk menyampaikan kembali sumber pengetahuan-pengetahuan yang telah ada dalam peradaban manusia terkhusus pada bidang matematika dan fisika yang telah berstatus domain publik untuk kemudian menjadi suatu sumber belajar yang dapat dipahami secara utuh oleh pembelajar mandiri di luar pendidikan formal.
==Tujuan==
# Menyampaikan kembali sumber pengetahuan yang telah berstatus sumber terbuka dengan penjelas-penjelas untuk memudahkan pemahaman,
# Menyampaikan pengetahuan dengan jelas secara historis, konseptual, dan terapan dari pengetahuan tersebut dengan mengacu pada sumber-sumber terbuka, dan
# Mengupayakan penyampaian pengetahuan tidak menghilangkan esensi murni yang dapat menghasilkan kesalahpahaman.
qdbpjunr3r14tgsckw1kr1srxx5hcv2
385306
385305
2026-07-13T11:13:17Z
Satya Rambana
55705
Menambahkan garis
385306
wikitext
text/x-wiki
{{#babel:id|en-2}}
Tulisan yang saya sampaikan sepenuhnya menggunakan Bahasa Indonesia dan saya hanya bergerak di Wikiversity Bahasa Indonesia.
----
Marilah kita bangun bersama pengetahuan yang jelas asalnya dan jelas pula perkembangannya.
----
Buku pengetahuan tidak boleh sekedar menjadi sekumpulan tulisan yang sulit dipelajari. Ia harus menjadi buku yang dapat memberikan pemahaman yang dapat membuat seseorang mengetahui apa yang diketahui dan mengetahui apa yang tidak diketahui.
==Latar Belakang==
Pengetahuan adalah sesuatu yang dimiliki oleh makhluk hidup, termasuk diantaranya adalah manusia. Manusia telah melewati banyak peristiwa yang kemudian dengan kehadiran beragam peristiwa tersebut manusia dapat membangun pengetahuan. Pengetahuan manusia kemudian membangun peradaban manusia itu sendiri.
Secara personal, saya telah menjalani proses pendidikan formal selama belasan tahun. Saya melihat bahwa banyak proses penyampaian dari pengetahuan yang diajarkan belum memberikan penjelasan yang membuat seseorang tahu mengapa suatu pengetahuan dapat terbentuk. Setelah upaya saya selama beberapa tahun terakhir memikirkan tentang pembentukan pengetahuan dan membaca beberapa buku pengetahuan sepanjang peradaban manusia dari abad ke-3 SM sampai dengan abad ke-20 M yang telah berstatus domain publik, saya mulai menyadari kenapa sesuatu pengetahuan dianggap jelas dan mengapa sesuatu pengetahuan tidak dianggap jelas. Ada elemen penjelas di mana sifatnya cenderung filosofis kurang diperkenalkan ketika suatu ilmu pengetahuan diajarkan kembali.
Saya kemudian tergugah secara personal untuk menyampaikan kembali sumber pengetahuan-pengetahuan yang telah ada dalam peradaban manusia terkhusus pada bidang matematika dan fisika yang telah berstatus domain publik untuk kemudian menjadi suatu sumber belajar yang dapat dipahami secara utuh oleh pembelajar mandiri di luar pendidikan formal.
==Tujuan==
# Menyampaikan kembali sumber pengetahuan yang telah berstatus sumber terbuka dengan penjelas-penjelas untuk memudahkan pemahaman,
# Menyampaikan pengetahuan dengan jelas secara historis, konseptual, dan terapan dari pengetahuan tersebut dengan mengacu pada sumber-sumber terbuka, dan
# Mengupayakan penyampaian pengetahuan tidak menghilangkan esensi murni yang dapat menghasilkan kesalahpahaman.
4048p4p9xztbiylce4k8pkauci40f8e