Main Page: Difference between revisions
Jump to navigation
Jump to search
(Formatting courtesy of ChatGPT 4o) |
(add templates) |
||
| Line 20: | Line 20: | ||
* Run <code>php maintenance/update.php --quick</code>. | * Run <code>php maintenance/update.php --quick</code>. | ||
* Visit <code>Special:CustomQuerySettings</code>, set the ROUTINE tag (e.g., <code>ROUTINE_4.110</code>), and confirm <code>Special:ApprovedManuals</code>. | * Visit <code>Special:CustomQuerySettings</code>, set the ROUTINE tag (e.g., <code>ROUTINE_4.110</code>), and confirm <code>Special:ApprovedManuals</code>. | ||
= Quick Start: ROUTINE Management = | = Quick Start: ROUTINE Management = | ||
| Line 118: | Line 38: | ||
* Go to: <code>Special:CustomQuerySettings</code> | * Go to: <code>Special:CustomQuerySettings</code> | ||
* Two options: | * Two options: | ||
** | ** '''Set Active Tag''' — type <code>ROUTINE_4.111</code>, then Save. | ||
** | ** '''Clone ROUTINE → New ROUTINE''': | ||
*** From: <code>ROUTINE_4.110</code> | *** From: <code>ROUTINE_4.110</code> | ||
*** To: <code>ROUTINE_4.111</code> | *** To: <code>ROUTINE_4.111</code> | ||
| Line 142: | Line 62: | ||
** Maintenance script that reads JSON | ** Maintenance script that reads JSON | ||
Once defined, | Once defined, MediaWiki can import directly into <code>mw_tags</code> / <code>mw_tag_pages</code>. | ||
{{Warning|Avoid touching the | {{Warning|Avoid touching the database manually if you want to adopt the JSON route. The importer will safely handle all insertions.}} | ||
Revision as of 20:12, 21 January 2026
MediaWiki has been installed.
Consult the User's Guide for information on using the wiki software.
Getting started
- Configuration settings list
- MediaWiki FAQ
- MediaWiki release mailing list
- Localise MediaWiki for your language
- Learn how to combat spam on your wiki
Import CustomQueryPage
Installing CustomQueryPage
- Download the bundle:
wget https://mw.eckford.ca/downloads/CustomQueryPage-mw1359.tar.gz - Extract it into your extensions folder:
tar -xzf CustomQueryPage-mw1359.tar.gz -C /srv/mediawiki/extensions
- Edit
LocalSettings.phpand addwfLoadExtension( 'CustomQueryPage' ); - Run
php maintenance/update.php --quick. - Visit
Special:CustomQuerySettings, set the ROUTINE tag (e.g.,ROUTINE_4.110), and confirmSpecial:ApprovedManuals.
Quick Start: ROUTINE Management
1. Seed the ROUTINE in the DB
Before Lisa touches the UI, make sure the database has ROUTINE data.
- Use the import script or manual SQL method.
- Required tables:
mw_tags— one row per ROUTINE (e.g.,ROUTINE_4.111).mw_tag_pages— one row per approved page.
- If needed, run:
php maintenance/update.php --quick
Note: Only run update.php if mw_customquerypage_settings doesn't exist yet.
2. Use the Special Page to Switch or Clone
- Go to:
Special:CustomQuerySettings - Two options:
- Set Active Tag — type
ROUTINE_4.111, then Save. - Clone ROUTINE → New ROUTINE:
- From:
ROUTINE_4.110 - To:
ROUTINE_4.111 - Submit → this copies rows and updates the active tag.
- From:
- Set Active Tag — type
3. Verify the Result
- Visit:
Special:ApprovedManuals - Confirm the listing shows
ROUTINE_4.111 - Lisa can now publish or review the approved manuals.
- No DB access required.
Optional: JSON/API Importer
If you're ready to skip the SQL import:
- Define a JSON payload that includes:
page_id,rev_id,deploy_comment,wikitext, etc.
- Build a:
- REST endpoint, or
- Action API module, or
- Maintenance script that reads JSON
Once defined, MediaWiki can import directly into mw_tags / mw_tag_pages.
⚠️
Warning: Avoid touching the database manually if you want to adopt the JSON route. The importer will safely handle all insertions.