User:Mainframe98/Sandbox
Add topicInstalling MediaWiki on Windows Server 2016
[edit]Moved to Manual:Installing MediaWiki on Windows Server 2016.
User box building
[edit]See Template:User autopatrolled MediaWiki.org.
API Action preload template
[edit]<onlyinclude> {{TNT|API}} {{TNT|API-head |module={{{m|}}} |version={{{v|}}} |prefix= |rrights={{{r|}}} |postonly=Yes |description={{{d|}}} |query=no }} ==Parameters== {{{p|}}} {{TNT|Api help|{{{m|}}}}} [[Category:MediaWiki API{{Translation}}]]</onlyinclude>
Usage:
{{subst::User:Mainframe98/Sandbox |m= |v= |r= |d= |p= }}
Bundled Extension Notice
[edit]{{note|1=This extension [[MediaWiki {{{1|}}}#Bundled extensions|comes with MediaWiki {{{1|}}}]] and above. Thus you do not have to download it again.}} <includeonly>[[Category:Extensions Bundled with MediaWiki]]</includeonly>
API Edit test
[edit]Content goes here.
Toolserver pages approach
[edit]Links
[edit]- Special:PrefixIndex/Toolserver & Special:PrefixIndex/Toolserver:
- Category:Pages transferred from Toolserver (895)
User pages
[edit]- Listed on Special:PrefixIndex/Toolserver:User:
- Determine
- Determine if the page is not a redirect
- Determine if user exists here
- Determine if user has user page here
- Determine if user had subpages on toolserver
- Act
- If User exists:
- Move Toolserver user page to User:<USERNAME>/Toolserver page
- If User has user pages
- Move Toolserver user subpages to User:<USERNAME>/Toolserver page/<PAGENAME>
- If User exists:
Files
[edit]- Listed on Special:PrefixIndex/Toolserver:File:
Files are moved to Toolserver:File:<FILENAME>, but this caused the image to be lost; these pages do not serve any purpose anymore and aren't used (seeing that there is no image to link to. Some have been imported from commons and can be link fixed. Requires per-case analyses.
Templates
[edit]- Listed on Special:PrefixIndex/Toolserver:Template:
Please note that
- Template:MovedFromToolserver should be between <noinclude></noinclude> tags.
- Duplicates that exist locally already should be deleted (Templates similar to Template:Terminal & Template:!)
Extension API documentation organisation proposal pre-draft
[edit]- One category: MediaWiki Extension API
- Located on Extension:NAME/API
- Field in Template:Extension for link to API with category Extensions with documented API
To do
[edit]Small list to bridge until able do this all at once,
Create Category:Warning templates as seen on Meta- Already done, used wrong link and presumed it didn't exist- Copy missing templates to this wiki, request import?
- Create and work through Category:Archived extensions without an oldid.
- File a bug report for Special:Diff, when no arguments specified. Also check which translations it uses, as the Dutch one borrows from Special:Move which makes everything even more cryptic
Relevant Extension:Translate links
[edit]Actions for Manual:Hooks/getUserPermissionsErrors
[edit]- read
- create
- edit
- patrol
- protect
- move
- move-target
- move-subpages
- delete
- editcontentmodel
- undelete
- upload
- pagelang - Note: This hook is curently not called for changing the page language, see T160783.
- bigdelete
- rollback
- deletedhistory
User:Mainframe98/Sandbox/Header
Phabricator MediaWiki-Vagrant role
[edit]Place this on Phabricator or something
- Enable with vagrant roles enable phabricator
- Access the installation by navigating to http://phabricator.local.wmftest.net:8080/
Extension amount calculation
[edit]- Amount of documented extensions
- 1,494
- Amount of archived extensions
- 2,715
- Percentage of extension archived
- 181.72690763052%
1
Quick phab notes while working on phab:T198552
[edit]- When a task has been assigned a point value on creation, and this value is removed, there is no way to find out what that value was. The removal message should say what the previous value was.
- Affected tasks: phab:T195236
Installing SQL Server with PHP on Windows Server 2016
[edit]This aims at a dev-env, not a production environment.
- Obtain SQL Server. Do yourself a favor and get the development or evaluation version. Express is stated not to work and is best kept away from.
- Set up IIS and PHP according to Manual:Installing MediaWiki on Windows Server 2016.
- You may skip enabling the database related extensions in
php.ini
since we're adding MSSQL specific later anyways.
- You may skip enabling the database related extensions in
- Obtain the Microsoft Drivers for PHP for SQL Server from https://docs.microsoft.com/en-us/sql/connect/php/download-drivers-php-sql-server?view=sql-server-2017
- Run the installer to extract the files somewhere.
- Move the PHP extensions to the
ext/
folder in the PHP installation folder.- You'll need both the
php_pdo_sqlsrv_*
and thephp_sqlsrv_*
dll's that match your PHP version. If you've followed Manual:Installing MediaWiki on Windows Server 2016, you'll need thents
variant.
- You'll need both the
- Add extension loading lines for the dll's you've added to php.ini.
- For the non thread-safe 64 bit version of PHP 7.2, you would need to add:
extension=php_pdo_sqlsrv_72_nts_x64.dll extension=php_sqlsrv_72_nts_x64.dll
Special:AbuseFilter/83 update
[edit]Under discussion at Topic:Vok6n52n7pzzsfnl.
(page_namespace == 0) & (page_id == 0) & (user_editcount < 10) & !(user_name contains "(WMF)") & !(lcase(new_wikitext) rlike "#redirect")
!(user_name contains "(WMF)")
could be replaced with !(user_name rlike "\((WMF|WMDE|WMSE)\)")
for WMDE/WMSE support.
<hr>
gives:
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedDoesNotExist
AbuseLog entry to use when creating a filter to prevent empty user right requests
[edit]
Test content copy-pasted from WinWord 2019