Skip to content

Commit 33ec752

Browse files
authored
Merge pull request #19 from Roblox-Indie-Wikis/development
Release version 1.2.0
2 parents bfad3bb + d938eb8 commit 33ec752

38 files changed

+2120
-538
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
- mw: 'REL1_42'
2121
php: 8.1
2222
experimental: false
23+
- mw: 'REL1_43'
24+
php: 8.1
25+
experimental: false
2326
- mw: 'master'
2427
php: 8.1
2528
experimental: true

CONTRIBUTING.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Contributing
22

3+
- [Contributing](#contributing)
4+
* [Requesting a new data source](#requesting-a-new-data-source)
5+
+ [Requirements](#requirements)
6+
* [Developing on the RobloxAPI extension](#developing-on-the-robloxapi-extension)
7+
+ [Installing dependencies](#installing-dependencies)
8+
+ [Running tests](#running-tests)
9+
- [PHP unit tests](#php-unit-tests)
10+
- [Parser tests](#parser-tests)
11+
- [JavaScript tests](#javascript-tests)
12+
+ [Code Style](#code-style)
13+
* [Releasing a new version](#releasing-a-new-version)
14+
15+
## Requesting a new data source
16+
17+
If you would like to request a new data source, please open an issue on the GitHub repository. Please use the
18+
*Roblox API endpoint request* template.
19+
20+
### Requirements
21+
22+
A data source must fulfill the following requirements:
23+
24+
* It must be accessible without authentication
25+
* It must be an official endpoint provided by Roblox
26+
* It must not require multiple requests to be made (if this is required, consider requesting two separate data sources)
27+
328
## Developing on the RobloxAPI extension
429

530
### Installing dependencies
@@ -38,3 +63,15 @@ Running `npm test`will run automated code checks.
3863
The PHP part of this project follows
3964
the [MediaWiki coding conventions](https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP). The code formatting is
4065
enforced by the CI pipeline which runs phan before a PR can be merged.
66+
67+
## Releasing a new version
68+
69+
This guide is only for maintainers of the extension.
70+
71+
1. Update the version number in `extension.json`
72+
2. Update the documentation if there were any relevant changes
73+
3. Merge development into master
74+
4. Create a new release on GitHub
75+
5. Close milestone (if applicable)
76+
6. Create a branch from master with the version number as the branch name, e.g. `ver/1.1.0`
77+
7. Update the documentation on mediawiki.org if there were any relevant changes

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,35 @@
22

33
A MediaWiki extension which provides easy access to the Roblox API via parser functions. The Roblox API is generally
44
very poorly documented, and using ExternalData or Lua can be hard or not viable for all wiki users. This extension aims
5-
to make it easy for you to grab data from Roblox and put it on your wiki. Formerly developed by [Dovedale Wiki](https://github.com/dovedalewiki).
5+
to make it easy for you to grab data from Roblox and put it on your wiki. Formerly developed
6+
by [Dovedale Wiki](https://github.com/dovedalewiki).
67

78
> [!NOTE]
8-
> This extension is still in development.
9+
> In version 1.2.0, major changes have been made to the extension. The new `{{#robloxAPI}}` parser function provides new
10+
> features and should now be the only one used to access the Roblox API. While the old parser functions remain working
11+
> as before, they might be removed in a future version.
12+
>
13+
> Please see the [USAGE.md](USAGE.md#Migrating-from-the-old-parser-functions) file for the latest documentation on how
14+
> to use the extension.
915
10-
Live Examples:
11-
https://dovedale.wiki
12-
https://hybridcafe.wiki
13-
https://utg.miraheze.org
16+
Live Examples:
17+
18+
* [Dovedale Wiki](https://dovedale.wiki/)
19+
* [Hybrid Cafe Wiki](https://hybridcafe.wiki/)
20+
* [UTG Wiki](https://utg.miraheze.org/)
1421

1522
## Installation
1623

1724
1. Download the repository using the following
1825
link: [Download ZIP](https://github.com/Roblox-Indie-Wikis/mediawiki-extensions-RobloxAPI/archive/master.zip)
1926
2. Place the files in a directory called `RobloxAPI` in your `extensions/` folder.
20-
2. Add the following line to the end of your `LocalSettings.php` file:
27+
3. Add the following line to the end of your `LocalSettings.php` file:
2128
```php
2229
wfLoadExtension( 'RobloxAPI' );
2330
```
2431

25-
Miraheze users may use ManageWiki to install this extension. Search for 'RobloxAPI' in [[Special:ManageWiki]] and install it with a
26-
click.
32+
Miraheze users may use ManageWiki to install this extension. Search for 'RobloxAPI' in *Special:ManageWiki* and
33+
install it with a click.
2734

2835
## Usage
2936

RobloxAPI.i18n.magic.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@
2020

2121
$magicWords = [];
2222
$magicWords['en'] = [
23-
'roblox_grouprank' => [ 0, 'rblxGroupRank' ],
24-
'roblox_activeplayers' => [ 0, 'rblxPlaceActivePlayers' ],
25-
'roblox_visits' => [ 0, 'rblxPlaceVisits' ],
26-
'roblox_groupmembers' => [ 0, 'rblxGroupMembers' ],
27-
'roblox_useravatarthumbnailurl' => [ 0, 'rblxUserAvatarThumbnailUrl' ],
28-
'roblox_userid' => [ 0, 'rblxUserId' ],
29-
// data source parser functions
23+
'robloxapi' => [ 0, 'robloxAPI' ],
24+
// DEPRECATED - all of these parser functions are replaced by #robloxAPI and might be removed in the future
25+
'roblox_GroupRank' => [ 0, 'rblxGroupRank' ],
26+
'roblox_ActivePlayers' => [ 0, 'rblxPlaceActivePlayers' ],
27+
'roblox_Visits' => [ 0, 'rblxPlaceVisits' ],
28+
'roblox_GroupMembers' => [ 0, 'rblxGroupMembers' ],
29+
'roblox_UserAvatarThumbnailUrl' => [ 0, 'rblxUserAvatarThumbnailUrl' ],
30+
'roblox_UserId' => [ 0, 'rblxUserId' ],
3031
'roblox_GameData' => [ 0, 'rblxGameData' ],
3132
'roblox_GroupRoles' => [ 0, 'rblxGroupRoles' ],
3233
'roblox_GroupData' => [ 0, 'rblxGroupData' ],

SECURITY.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
## Reporting a Vulnerability
44

5-
To report a vulnerability, it is strongly adviced to file a security advisory on GitHub:
6-
https://github.com/Roblox-Indie-Wikis/mediawiki-extensions-RobloxAPI/security/advisories/new
5+
To report a vulnerability, it is strongly advised to file a security advisory on GitHub:
6+
[Report a security advisory](https://github.com/Roblox-Indie-Wikis/mediawiki-extensions-RobloxAPI/security/advisories/new)
77

88
If you do not want to use GitHub for this, please contact the main maintainer of this repository at
9+
910
- thisisnotmyname275@gmail.com (E-Mail)
1011
- @abaddriverlol (Discord)

0 commit comments

Comments
 (0)