Module talk:First steps

Latest comment: 8 years ago by Gangleri in topic simple example

ns:829 · PAGEID: 147451 · links here · purge ↺ · section=0 ·#footer · REVISIONID: 4065809 · permanent link

mw:extension:Scribunto/Lua reference manual
→→ https://git.wikimedia.org/blob/ mediawiki / extensions/Scribunto
→→ mw:extension:Scribunto/Tim's draft roadmap Tim Starling talk
→→ mw:Extension:Scribunto/Victor's API proposal VasilievVV talk
local:special:Prefixindex/Module: local: talks · b: talks · c: talks · d: talks · d2: talks · m: talks · mw: talks · n: talks · q: talks · s: talks · t: talks · t2: talks · v: talks · voy: talks · w: talks · wikt talks · incubator talks · wmania talks · wm2016 talks · m:interwiki map

testwiki:module talk:Versuch (source) module · d:Q21850921 · √b:en: module · (layout: 2016-01-03…b LTR and RTL)‎ · √c: module · √d: module · √m: module · √mw: module · √n:en: module · √q:en: module · √v:en: module · √voy:en: module · √?!w:als: module · √w:ar: module · √w:as: module · √w:bar: module · √w:bn: module · √w:bo: module · √w:cs: module · √w:da: module · √w:de: module · √w:dsb: module · √w:en: module · √w:eo: module · √w:es: module · √w:fa: module · √w:fr: module · √?!w:gom: module · √w:hak: module · √w:he: module · √w:hsb: module · √w:is: module · √w:it: module · √w:ja: module · √w:ka: module · √w:km: module · √w:ko: module · √w:ksh: module · √w:pl: module · √w:pt: module · √?!√??w:mi: module · √w:ml: module · √w:mr: module · √?!w:no: module · √w:pa: module · √?!√??w:rmy: module · √w:ro: module · √w:ru: module · √w:si: module · √w:sv: module · √?!w:sr: module · √w:ta: module · √w:te: module · √?!√??w:tn: module · √??w:tr: module · √w:uk: module · √?w:vi: module · √w:yi: module · √wm2016: module · √wikt:ca: module · √wikt:en: module · #kavehoyz · #lua · #mediawiki · #mediawiki-i18n · #wikimania
→→ c:Module:TableTools d:Q15408619 · talk · c:Module:TableTools/doc talk
→→ betawiki:special:Translations/MediaWiki:Firststeps

simple example

edit
#top Purge

main01: MW

edit
{{#invoke:First steps|main01}}
generates:
 show / hide 
MW

type is: table

table#1 {

   ["addWarning"] = function#1,
   ["allToString"] = function#2,
   ["clone"] = function#3,
   ["dumpObject"] = function#4,
   ["executeFunction"] = function#5,
   ["ext"] = table#2 {
       ["ParserFunctions"] = table#3 {
           ["expr"] = function#6,
       },
       ["TitleBlacklist"] = table#4 {
           ["test"] = function#7,
       },
       ["data"] = table#5 {
           ["get"] = function#8,
       },
   },
   ["getContentLanguage"] = function#9,
   ["getCurrentFrame"] = function#10,
   ["getLanguage"] = function#11,
   ["hash"] = table#6 {
       ["hashValue"] = function#12,
       ["listAlgorithms"] = function#13,
   },
   ["html"] = table#7 {
       ["create"] = function#14,
   },
   ["incrementExpensiveFunctionCount"] = function#15,
   ["isSubsting"] = function#16,
   ["language"] = table#8 {
       ["fetchLanguageName"] = function#17,
       ["fetchLanguageNames"] = function#18,
       ["getContentLanguage"] = function#9,
       ["getFallbacksFor"] = function#19,
       ["isKnownLanguageTag"] = function#20,
       ["isSupportedLanguage"] = function#21,
       ["isValidBuiltInCode"] = function#22,
       ["isValidCode"] = function#23,
       ["new"] = function#11,
   },
   ["loadData"] = function#24,
   ["loadJsonData"] = function#25,
   ["log"] = function#26,
   ["logObject"] = function#27,
   ["message"] = table#9 {
       ["getDefaultLanguage"] = function#28,
       ["new"] = function#29,
       ["newFallbackSequence"] = function#30,
       ["newRawMessage"] = function#31,
       ["numParam"] = function#32,
       ["rawParam"] = function#33,
   },
   ["site"] = table#10 {
       ["contentNamespaces"] = table#11 {
           [0] = table#12 {
               ["aliases"] = table#13 {
               },
               ["associated"] = table#14 {
                   ["aliases"] = table#15 {
                   },
                   ["associated"] = table#12,
                   ["canonicalName"] = "Talk",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = true,
                   ["id"] = 1,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = false,
                   ["isTalk"] = true,
                   ["name"] = "Talk",
                   ["subject"] = table#12,
                   ["talk"] = table#14,
               },
               ["canonicalName"] = "",
               ["displayName"] = "(Main)",
               ["hasGenderDistinction"] = false,
               ["hasSubpages"] = false,
               ["id"] = 0,
               ["isCapitalized"] = true,
               ["isContent"] = true,
               ["isIncludable"] = true,
               ["isMovable"] = true,
               ["isSubject"] = true,
               ["isTalk"] = false,
               ["name"] = "",
               ["subject"] = table#12,
               ["talk"] = table#14,
           },
       },
       ["currentVersion"] = "1.44.0-wmf.1 (fbc8c4f)",
       ["interwikiMap"] = function#34,
       ["namespaces"] = table#16 {
           metatable = table#17
           table#14,
           table#18 {
               ["aliases"] = table#19 {
               },
               ["associated"] = table#20 {
                   ["aliases"] = table#21 {
                   },
                   ["associated"] = table#18,
                   ["canonicalName"] = "User talk",
                   ["hasGenderDistinction"] = true,
                   ["hasSubpages"] = true,
                   ["id"] = 3,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = false,
                   ["isTalk"] = true,
                   ["name"] = "User talk",
                   ["subject"] = table#18,
                   ["talk"] = table#20,
               },
               ["canonicalName"] = "User",
               ["hasGenderDistinction"] = true,
               ["hasSubpages"] = true,
               ["id"] = 2,
               ["isCapitalized"] = true,
               ["isContent"] = false,
               ["isIncludable"] = true,
               ["isMovable"] = true,
               ["isSubject"] = true,
               ["isTalk"] = false,
               ["name"] = "User",
               ["subject"] = table#18,
               ["talk"] = table#20,
           },
           table#20,
           table#22 {
               ["aliases"] = table#23 {
                   "WV",
               },
               ["associated"] = table#24 {
                   ["aliases"] = table#25 {
                   },
                   ["associated"] = table#22,
                   ["canonicalName"] = "Project talk",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = true,
                   ["id"] = 5,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = false,
                   ["isTalk"] = true,
                   ["name"] = "Wikivoyage talk",
                   ["subject"] = table#22,
                   ["talk"] = table#24,
               },
               ["canonicalName"] = "Project",
               ["hasGenderDistinction"] = false,
               ["hasSubpages"] = true,
               ["id"] = 4,
               ["isCapitalized"] = true,
               ["isContent"] = false,
               ["isIncludable"] = true,
               ["isMovable"] = true,
               ["isSubject"] = true,
               ["isTalk"] = false,
               ["name"] = "Wikivoyage",
               ["subject"] = table#22,
               ["talk"] = table#24,
           },
           table#24,
           table#26 {
               ["aliases"] = table#27 {
                   "Image",
               },
               ["associated"] = table#28 {
                   ["aliases"] = table#29 {
                       "Image_talk",
                   },
                   ["associated"] = table#26,
                   ["canonicalName"] = "File talk",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = true,
                   ["id"] = 7,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = false,
                   ["isTalk"] = true,
                   ["name"] = "File talk",
                   ["subject"] = table#26,
                   ["talk"] = table#28,
               },
               ["canonicalName"] = "File",
               ["hasGenderDistinction"] = false,
               ["hasSubpages"] = false,
               ["id"] = 6,
               ["isCapitalized"] = true,
               ["isContent"] = false,
               ["isIncludable"] = true,
               ["isMovable"] = true,
               ["isSubject"] = true,
               ["isTalk"] = false,
               ["name"] = "File",
               ["subject"] = table#26,
               ["talk"] = table#28,
           },
           table#28,
           table#30 {
               ["aliases"] = table#31 {
               },
               ["associated"] = table#32 {
                   ["aliases"] = table#33 {
                   },
                   ["associated"] = table#30,
                   ["canonicalName"] = "MediaWiki talk",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = true,
                   ["id"] = 9,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = false,
                   ["isTalk"] = true,
                   ["name"] = "MediaWiki talk",
                   ["subject"] = table#30,
                   ["talk"] = table#32,
               },
               ["canonicalName"] = "MediaWiki",
               ["hasGenderDistinction"] = false,
               ["hasSubpages"] = true,
               ["id"] = 8,
               ["isCapitalized"] = true,
               ["isContent"] = false,
               ["isIncludable"] = true,
               ["isMovable"] = true,
               ["isSubject"] = true,
               ["isTalk"] = false,
               ["name"] = "MediaWiki",
               ["subject"] = table#30,
               ["talk"] = table#32,
           },
           table#32,
           table#34 {
               ["aliases"] = table#35 {
               },
               ["associated"] = table#36 {
                   ["aliases"] = table#37 {
                   },
                   ["associated"] = table#34,
                   ["canonicalName"] = "Template talk",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = true,
                   ["id"] = 11,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = false,
                   ["isTalk"] = true,
                   ["name"] = "Template talk",
                   ["subject"] = table#34,
                   ["talk"] = table#36,
               },
               ["canonicalName"] = "Template",
               ["hasGenderDistinction"] = false,
               ["hasSubpages"] = true,
               ["id"] = 10,
               ["isCapitalized"] = true,
               ["isContent"] = false,
               ["isIncludable"] = true,
               ["isMovable"] = true,
               ["isSubject"] = true,
               ["isTalk"] = false,
               ["name"] = "Template",
               ["subject"] = table#34,
               ["talk"] = table#36,
           },
           table#36,
           table#38 {
               ["aliases"] = table#39 {
               },
               ["associated"] = table#40 {
                   ["aliases"] = table#41 {
                   },
                   ["associated"] = table#38,
                   ["canonicalName"] = "Help talk",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = true,
                   ["id"] = 13,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = false,
                   ["isTalk"] = true,
                   ["name"] = "Help talk",
                   ["subject"] = table#38,
                   ["talk"] = table#40,
               },
               ["canonicalName"] = "Help",
               ["hasGenderDistinction"] = false,
               ["hasSubpages"] = true,
               ["id"] = 12,
               ["isCapitalized"] = true,
               ["isContent"] = false,
               ["isIncludable"] = true,
               ["isMovable"] = true,
               ["isSubject"] = true,
               ["isTalk"] = false,
               ["name"] = "Help",
               ["subject"] = table#38,
               ["talk"] = table#40,
           },
           table#40,
           table#42 {
               ["aliases"] = table#43 {
               },
               ["associated"] = table#44 {
                   ["aliases"] = table#45 {
                   },
                   ["associated"] = table#42,
                   ["canonicalName"] = "Category talk",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = true,
                   ["id"] = 15,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = false,
                   ["isTalk"] = true,
                   ["name"] = "Category talk",
                   ["subject"] = table#42,
                   ["talk"] = table#44,
               },
               ["canonicalName"] = "Category",
               ["hasGenderDistinction"] = false,
               ["hasSubpages"] = false,
               ["id"] = 14,
               ["isCapitalized"] = true,
               ["isContent"] = false,
               ["isIncludable"] = true,
               ["isMovable"] = true,
               ["isSubject"] = true,
               ["isTalk"] = false,
               ["name"] = "Category",
               ["subject"] = table#42,
               ["talk"] = table#44,
           },
           table#44,
           [-2] = table#46 {
               ["aliases"] = table#47 {
               },
               ["canonicalName"] = "Media",
               ["hasGenderDistinction"] = false,
               ["hasSubpages"] = false,
               ["id"] = -2,
               ["isCapitalized"] = true,
               ["isContent"] = false,
               ["isIncludable"] = true,
               ["isMovable"] = false,
               ["isSubject"] = true,
               ["isTalk"] = false,
               ["name"] = "Media",
               ["subject"] = table#46,
           },
           [-1] = table#48 {
               ["aliases"] = table#49 {
               },
               ["canonicalName"] = "Special",
               ["hasGenderDistinction"] = false,
               ["hasSubpages"] = false,
               ["id"] = -1,
               ["isCapitalized"] = true,
               ["isContent"] = false,
               ["isIncludable"] = true,
               ["isMovable"] = false,
               ["isSubject"] = true,
               ["isTalk"] = false,
               ["name"] = "Special",
               ["subject"] = table#48,
           },
           [0] = table#12,
           [710] = table#50 {
               ["aliases"] = table#51 {
               },
               ["associated"] = table#52 {
                   ["aliases"] = table#53 {
                   },
                   ["associated"] = table#50,
                   ["canonicalName"] = "TimedText talk",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = false,
                   ["id"] = 711,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = false,
                   ["isTalk"] = true,
                   ["name"] = "TimedText talk",
                   ["subject"] = table#50,
                   ["talk"] = table#52,
               },
               ["canonicalName"] = "TimedText",
               ["hasGenderDistinction"] = false,
               ["hasSubpages"] = false,
               ["id"] = 710,
               ["isCapitalized"] = true,
               ["isContent"] = false,
               ["isIncludable"] = true,
               ["isMovable"] = true,
               ["isSubject"] = true,
               ["isTalk"] = false,
               ["name"] = "TimedText",
               ["subject"] = table#50,
               ["talk"] = table#52,
           },
           [711] = table#52,
           [828] = table#54 {
               ["aliases"] = table#55 {
               },
               ["associated"] = table#56 {
                   ["aliases"] = table#57 {
                   },
                   ["associated"] = table#54,
                   ["canonicalName"] = "Module talk",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = true,
                   ["id"] = 829,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = false,
                   ["isTalk"] = true,
                   ["name"] = "Module talk",
                   ["subject"] = table#54,
                   ["talk"] = table#56,
               },
               ["canonicalName"] = "Module",
               ["hasGenderDistinction"] = false,
               ["hasSubpages"] = true,
               ["id"] = 828,
               ["isCapitalized"] = true,
               ["isContent"] = false,
               ["isIncludable"] = true,
               ["isMovable"] = true,
               ["isSubject"] = true,
               ["isTalk"] = false,
               ["name"] = "Module",
               ["subject"] = table#54,
               ["talk"] = table#56,
           },
           [829] = table#56,
       },
       ["scriptPath"] = "/w",
       ["server"] = "//en.wikivoyage.org",
       ["siteName"] = "Wikivoyage",
       ["stats"] = table#58 {
           ["activeUsers"] = 559,
           ["admins"] = 37,
           ["articles"] = 32813,
           ["edits"] = 4957522,
           ["files"] = 1817,
           ["pages"] = 173209,
           ["pagesInCategory"] = function#35,
           ["pagesInNamespace"] = function#36,
           ["users"] = 2315114,
           ["usersInGroup"] = function#37,
       },
       ["stylePath"] = "/w/skins",
       ["subjectNamespaces"] = table#59 {
           [-2] = table#46,
           [-1] = table#48,
           [0] = table#12,
           [2] = table#18,
           [4] = table#22,
           [6] = table#26,
           [8] = table#30,
           [10] = table#34,
           [12] = table#38,
           [14] = table#42,
           [710] = table#50,
           [828] = table#54,
       },
       ["talkNamespaces"] = table#60 {
           table#14,
           [3] = table#20,
           [5] = table#24,
           [7] = table#28,
           [9] = table#32,
           [11] = table#36,
           [13] = table#40,
           [15] = table#44,
           [711] = table#52,
           [829] = table#56,
       },
   },
   ["text"] = table#61 {
       ["JSON_PRESERVE_KEYS"] = 1,
       ["JSON_PRETTY"] = 4,
       ["JSON_TRY_FIXING"] = 2,
       ["decode"] = function#38,
       ["encode"] = function#39,
       ["gsplit"] = function#40,
       ["jsonDecode"] = function#41,
       ["jsonEncode"] = function#42,
       ["killMarkers"] = function#43,
       ["listToText"] = function#44,
       ["nowiki"] = function#45,
       ["split"] = function#46,
       ["tag"] = function#47,
       ["trim"] = function#48,
       ["truncate"] = function#49,
       ["unstrip"] = function#50,
       ["unstripNoWiki"] = function#51,
   },
   ["title"] = table#62 {
       ["compare"] = function#52,
       ["equals"] = function#53,
       ["getCurrentTitle"] = function#54,
       ["makeTitle"] = function#55,
       ["new"] = function#56,
   },
   ["uri"] = table#63 {
       ["anchorEncode"] = function#57,
       ["buildQueryString"] = function#58,
       ["canonicalUrl"] = function#59,
       ["decode"] = function#60,
       ["encode"] = function#61,
       ["fullUrl"] = function#62,
       ["localUrl"] = function#63,
       ["new"] = function#64,
       ["parseQueryString"] = function#65,
       ["validate"] = function#66,
   },
   ["ustring"] = table#64 {
       ["byte"] = function#67,
       ["byteoffset"] = function#68,
       ["char"] = function#69,
       ["codepoint"] = function#70,
       ["find"] = function#71,
       ["format"] = function#72,
       ["gcodepoint"] = function#73,
       ["gmatch"] = function#74,
       ["gsub"] = function#75,
       ["isutf8"] = function#76,
       ["len"] = function#77,
       ["lower"] = function#78,
       ["match"] = function#79,
       ["maxPatternLength"] = 10000,
       ["maxStringLength"] = 2097152,
       ["rep"] = function#80,
       ["sub"] = function#81,
       ["toNFC"] = function#82,
       ["toNFD"] = function#83,
       ["toNFKC"] = function#84,
       ["toNFKD"] = function#85,
       ["upper"] = function#86,
   },
   ["wikibase"] = table#65 {
       ["description"] = function#87,
       ["entity"] = table#66 {
           ["claimRanks"] = table#67 {
               ["RANK_DEPRECATED"] = 0,
               ["RANK_NORMAL"] = 1,
               ["RANK_PREFERRED"] = 2,
               ["RANK_TRUTH"] = 3,
           },
           ["create"] = function#88,
       },
       ["entityExists"] = function#89,
       ["formatValue"] = function#90,
       ["formatValues"] = function#91,
       ["getAllStatements"] = function#92,
       ["getBadges"] = function#93,
       ["getBestStatements"] = function#94,
       ["getDescription"] = function#87,
       ["getDescriptionByLang"] = function#95,
       ["getDescriptionWithLang"] = function#96,
       ["getEntity"] = function#97,
       ["getEntityIdForCurrentPage"] = function#98,
       ["getEntityIdForTitle"] = function#99,
       ["getEntityObject"] = function#97,
       ["getEntityUrl"] = function#100,
       ["getGlobalSiteId"] = function#101,
       ["getLabel"] = function#102,
       ["getLabelByLang"] = function#103,
       ["getLabelWithLang"] = function#104,
       ["getPropertyOrder"] = function#105,
       ["getReferencedEntityId"] = function#106,
       ["getSitelink"] = function#107,
       ["isValidEntityId"] = function#108,
       ["label"] = function#102,
       ["lexeme"] = table#68 {
           ["splitLexemeId"] = function#109,
       },
       ["orderProperties"] = function#110,
       ["renderSnak"] = function#111,
       ["renderSnaks"] = function#112,
       ["resolvePropertyId"] = function#113,
       ["sitelink"] = function#107,
   },

}

  Done

I18n (talk) 13:23, 26 December 2015 (UTC)Reply
Gangleri (talk) 23:36, 2 January 2016 (UTC)Reply

main23: _G

edit
{{#invoke:First steps|main23}}
generates:
 show / hide 
_G

type is: table

table#1 {

   ["_G"] = table#1,
   ["_VERSION"] = "Lua 5.1",
   ["assert"] = function#1,
   ["debug"] = table#2 {
       ["traceback"] = function#2,
   },
   ["error"] = function#3,
   ["getmetatable"] = function#4,
   ["ipairs"] = function#5,
   ["math"] = table#3 {
       ["abs"] = function#6,
       ["acos"] = function#7,
       ["asin"] = function#8,
       ["atan"] = function#9,
       ["atan2"] = function#10,
       ["ceil"] = function#11,
       ["cos"] = function#12,
       ["cosh"] = function#13,
       ["deg"] = function#14,
       ["exp"] = function#15,
       ["floor"] = function#16,
       ["fmod"] = function#17,
       ["frexp"] = function#18,
       ["huge"] = inf,
       ["ldexp"] = function#19,
       ["log"] = function#20,
       ["log10"] = function#21,
       ["max"] = function#22,
       ["min"] = function#23,
       ["mod"] = function#17,
       ["modf"] = function#24,
       ["pi"] = 3.1415926535898,
       ["pow"] = function#25,
       ["rad"] = function#26,
       ["random"] = function#27,
       ["randomseed"] = function#28,
       ["sin"] = function#29,
       ["sinh"] = function#30,
       ["sqrt"] = function#31,
       ["tan"] = function#32,
       ["tanh"] = function#33,
   },
   ["mw"] = table#4 {
       ["addWarning"] = function#34,
       ["allToString"] = function#35,
       ["clone"] = function#36,
       ["dumpObject"] = function#37,
       ["executeFunction"] = function#38,
       ["ext"] = table#5 {
           ["ParserFunctions"] = table#6 {
               ["expr"] = function#39,
           },
           ["TitleBlacklist"] = table#7 {
               ["test"] = function#40,
           },
           ["data"] = table#8 {
               ["get"] = function#41,
           },
       },
       ["getContentLanguage"] = function#42,
       ["getCurrentFrame"] = function#43,
       ["getLanguage"] = function#44,
       ["hash"] = table#9 {
           ["hashValue"] = function#45,
           ["listAlgorithms"] = function#46,
       },
       ["html"] = table#10 {
           ["create"] = function#47,
       },
       ["incrementExpensiveFunctionCount"] = function#48,
       ["isSubsting"] = function#49,
       ["language"] = table#11 {
           ["fetchLanguageName"] = function#50,
           ["fetchLanguageNames"] = function#51,
           ["getContentLanguage"] = function#42,
           ["getFallbacksFor"] = function#52,
           ["isKnownLanguageTag"] = function#53,
           ["isSupportedLanguage"] = function#54,
           ["isValidBuiltInCode"] = function#55,
           ["isValidCode"] = function#56,
           ["new"] = function#44,
       },
       ["loadData"] = function#57,
       ["loadJsonData"] = function#58,
       ["log"] = function#59,
       ["logObject"] = function#60,
       ["message"] = table#12 {
           ["getDefaultLanguage"] = function#61,
           ["new"] = function#62,
           ["newFallbackSequence"] = function#63,
           ["newRawMessage"] = function#64,
           ["numParam"] = function#65,
           ["rawParam"] = function#66,
       },
       ["site"] = table#13 {
           ["contentNamespaces"] = table#14 {
               [0] = table#15 {
                   ["aliases"] = table#16 {
                   },
                   ["associated"] = table#17 {
                       ["aliases"] = table#18 {
                       },
                       ["associated"] = table#15,
                       ["canonicalName"] = "Talk",
                       ["hasGenderDistinction"] = false,
                       ["hasSubpages"] = true,
                       ["id"] = 1,
                       ["isCapitalized"] = true,
                       ["isContent"] = false,
                       ["isIncludable"] = true,
                       ["isMovable"] = true,
                       ["isSubject"] = false,
                       ["isTalk"] = true,
                       ["name"] = "Talk",
                       ["subject"] = table#15,
                       ["talk"] = table#17,
                   },
                   ["canonicalName"] = "",
                   ["displayName"] = "(Main)",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = false,
                   ["id"] = 0,
                   ["isCapitalized"] = true,
                   ["isContent"] = true,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = true,
                   ["isTalk"] = false,
                   ["name"] = "",
                   ["subject"] = table#15,
                   ["talk"] = table#17,
               },
           },
           ["currentVersion"] = "1.44.0-wmf.1 (fbc8c4f)",
           ["interwikiMap"] = function#67,
           ["namespaces"] = table#19 {
               metatable = table#20
               table#17,
               table#21 {
                   ["aliases"] = table#22 {
                   },
                   ["associated"] = table#23 {
                       ["aliases"] = table#24 {
                       },
                       ["associated"] = table#21,
                       ["canonicalName"] = "User talk",
                       ["hasGenderDistinction"] = true,
                       ["hasSubpages"] = true,
                       ["id"] = 3,
                       ["isCapitalized"] = true,
                       ["isContent"] = false,
                       ["isIncludable"] = true,
                       ["isMovable"] = true,
                       ["isSubject"] = false,
                       ["isTalk"] = true,
                       ["name"] = "User talk",
                       ["subject"] = table#21,
                       ["talk"] = table#23,
                   },
                   ["canonicalName"] = "User",
                   ["hasGenderDistinction"] = true,
                   ["hasSubpages"] = true,
                   ["id"] = 2,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = true,
                   ["isTalk"] = false,
                   ["name"] = "User",
                   ["subject"] = table#21,
                   ["talk"] = table#23,
               },
               table#23,
               table#25 {
                   ["aliases"] = table#26 {
                       "WV",
                   },
                   ["associated"] = table#27 {
                       ["aliases"] = table#28 {
                       },
                       ["associated"] = table#25,
                       ["canonicalName"] = "Project talk",
                       ["hasGenderDistinction"] = false,
                       ["hasSubpages"] = true,
                       ["id"] = 5,
                       ["isCapitalized"] = true,
                       ["isContent"] = false,
                       ["isIncludable"] = true,
                       ["isMovable"] = true,
                       ["isSubject"] = false,
                       ["isTalk"] = true,
                       ["name"] = "Wikivoyage talk",
                       ["subject"] = table#25,
                       ["talk"] = table#27,
                   },
                   ["canonicalName"] = "Project",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = true,
                   ["id"] = 4,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = true,
                   ["isTalk"] = false,
                   ["name"] = "Wikivoyage",
                   ["subject"] = table#25,
                   ["talk"] = table#27,
               },
               table#27,
               table#29 {
                   ["aliases"] = table#30 {
                       "Image",
                   },
                   ["associated"] = table#31 {
                       ["aliases"] = table#32 {
                           "Image_talk",
                       },
                       ["associated"] = table#29,
                       ["canonicalName"] = "File talk",
                       ["hasGenderDistinction"] = false,
                       ["hasSubpages"] = true,
                       ["id"] = 7,
                       ["isCapitalized"] = true,
                       ["isContent"] = false,
                       ["isIncludable"] = true,
                       ["isMovable"] = true,
                       ["isSubject"] = false,
                       ["isTalk"] = true,
                       ["name"] = "File talk",
                       ["subject"] = table#29,
                       ["talk"] = table#31,
                   },
                   ["canonicalName"] = "File",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = false,
                   ["id"] = 6,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = true,
                   ["isTalk"] = false,
                   ["name"] = "File",
                   ["subject"] = table#29,
                   ["talk"] = table#31,
               },
               table#31,
               table#33 {
                   ["aliases"] = table#34 {
                   },
                   ["associated"] = table#35 {
                       ["aliases"] = table#36 {
                       },
                       ["associated"] = table#33,
                       ["canonicalName"] = "MediaWiki talk",
                       ["hasGenderDistinction"] = false,
                       ["hasSubpages"] = true,
                       ["id"] = 9,
                       ["isCapitalized"] = true,
                       ["isContent"] = false,
                       ["isIncludable"] = true,
                       ["isMovable"] = true,
                       ["isSubject"] = false,
                       ["isTalk"] = true,
                       ["name"] = "MediaWiki talk",
                       ["subject"] = table#33,
                       ["talk"] = table#35,
                   },
                   ["canonicalName"] = "MediaWiki",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = true,
                   ["id"] = 8,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = true,
                   ["isTalk"] = false,
                   ["name"] = "MediaWiki",
                   ["subject"] = table#33,
                   ["talk"] = table#35,
               },
               table#35,
               table#37 {
                   ["aliases"] = table#38 {
                   },
                   ["associated"] = table#39 {
                       ["aliases"] = table#40 {
                       },
                       ["associated"] = table#37,
                       ["canonicalName"] = "Template talk",
                       ["hasGenderDistinction"] = false,
                       ["hasSubpages"] = true,
                       ["id"] = 11,
                       ["isCapitalized"] = true,
                       ["isContent"] = false,
                       ["isIncludable"] = true,
                       ["isMovable"] = true,
                       ["isSubject"] = false,
                       ["isTalk"] = true,
                       ["name"] = "Template talk",
                       ["subject"] = table#37,
                       ["talk"] = table#39,
                   },
                   ["canonicalName"] = "Template",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = true,
                   ["id"] = 10,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = true,
                   ["isTalk"] = false,
                   ["name"] = "Template",
                   ["subject"] = table#37,
                   ["talk"] = table#39,
               },
               table#39,
               table#41 {
                   ["aliases"] = table#42 {
                   },
                   ["associated"] = table#43 {
                       ["aliases"] = table#44 {
                       },
                       ["associated"] = table#41,
                       ["canonicalName"] = "Help talk",
                       ["hasGenderDistinction"] = false,
                       ["hasSubpages"] = true,
                       ["id"] = 13,
                       ["isCapitalized"] = true,
                       ["isContent"] = false,
                       ["isIncludable"] = true,
                       ["isMovable"] = true,
                       ["isSubject"] = false,
                       ["isTalk"] = true,
                       ["name"] = "Help talk",
                       ["subject"] = table#41,
                       ["talk"] = table#43,
                   },
                   ["canonicalName"] = "Help",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = true,
                   ["id"] = 12,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = true,
                   ["isTalk"] = false,
                   ["name"] = "Help",
                   ["subject"] = table#41,
                   ["talk"] = table#43,
               },
               table#43,
               table#45 {
                   ["aliases"] = table#46 {
                   },
                   ["associated"] = table#47 {
                       ["aliases"] = table#48 {
                       },
                       ["associated"] = table#45,
                       ["canonicalName"] = "Category talk",
                       ["hasGenderDistinction"] = false,
                       ["hasSubpages"] = true,
                       ["id"] = 15,
                       ["isCapitalized"] = true,
                       ["isContent"] = false,
                       ["isIncludable"] = true,
                       ["isMovable"] = true,
                       ["isSubject"] = false,
                       ["isTalk"] = true,
                       ["name"] = "Category talk",
                       ["subject"] = table#45,
                       ["talk"] = table#47,
                   },
                   ["canonicalName"] = "Category",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = false,
                   ["id"] = 14,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = true,
                   ["isTalk"] = false,
                   ["name"] = "Category",
                   ["subject"] = table#45,
                   ["talk"] = table#47,
               },
               table#47,
               [-2] = table#49 {
                   ["aliases"] = table#50 {
                   },
                   ["canonicalName"] = "Media",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = false,
                   ["id"] = -2,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = false,
                   ["isSubject"] = true,
                   ["isTalk"] = false,
                   ["name"] = "Media",
                   ["subject"] = table#49,
               },
               [-1] = table#51 {
                   ["aliases"] = table#52 {
                   },
                   ["canonicalName"] = "Special",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = false,
                   ["id"] = -1,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = false,
                   ["isSubject"] = true,
                   ["isTalk"] = false,
                   ["name"] = "Special",
                   ["subject"] = table#51,
               },
               [0] = table#15,
               [710] = table#53 {
                   ["aliases"] = table#54 {
                   },
                   ["associated"] = table#55 {
                       ["aliases"] = table#56 {
                       },
                       ["associated"] = table#53,
                       ["canonicalName"] = "TimedText talk",
                       ["hasGenderDistinction"] = false,
                       ["hasSubpages"] = false,
                       ["id"] = 711,
                       ["isCapitalized"] = true,
                       ["isContent"] = false,
                       ["isIncludable"] = true,
                       ["isMovable"] = true,
                       ["isSubject"] = false,
                       ["isTalk"] = true,
                       ["name"] = "TimedText talk",
                       ["subject"] = table#53,
                       ["talk"] = table#55,
                   },
                   ["canonicalName"] = "TimedText",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = false,
                   ["id"] = 710,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = true,
                   ["isTalk"] = false,
                   ["name"] = "TimedText",
                   ["subject"] = table#53,
                   ["talk"] = table#55,
               },
               [711] = table#55,
               [828] = table#57 {
                   ["aliases"] = table#58 {
                   },
                   ["associated"] = table#59 {
                       ["aliases"] = table#60 {
                       },
                       ["associated"] = table#57,
                       ["canonicalName"] = "Module talk",
                       ["hasGenderDistinction"] = false,
                       ["hasSubpages"] = true,
                       ["id"] = 829,
                       ["isCapitalized"] = true,
                       ["isContent"] = false,
                       ["isIncludable"] = true,
                       ["isMovable"] = true,
                       ["isSubject"] = false,
                       ["isTalk"] = true,
                       ["name"] = "Module talk",
                       ["subject"] = table#57,
                       ["talk"] = table#59,
                   },
                   ["canonicalName"] = "Module",
                   ["hasGenderDistinction"] = false,
                   ["hasSubpages"] = true,
                   ["id"] = 828,
                   ["isCapitalized"] = true,
                   ["isContent"] = false,
                   ["isIncludable"] = true,
                   ["isMovable"] = true,
                   ["isSubject"] = true,
                   ["isTalk"] = false,
                   ["name"] = "Module",
                   ["subject"] = table#57,
                   ["talk"] = table#59,
               },
               [829] = table#59,
           },
           ["scriptPath"] = "/w",
           ["server"] = "//en.wikivoyage.org",
           ["siteName"] = "Wikivoyage",
           ["stats"] = table#61 {
               ["activeUsers"] = 559,
               ["admins"] = 37,
               ["articles"] = 32813,
               ["edits"] = 4957522,
               ["files"] = 1817,
               ["pages"] = 173209,
               ["pagesInCategory"] = function#68,
               ["pagesInNamespace"] = function#69,
               ["users"] = 2315114,
               ["usersInGroup"] = function#70,
           },
           ["stylePath"] = "/w/skins",
           ["subjectNamespaces"] = table#62 {
               [-2] = table#49,
               [-1] = table#51,
               [0] = table#15,
               [2] = table#21,
               [4] = table#25,
               [6] = table#29,
               [8] = table#33,
               [10] = table#37,
               [12] = table#41,
               [14] = table#45,
               [710] = table#53,
               [828] = table#57,
           },
           ["talkNamespaces"] = table#63 {
               table#17,
               [3] = table#23,
               [5] = table#27,
               [7] = table#31,
               [9] = table#35,
               [11] = table#39,
               [13] = table#43,
               [15] = table#47,
               [711] = table#55,
               [829] = table#59,
           },
       },
       ["text"] = table#64 {
           ["JSON_PRESERVE_KEYS"] = 1,
           ["JSON_PRETTY"] = 4,
           ["JSON_TRY_FIXING"] = 2,
           ["decode"] = function#71,
           ["encode"] = function#72,
           ["gsplit"] = function#73,
           ["jsonDecode"] = function#74,
           ["jsonEncode"] = function#75,
           ["killMarkers"] = function#76,
           ["listToText"] = function#77,
           ["nowiki"] = function#78,
           ["split"] = function#79,
           ["tag"] = function#80,
           ["trim"] = function#81,
           ["truncate"] = function#82,
           ["unstrip"] = function#83,
           ["unstripNoWiki"] = function#84,
       },
       ["title"] = table#65 {
           ["compare"] = function#85,
           ["equals"] = function#86,
           ["getCurrentTitle"] = function#87,
           ["makeTitle"] = function#88,
           ["new"] = function#89,
       },
       ["uri"] = table#66 {
           ["anchorEncode"] = function#90,
           ["buildQueryString"] = function#91,
           ["canonicalUrl"] = function#92,
           ["decode"] = function#93,
           ["encode"] = function#94,
           ["fullUrl"] = function#95,
           ["localUrl"] = function#96,
           ["new"] = function#97,
           ["parseQueryString"] = function#98,
           ["validate"] = function#99,
       },
       ["ustring"] = table#67 {
           ["byte"] = function#100,
           ["byteoffset"] = function#101,
           ["char"] = function#102,
           ["codepoint"] = function#103,
           ["find"] = function#104,
           ["format"] = function#105,
           ["gcodepoint"] = function#106,
           ["gmatch"] = function#107,
           ["gsub"] = function#108,
           ["isutf8"] = function#109,
           ["len"] = function#110,
           ["lower"] = function#111,
           ["match"] = function#112,
           ["maxPatternLength"] = 10000,
           ["maxStringLength"] = 2097152,
           ["rep"] = function#113,
           ["sub"] = function#114,
           ["toNFC"] = function#115,
           ["toNFD"] = function#116,
           ["toNFKC"] = function#117,
           ["toNFKD"] = function#118,
           ["upper"] = function#119,
       },
       ["wikibase"] = table#68 {
           ["description"] = function#120,
           ["entity"] = table#69 {
               ["claimRanks"] = table#70 {
                   ["RANK_DEPRECATED"] = 0,
                   ["RANK_NORMAL"] = 1,
                   ["RANK_PREFERRED"] = 2,
                   ["RANK_TRUTH"] = 3,
               },
               ["create"] = function#121,
           },
           ["entityExists"] = function#122,
           ["formatValue"] = function#123,
           ["formatValues"] = function#124,
           ["getAllStatements"] = function#125,
           ["getBadges"] = function#126,
           ["getBestStatements"] = function#127,
           ["getDescription"] = function#120,
           ["getDescriptionByLang"] = function#128,
           ["getDescriptionWithLang"] = function#129,
           ["getEntity"] = function#130,
           ["getEntityIdForCurrentPage"] = function#131,
           ["getEntityIdForTitle"] = function#132,
           ["getEntityObject"] = function#130,
           ["getEntityUrl"] = function#133,
           ["getGlobalSiteId"] = function#134,
           ["getLabel"] = function#135,
           ["getLabelByLang"] = function#136,
           ["getLabelWithLang"] = function#137,
           ["getPropertyOrder"] = function#138,
           ["getReferencedEntityId"] = function#139,
           ["getSitelink"] = function#140,
           ["isValidEntityId"] = function#141,
           ["label"] = function#135,
           ["lexeme"] = table#71 {
               ["splitLexemeId"] = function#142,
           },
           ["orderProperties"] = function#143,
           ["renderSnak"] = function#144,
           ["renderSnaks"] = function#145,
           ["resolvePropertyId"] = function#146,
           ["sitelink"] = function#140,
       },
   },
   ["next"] = function#147,
   ["os"] = table#72 {
       ["clock"] = function#148,
       ["date"] = function#149,
       ["difftime"] = function#150,
       ["time"] = function#151,
   },
   ["package"] = table#73 {
       ["loaded"] = table#74 {
           ["Module:TableTools"] = table#75 {
               ["affixNums"] = function#152,
               ["compressSparseArray"] = function#153,
               ["deepCopy"] = function#154,
               ["inArray"] = function#155,
               ["invert"] = function#156,
               ["isArray"] = function#157,
               ["isNan"] = function#158,
               ["isPositiveInteger"] = function#159,
               ["keysToList"] = function#160,
               ["length"] = function#161,
               ["listToSet"] = function#162,
               ["numData"] = function#163,
               ["numKeys"] = function#164,
               ["removeDuplicates"] = function#165,
               ["shallowClone"] = function#166,
               ["size"] = function#167,
               ["sortedPairs"] = function#168,
               ["sparseConcat"] = function#169,
               ["sparseIpairs"] = function#170,
           },
           ["_G"] = table#1,
           ["debug"] = table#2,
           ["libraryUtil"] = table#76 {
               ["checkType"] = function#171,
               ["checkTypeForIndex"] = function#172,
               ["checkTypeForNamedArg"] = function#173,
               ["checkTypeMulti"] = function#174,
               ["makeCheckSelfFunction"] = function#175,
           },
           ["math"] = table#3,
           ["mw"] = table#4,
           ["mw.ext.ParserFunctions"] = table#6,
           ["mw.ext.TitleBlacklist"] = table#7,
           ["mw.ext.data"] = table#8,
           ["mw.hash"] = table#9,
           ["mw.html"] = table#10,
           ["mw.language"] = table#11,
           ["mw.message"] = table#12,
           ["mw.site"] = table#13,
           ["mw.text"] = table#64,
           ["mw.title"] = table#65,
           ["mw.uri"] = table#66,
           ["mw.ustring"] = table#67,
           ["mw.wikibase"] = table#68,
           ["mw.wikibase.entity"] = table#69,
           ["mw.wikibase.lexeme"] = table#71,
           ["os"] = table#72,
           ["package"] = table#73,
           ["string"] = table#77 {
               ["byte"] = function#100,
               ["char"] = function#176,
               ["find"] = function#177,
               ["format"] = function#105,
               ["gfind"] = function#178,
               ["gmatch"] = function#178,
               ["gsub"] = function#179,
               ["len"] = function#180,
               ["lower"] = function#181,
               ["match"] = function#182,
               ["rep"] = function#113,
               ["reverse"] = function#183,
               ["sub"] = function#184,
               ["ulower"] = function#111,
               ["upper"] = function#185,
               ["uupper"] = function#119,
           },
           ["table"] = table#78 {
               ["concat"] = function#186,
               ["foreach"] = function#187,
               ["foreachi"] = function#188,
               ["getn"] = function#189,
               ["insert"] = function#190,
               ["maxn"] = function#191,
               ["remove"] = function#192,
               ["setn"] = function#193,
               ["sort"] = function#194,
           },
       },
       ["loaders"] = table#79 {
           function#195,
           function#196,
       },
       ["preload"] = table#80 {
       },
       ["seeall"] = function#197,
   },
   ["pairs"] = function#198,
   ["pcall"] = function#199,
   ["rawequal"] = function#200,
   ["rawget"] = function#201,
   ["rawset"] = function#202,
   ["require"] = function#203,
   ["select"] = function#204,
   ["setmetatable"] = function#205,
   ["string"] = table#77,
   ["table"] = table#78,
   ["tonumber"] = function#206,
   ["tostring"] = function#207,
   ["type"] = function#208,
   ["unpack"] = function#209,
   ["xpcall"] = function#210,

}

  Done

I18n (talk) 13:23, 26 December 2015 (UTC)Reply
Gangleri (talk) 23:36, 2 January 2016 (UTC)Reply

more examples

edit
#top Purge

soon

edit

unfinished

edit
#top Purge
{{#invoke:module|function|args}}
generates:
{{#invoke:module|function|args}}

comments

edit
Best regards Gangleri also aka I18n (talk) 03:33, 28 December 2015 (UTC)Reply
end of page #top
Return to "First steps" page.