Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 

















Module:Template test case/data






Afrikaans
العربية
Azərbaycanca
تۆرکجه
Basa Bali
Bikol Central
Corsu
Cymraeg
Dansk
فارسی
Gaeilge


ि
Ilokano
Bahasa Indonesia
Íslenska

Kurdî
Ladin
Latviešu
ि
Македонски


Bahasa Melayu
Мокшень



ି

Pangasinan
Papiamentu
Português

Simple English
سنڌي
Slovenščina
Српски / srpski
Svenska
Tagalog
ி
 

Türkçe
Українська
Tiếng Vit


 

Edit links
 









Module
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Outreach
Wikisource
 
















Appearance
   

 





Permanently protected module

From Wikipedia, the free encyclopedia
 

< Module:Template test case

This module processes configuration data for use in Module:Template test case. It is loaded from the main module with mw.loadData.

-- This module processes configuration data for use in
-- [[Module:Template test case]]. It is loaded from the main module with
-- mw.loadData.

local cfg = require('Module:Template test case/config')

local function escapePattern(s)
 s = s:gsub('%p', '%%%0')
 return s
end

-- Escape config items that need to be used as patterns. Doing it here is more
-- efficient, as mw.loadData saves them from having to be computed for every
-- test case on a page.
cfg.templateNameMagicWordPattern = escapePattern(cfg.templateNameMagicWord)
cfg.sandboxSubpagePattern = '/' .. escapePattern(cfg.sandboxSubpage) .. '$'

return cfg

Retrieved from "https://en.wikipedia.org/w/index.php?title=Module:Template_test_case/data&oldid=880025587"

Hidden category: 
Wikipedia extended-confirmed-protected modules
 



This page was last edited on 24 January 2019, at 21:23 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki