Title: Editing Module:Transclusion count - freem URL Source: https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count Markdown Content: [](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count#) - [x] * [Home](https://freemwiki.com/wiki/Main_Page) * [Random](https://freemwiki.com/wiki/Special:Random) * [Log in](https://freemwiki.com/index.php?title=Special:UserLogin&returnto=Module%3ATransclusion+count&returntoquery=action%3Dedit%26mobileaction%3Dtoggle_view_mobile) * [Settings](https://freemwiki.com/index.php?title=Special:MobileOptions&returnto=Module%3ATransclusion+count) * [About](https://freemwiki.com/wiki/About) * [Terms of Service](https://freemwiki.com/wiki/Terms_of_Service) [freem](https://freemwiki.com/wiki/Main_Page) Search # Editing Module:Transclusion count **Warning:** You are not logged in. Your IP address will be publicly visible if you make any edits. If you **[log in](https://freemwiki.com/index.php?title=Special:UserLogin&returnto=Module%3ATransclusion_count&returntoquery=action%3Dedit%26mobileaction%3Dtoggle_view_mobile)** or **[create an account](https://freemwiki.com/index.php?title=Special:CreateAccount&returnto=Module%3ATransclusion_count&returntoquery=action%3Dedit%26mobileaction%3Dtoggle_view_mobile)**, your edits will be attributed to your username, along with other benefits. Anti-spam check. Do **not** fill this in! [](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Toggle code editor") [](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Indent")[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Outdent") [](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Toggle invisible characters")[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Toggle line wrapping")[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Go to line number...")[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Toggle search and replace dialog") [](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Bold")[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Italic") [](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Link")[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Images and media") [Advanced](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count)[Special characters](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count)[Help](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count) [Heading](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count) [Level 2](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count)[Level 3](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count)[Level 4](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count)[Level 5](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count) Format[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Bulleted list")[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Numbered list")[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "No wiki formatting")[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "New line") [](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Big")[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Small")[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Superscript")[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Subscript") Insert[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Picture gallery")[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Redirect")[](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Table") [](https://freemwiki.com/index.php?action=edit&mobileaction=toggle_view_mobile&title=Module%3ATransclusion_count "Search and replace") Latin Latin extended IPA Symbols Greek Greek extended Cyrillic Arabic Arabic extended Hebrew Bangla Tamil Telugu Sinhala Devanagari Gujarati Thai Lao Khmer Canadian Aboriginal Runes Á á À à  â Ä ä à ã Ǎ ǎ Ā ā Ă ă Ą ą Å å Ć ć Ĉ ĉ Ç ç Č č Ċ ċ Đ đ Ď ď É é È è Ê ê Ë ë Ě ě Ē ē Ĕ ĕ Ė ė Ę ę Ĝ ĝ Ģ ģ Ğ ğ Ġ ġ Ĥ ĥ Ħ ħ Í í Ì ì Î î Ï ï Ĩ ĩ Ǐ ǐ Ī ī Ĭ ĭ İ ı Į į Ĵ ĵ Ķ ķ Ĺ ĺ Ļ ļ Ľ ľ Ł ł Ń ń Ñ ñ Ņ ņ Ň ň Ó ó Ò ò Ô ô Ö ö Õ õ Ǒ ǒ Ō ō Ŏ ŏ Ǫ ǫ Ő ő Ŕ ŕ Ŗ ŗ Ř ř Ś ś Ŝ ŝ Ş ş Š š Ș ș Ț ț Ť ť Ú ú Ù ù Û û Ü ü Ũ ũ Ů ů Ǔ ǔ Ū ū ǖ ǘ ǚ ǜ Ŭ ŭ Ų ų Ű ű Ŵ ŵ Ý ý Ŷ ŷ Ÿ ÿ Ȳ ȳ Ź ź Ž ž Ż ż Æ æ Ǣ ǣ Ø ø Œ œ ß Ð ð Þ þ Ə ə Formatting Links Headings Lists Files Discussion | Description | What you type | What you get | | --- | --- | --- | | Italic | ''Italic text'' | _Italic text_ | | Bold | '''Bold text''' | **Bold text** | | Bold & italic | '''''Bold & italic text''''' | **_Bold & italic text_** | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 local p={} function p._fetch(args) local template=nil local return_value=nil -- Use demo parameter if it exists, otherwise use current template name local namespace=mw.title.getCurrentTitle().namespace if args["demo"]and args["demo"]~=""then template=mw.ustring.gsub(args["demo"],"^[Tt]emplate:","") elseif namespace==10 then-- Template namespace template=mw.title.getCurrentTitle().text elseif namespace==828 then-- Module namespace template=(mw.site.namespaces[828].name..":"..mw.title.getCurrentTitle().text) end -- If in template or module namespace, look up count in /data if template~=nil then namespace=mw.title.new(template, "Template").namespace if namespace==10 or namespace==828 then template=mw.ustring.gsub(template, "/doc$", "")-- strip /doc from end template=mw.ustring.gsub(template, "/sandbox$", "")-- strip /sandbox from end local index=mw.ustring.sub(mw.title.new(template).text,1,1) local status, data=pcall(function() return(mw.loadData('Module:Transclusion_count/data/'..(mw.ustring.find(index, "%a")and index or"other"))) end) הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 0 0 0 1:0 Summary: Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see [Freem:Copyrights](https://freemwiki.com/index.php?title=Freem:Copyrights&action=edit&redlink=1 "Freem:Copyrights (page does not exist)") for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here. You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. **Do not submit copyrighted work without permission!** [Cancel](https://freemwiki.com/wiki/Module:Transclusion_count)[Editing help](https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Editing_pages) (opens in new window) Debug console * The module exports are available as the variable "p", including unsaved modifications. * Precede a line with "=" to evaluate it as an expression or use print(). Use mw.logObject() for tables. * Use mw.log() and mw.logObject() in module code to send messages to this console. Template used on this page: * [Module:Transclusion count/doc](https://freemwiki.com/index.php?title=Module:Transclusion_count/doc&action=edit&redlink=1 "Module:Transclusion count/doc (page does not exist)") ([edit](https://freemwiki.com/index.php?title=Module:Transclusion_count/doc&action=edit "Module:Transclusion count/doc (page does not exist)")) Retrieved from "[https://freemwiki.com/wiki/Module:Transclusion_count](https://freemwiki.com/wiki/Module:Transclusion_count)" #### Languages This page is not available in other languages. freem * [Privacy Policy](https://freemwiki.com/wiki/Privacy_Policy) * [About](https://freemwiki.com/wiki/About) * [Terms of Service](https://freemwiki.com/wiki/Terms_of_Service) * [Desktop](https://freemwiki.com/index.php?title=Module:Transclusion_count&action=edit&mobileaction=toggle_view_desktop)