{"id":18794515,"url":"https://github.com/liquipedia/variableslua","last_synced_at":"2026-03-10T09:39:42.096Z","repository":{"id":45970785,"uuid":"130218145","full_name":"Liquipedia/VariablesLua","owner":"Liquipedia","description":"A Scribunto Lua interface for Extension:Variables","archived":false,"fork":false,"pushed_at":"2024-07-24T12:18:45.000Z","size":30,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-22T03:01:58.232Z","etag":null,"topics":["liquipedia","mediawiki","mediawiki-extension","scribunto"],"latest_commit_sha":null,"homepage":"https://liquipedia.net","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Liquipedia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-19T13:15:25.000Z","updated_at":"2025-05-21T17:36:06.000Z","dependencies_parsed_at":"2024-11-07T21:32:07.016Z","dependency_job_id":"0806f901-47b2-4361-a39a-a31fde1b70de","html_url":"https://github.com/Liquipedia/VariablesLua","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Liquipedia/VariablesLua","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liquipedia%2FVariablesLua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liquipedia%2FVariablesLua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liquipedia%2FVariablesLua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liquipedia%2FVariablesLua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Liquipedia","download_url":"https://codeload.github.com/Liquipedia/VariablesLua/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liquipedia%2FVariablesLua/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30328885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["liquipedia","mediawiki","mediawiki-extension","scribunto"],"created_at":"2024-11-07T21:29:39.232Z","updated_at":"2026-03-10T09:39:42.061Z","avatar_url":"https://github.com/Liquipedia.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VariablesLua\n![Code Style](https://github.com/Liquipedia/VariablesLua/workflows/Code%20Style/badge.svg)\n\nThis extension makes Extension:Variables work with Scribunto Lua. See https://liquipedia.net/commons/Help:VariablesLua for more information.\n\n# Installation\n* Extract the extension folder to extensions/VariablesLua/\n* Add the following line to LocalSettings.php:\n\n```\nwfLoadExtension( 'VariablesLua' );\n```\n\n# Dependencies\nThis extension requires Extension:Variables and Extension:Scribunto to be installed.\n\n# Examples\nThis is how some example calls to the extension could look like in a Scribunto module\n```lua\nlocal p = {} -- p stands for package\n\nfunction p.get(frame)\n\tlocal data = mw.ext.VariablesLua.var('variablename')\n\t-- data now holds the value of the variable \"variablename\"\n\treturn data\nend\n\nfunction p.set(frame)\n\tmw.ext.VariablesLua.vardefine('variablename', 'variablevalue')\n\t-- The variable \"variablename\" now holds the value \"variablevalue\"\nend\n\nfunction p.setecho(frame)\n\tlocal data = mw.ext.VariablesLua.vardefineecho('variablename', 'variablevalue')\n\t-- The variable \"variablename\" now holds the value \"variablevalue\"\n\t-- data now has the value \"variablevalue\"\n\treturn data\nend\n\nreturn p\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliquipedia%2Fvariableslua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliquipedia%2Fvariableslua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliquipedia%2Fvariableslua/lists"}