{"id":16160813,"url":"https://github.com/kenny2github/bbcodecontent","last_synced_at":"2025-04-07T02:46:19.602Z","repository":{"id":119865508,"uuid":"148738132","full_name":"Kenny2github/BBCodeContent","owner":"Kenny2github","description":"A MediaWiki extension that adds a content model for BBCode pages","archived":false,"fork":false,"pushed_at":"2018-09-14T05:04:02.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T07:46:44.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Kenny2github.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-09-14T05:03:39.000Z","updated_at":"2020-03-12T14:42:26.000Z","dependencies_parsed_at":"2023-06-03T10:45:17.798Z","dependency_job_id":null,"html_url":"https://github.com/Kenny2github/BBCodeContent","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"0d33c03db873050cc2301a7a6cfb40b67e1bd0cd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny2github%2FBBCodeContent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny2github%2FBBCodeContent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny2github%2FBBCodeContent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny2github%2FBBCodeContent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kenny2github","download_url":"https://codeload.github.com/Kenny2github/BBCodeContent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247584060,"owners_count":20962071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-10T02:04:47.790Z","updated_at":"2025-04-07T02:46:19.572Z","avatar_url":"https://github.com/Kenny2github.png","language":"PHP","readme":"# BBCodeContent\n\nThis extension adds a new content model, \"BBCode\", that you can switch pages to.\n\n## Installation\n\nRun the following commands (assuming you're at your wiki's root, e.g. /w):\n```bash\ncd extensions\ngit clone https://github.com/Kenny2github/BBCodeContent.git\ncd ..\necho \"wfLoadExtension('BBCodeContent');\" \u003e\u003e LocalSettings.php\n```\n\n## Configuration\nThe only configuration variable is `$wgBBCCTags`, which controls how each different BBCode tag is interpreted.\n\nUse it as follows for a simple tag:\n```php\n$wgBBCCTags['red'] = [\n\t'\u003cspan style=\"color: red\"\u003e', // opening tag\n\t'\u003c/span\u003e', // closing tag\n\tfalse // if true, this is closed by a newline rather than a [/red]\n];\n```\nOr as follows for a tag with a parameter:\n```php\n// this is already in there by default\n$wgBBCCTags['url'] = [\n\t'\u003ca rel=\"nofollow\" href=\"{PARAM}\"\u003e', // {PARAM} is replaced by FOO in [url=FOO]\n\t'\u003c/a\u003e',\n\tfalse\n];\n```\nOr as follows for a complex tag that needs special things:\n```php\n$wgBBCCTags['randomcolor'] = function ($tag, $content, $param) {\n\t// $param is FOO in [randomcolor=FOO]\n\t// it is not used here\n\t// $content is BAR in [randomcolor]BAR[/randomcolor]\n\t// it is directly echoed (everything has already been put through htmlspecialchars)\n\t$out = '\u003cspan style=\"color: ';\n\t$out .= sprintf('#%06X', mt_rand(0, 0xFFFFFF));\n\t$out .= '\"\u003e';\n\t$out .= $content;\n\t$out .= '\u003c/span\u003e';\n\treturn $out;\n};\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenny2github%2Fbbcodecontent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenny2github%2Fbbcodecontent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenny2github%2Fbbcodecontent/lists"}