Wikipedia bewwiki https://bew.wikipedia.org/wiki/Bal%C3%A9-bal%C3%A9 MediaWiki 1.43.0-wmf.2 first-letter Media Istimewa Pembicaraan Pengguna Pembicaraan Pengguna Wikipedia Pembicaraan Wikipedia Berkas Pembicaraan Berkas MediaWiki Pembicaraan MediaWiki Templat Pembicaraan Templat Bantuan Pembicaraan Bantuan Kategori Pembicaraan Kategori TimedText TimedText talk Modul Pembicaraan Modul Balé-balé 0 1 1 2024-04-23T21:50:59Z Maintenance script 1 Created page with "<div dir="ltr" lang="en" class="mw-content-ltr"> ==This subdomain is reserved for the creation of a [[wikimedia:Our projects|Wikipedia]] in '''[[w:en:Betawi|Betawi]]''' language== * Please '''do not start editing''' this new site. This site has a test project on the [[incubator:|Wikimedia Incubator]] (or on the [[betawikiversity:|Beta Wikiversity]] or on the [[oldwikisource:|Old Wikisource]]) and it will be imported to here. * If you would like to help translating the i..." wikitext text/x-wiki <div dir="ltr" lang="en" class="mw-content-ltr"> ==This subdomain is reserved for the creation of a [[wikimedia:Our projects|Wikipedia]] in '''[[w:en:Betawi|Betawi]]''' language== * Please '''do not start editing''' this new site. This site has a test project on the [[incubator:|Wikimedia Incubator]] (or on the [[betawikiversity:|Beta Wikiversity]] or on the [[oldwikisource:|Old Wikisource]]) and it will be imported to here. * If you would like to help translating the interface to this language, please do not translate here, but go to [[translatewiki:|translatewiki.net]], a special wiki for translating the interface. That way everyone can use it on every wiki using the [[mw:|same software]]. * For information about how to edit and for other general help, see [[m:Help:Contents|Help on Wikimedia's Meta-Wiki]] or [[mw:Help:Contents|Help on MediaWiki.org]]. == Sister projects == <span class="plainlinks"> [//www.wikipedia.org Wikipedia] | [//www.wiktionary.org Wiktionary] | [//www.wikibooks.org Wikibooks] | [//www.wikinews.org Wikinews] | [//www.wikiquote.org Wikiquote] | [//www.wikisource.org Wikisource] | [//www.wikiversity.org Wikiversity] | [//www.wikivoyage.org Wikivoyage] | [//species.wikimedia.org Wikispecies] | [//www.wikidata.org Wikidata] | [//commons.wikimedia.org Commons] </span> See Wikimedia's [[m:|Meta-Wiki]] for the coordination of these projects. </div> 0x5nq6o8gsqy0d89jctb2zorqf7bpv7 MediaWiki:Sitesupport-url 8 2 2 2024-04-23T21:51:00Z Maintenance script 1 Setting sidebar link wikitext text/x-wiki https://donate.wikimedia.org/?utm_source=donate&utm_medium=sidebar&utm_campaign=bew.wikipedia.org&uselang=bew qsfyp6fa8f8pg1aagrmor22jhqj62pk Balé-balé/how it will look 0 8 8 2024-04-27T14:42:24Z 201.187.243.64 Ngeja halaman dengen "btw this how the wiki will look after it officaly starts <div id="pylh_2019_kefalida">{{Welcome}}{{Categories}}{{Pasal Wikipédi}} {| style="width:100%; margin:0 0 0 0; padding:0 0 0 0;" | style="width:100%;" |<div id="mf-fp">{{BoxHeader|#6677FA|#6677FA}}<div class="center"><span style="font-family:Sans-serif;font-size:100%;color:Black;text-shadow: 0em 0em 0em grey">'''Balé-balé'''</span></div></div>{{BoxContent|content={{{!}} class="plainlinks" style="background:tr..." wikitext text/x-wiki btw this how the wiki will look after it officaly starts <div id="pylh_2019_kefalida">{{Welcome}}{{Categories}}{{Pasal Wikipédi}} {| style="width:100%; margin:0 0 0 0; padding:0 0 0 0;" | style="width:100%;" |<div id="mf-fp">{{BoxHeader|#6677FA|#6677FA}}<div class="center"><span style="font-family:Sans-serif;font-size:100%;color:Black;text-shadow: 0em 0em 0em grey">'''Balé-balé'''</span></div></div>{{BoxContent|content={{{!}} class="plainlinks" style="background:transparent; margin:auto; text-align:left; width:100%; font-size: 90%" cellpadding="2" {{!}}- {{!}} style="text-align:center;" {{!}} {{!}} style="width:40%" {{!}} {{Article}} {{!}} style="text-align:center;" {{!}} {{!}} style="width:40%" {{!}} <div class="center">{{Image}}</div> {{!}}|line=}} |} </div> {| style="width:100%; margin:0 0 0 0; padding:0 0 0 0;" | style="width:100%;" |<div>{{BoxHeader|#6677FA|#6677FA}}<div class="center"><span style="font-family:Sans-serif;font-size:100%;color:Black;text-shadow: 0em 0em 0em grey">'''Èlmu'''</span></div></div>{{BoxContent|content={{Main articles}}}} |} |} {| style="width:100%; margin:0 0 0 0; padding:0 0 0 0;" | style="width:100%;" |<div>{{BoxHeader|#6677FA|#6677FA}}<div class="center"><span style="font-family:Sans-serif;font-size:100%;color:Black;text-shadow: 0em 0em 0em grey">'''Proyèk laènnya'''</span></div></div>{{BoxContent|content={{Projek lainnye}}}} |} {{INTERWIKI|Q5296}} tgl3xyvxyqanymotz4tjgph9o6sqezl Templat:INTERWIKI 10 10 11 2024-04-29T07:32:31Z Rtnf 73 Ngeja halaman dengen "<includeonly>__EXPECTED_UNCONNECTED_PAGE__<p id="wminc-interwiki" data-wikidata-id="{{{1|{{{qid|}}}}}}">{{#invoke:IncubatorInterwiki{{#ifeq:{{SERVERNAME}}|incubator.wikimedia.org||EXPORT}}|interwiki|qid={{{1|{{{qid|}}}}}}}}</p></includeonly><noinclude> {{documentation}} </noinclude>" wikitext text/x-wiki <includeonly>__EXPECTED_UNCONNECTED_PAGE__<p id="wminc-interwiki" data-wikidata-id="{{{1|{{{qid|}}}}}}">{{#invoke:IncubatorInterwiki{{#ifeq:{{SERVERNAME}}|incubator.wikimedia.org||EXPORT}}|interwiki|qid={{{1|{{{qid|}}}}}}}}</p></includeonly><noinclude> {{documentation}} </noinclude> 8lcerbshhnt6eq9bvcfpd9jyjwy31ht Modul:IncubatorInterwiki 828 11 12 2024-04-29T07:33:18Z Rtnf 73 Ngeja halaman dengen "local p = {} -- language codes with underscore '_', have to be translated to '-', to be readable for MediaWiki local langcode = { ['bat_smg'] = 'bat-smg', ['be_x_old'] = 'be-tarask', ['cbk_zam'] = 'cbk-zam', ['fiu_vro'] = 'fiu-vro', ['map_bms'] = 'map-bms', ['nds_nl'] = 'nds-nl', ['roa_rup'] = 'roa-rup', ['roa_tara'] = 'roa-tara', ['zh_classical'] = 'zh-classical', ['zh_min_nan'] = 'zh-min-nan', -- a comma has to be added when new lines are added ['zh_yue'..." Scribunto text/plain local p = {} -- language codes with underscore '_', have to be translated to '-', to be readable for MediaWiki local langcode = { ['bat_smg'] = 'bat-smg', ['be_x_old'] = 'be-tarask', ['cbk_zam'] = 'cbk-zam', ['fiu_vro'] = 'fiu-vro', ['map_bms'] = 'map-bms', ['nds_nl'] = 'nds-nl', ['roa_rup'] = 'roa-rup', ['roa_tara'] = 'roa-tara', ['zh_classical'] = 'zh-classical', ['zh_min_nan'] = 'zh-min-nan', -- a comma has to be added when new lines are added ['zh_yue'] = 'zh-yue' } -- Lookup for standard language codes (used in Incubator) to language codes used -- in dbnames in Wikimedia/Wikidata local lang2db_map = { ['be-tarask'] = 'be_x_old', ['gsw'] = 'als', ['lzh'] = 'zh_classical', ['nan'] = 'zh_min_nan', ['nb'] = 'no', ['nrf'] = 'nrm', ['rup'] = 'roa_rup', ['sgs'] = 'bat_smg', ['vro'] = 'fiu_vro', ['yue'] = 'zh_yue' } -- Mapping of Incubator test wiki project codes to database suffixes (used in Wikidata) -- and interwiki prefixes. local project_map = { ['Wb'] = {'wikibooks', 'b:'}, ['Wn'] = {'wikinews', 'n:'}, ['Wp'] = {'wiki', ''}, ['Wq'] = {'wikiquote', 'q:'}, ['Wt'] = {'wiktionary', 'wikt:'}, ['Wy'] = {'wikivoyage', 'voy:'} } -- Mapping of database suffixes and special sitelinks to interface message keys -- (like MediaWiki:Wikibase-otherprojects-commons) and URLs/URL patterns local db_map = { ['wikibooks'] = {'wikibooks', 'https://$1.wikibooks.org/wiki/'}, ['wikinews'] = {'wikinews', 'https://$1.wikinews.org/wiki/'}, ['wiki'] = {'wikipedia', 'https://$1.wikipedia.org/wiki/'}, ['wikiquote'] = {'wikiquote', 'https://$1.wikiquote.org/wiki/'}, ['wikisource'] = {'wikisource', 'https://$1.wikisource.org/wiki/'}, ['wikiversity'] = {'wikiversity', 'https://$1.wikiversity.org/wiki/'}, ['wikivoyage'] = {'wikivoyage', 'https://$1.wikivoyage.org/wiki/'}, ['wiktionary'] = {'wiktionary', 'https://$1.wiktionary.org/wiki/'}, ['commonswiki'] = {'commons', 'https://commons.wikimedia.org/wiki/'}, ['mediawikiwiki'] = {'mediawiki', 'https://mediawiki.org/wiki/'}, ['metawiki'] = {'meta', 'https://meta.wikimedia.org/wiki/'}, ['sourceswiki'] = {'sources', 'https://wikisource.org/wiki/'}, ['specieswiki'] = {'species', 'https://wikispecies.org/wiki/'}, ['wikidatawiki'] = {'wikidata', 'https://www.wikidata.org/wiki/'}, ['wikimaniawiki'] = {'wikimania', 'https://wikimania.wikimedia.org/wiki/'} } local function startsWith(str, start) return str:sub(1, #start) == start end local function endsWith(str, ending) return ending == '' or str:sub(-#ending) == ending end -- Check the validity of a page title format, and return the project & langcode if it is valid local function getPrefix(title) local pagenamesplit = mw.text.split(title, '/') if mw.ustring.match(pagenamesplit[1], 'W[bnpqty]') and #pagenamesplit >= 3 then return { pagenamesplit[1], pagenamesplit[2] } else return { 'Wp', 'NOLANGUAGECODE' } end end p.interwiki = function(frame) local s = {'[[Category:Maintenance:Pages using the interwiki template]]'} local qid = frame.args.qid or frame:getParent().args[1] or frame:getParent().args.qid or '' local prefix = getPrefix(mw.title.getCurrentTitle().text) local project = prefix[1] local thislang = prefix[2] thislang = lang2db_map[thislang] or thislang if not project then return nil elseif not mw.ustring.match( qid, '^[Qq][1-9]%d*$' ) then s = {'[[Category:Maintenance:Pages with invalid QID in interwiki template]]'} else local dbsuffix = project_map[project][1] local iwprefix = project_map[project][2] if qid then local entity = mw.wikibase.getEntity(qid) if entity and entity.sitelinks then for i, j in pairs(entity.sitelinks) do if db_map[j.site] or startsWith(j.site, thislang) then local sitedbsuffix = db_map[j.site] or db_map[mw.ustring.sub(j.site, #thislang+1)] if sitedbsuffix then local span = '<span class="wminc-otherprojects" data-project="' .. sitedbsuffix[1] .. '" data-url="' .. mw.ustring.gsub(mw.ustring.gsub(sitedbsuffix[2], '$1', thislang), '_', '-') .. mw.uri.encode(j.title, 'WIKI') .. '"></span>' table.insert(s, span) end elseif endsWith(j.site, dbsuffix) then local lang = mw.ustring.gsub(j.site, dbsuffix, '') if langcode[lang] or #lang <= 3 then -- Special case for the Norwegian Bokmål Wikipedia; -- use 'nb' instead of 'no' for that one site if j.site == 'nowiki' then lang = 'nb' end lang = langcode[lang] or lang local iwtext = '[[' .. lang .. ':' .. iwprefix .. j.title .. ']]' -- Special case for the Shawiya Wiktionary; -- unfortunately there is no way to link to it via -- interlanguage link from anything other than other -- Wiktionaries, so we need to skip it. if j.site == 'shywiktionary' or j.site == 'btmwiktionary' then iwtext = '<!--' .. iwtext .. '-->' end table.insert(s, iwtext) end end end end end end table.sort(s) return table.concat(s, '\n') end return p 5xq6an2xjwl1ph9j3816id24cbmg4ml Modul:IncubatorInterwikiEXPORT 828 12 13 2024-04-29T07:33:40Z Rtnf 73 Ngeja halaman dengen "-- This module should remained unused in the Wikimedia Incubator. -- It is meant to be exported to newly created wikis and be used there -- with the {{INTERWIKI}} template until Wikidata support is enabled -- for the wiki, and the template and module can be removed and deleted. local p = {} -- language codes with underscore '_', have to be translated to '-', to be readable for MediaWiki local langcode = { ['bat_smg'] = 'bat-smg', ['be_x_old'] = 'be-x-old', ['cbk_z..." Scribunto text/plain -- This module should remained unused in the Wikimedia Incubator. -- It is meant to be exported to newly created wikis and be used there -- with the {{INTERWIKI}} template until Wikidata support is enabled -- for the wiki, and the template and module can be removed and deleted. local p = {} -- language codes with underscore '_', have to be translated to '-', to be readable for MediaWiki local langcode = { ['bat_smg'] = 'bat-smg', ['be_x_old'] = 'be-x-old', ['cbk_zam'] = 'cbk-zam', ['fiu_vro'] = 'fiu-vro', ['map_bms'] = 'map-bms', ['nds_nl'] = 'nds-nl', ['roa_rup'] = 'roa-rup', ['roa_tara'] = 'roa-tara', ['zh_classical'] = 'zh-classical', ['zh_min_nan'] = 'zh-min-nan', -- a comma has to be added when new lines are added ['zh_yue'] = 'zh-yue' } local function endsWith(str, ending) return ending == '' or str:sub(-#ending) == ending end local function getProjectAndLanguage() local server = mw.ustring.gsub(mw.site.server, '//', '') local serversplit = mw.text.split(server, '%.') local lang = serversplit[1] local project = mw.ustring.gsub(serversplit[2], 'wikipedia', 'wiki') return {lang, project} end p.interwiki = function(frame) local s = {} -- If the page is connected to Wikidata, this module should do nothing. if mw.wikibase.getEntityIdForCurrentPage() then return '' end local qid = frame.args.qid or frame:getParent().args[1] or frame:getParent().args.qid or '' local thislang = getProjectAndLanguage()[1] local thisproject = getProjectAndLanguage()[2] thislang = mw.ustring.gsub(thislang, '-', '_') thislang = mw.ustring.gsub(thislang, 'be_tarask', 'be_x_old') if not mw.ustring.match( qid, '^[Qq][1-9]%d*$' ) then return '' else if qid then local entity = mw.wikibase.getEntity(qid) if entity and entity.sitelinks then for i, j in pairs(entity.sitelinks) do if endsWith(j.site, thisproject) then local lang = mw.ustring.gsub(j.site, thisproject, '') if (langcode[lang] or #lang <= 3) and lang ~= thislang then -- Special case for the Norwegian Bokmål Wikipedia; -- use 'nb' instead of 'no' for that one site if j.site == 'nowiki' then lang = 'nb' end lang = langcode[lang] or lang local iwtext = '[[' .. lang .. ':' .. j.title .. ']]' table.insert(s, iwtext) end end end end end end return table.concat(s, '\n') end return p fyq0scgsenehwap3fdrmq6oqlwswhgn