Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a257607799000abb

Jump to content

Wikipedia:Gadget/Repositories

From Wikipedia, the free encyclopedia

Various Wikipedia gadgets and user scripts host their source code in an external repository. This allows for distributed version control, source code management, and other functionality not available within the MediaWiki software that Wikipedia runs on.

How it works

[edit]

Source code is hosted externally as part of a repository using Git or similar software. To deploy, the code is copied over to Wikipedia either manually or via automation. This may include "build" step, such as bundling and compiling modern (ES6+) JavaScript into browser-compatible JavaScript, or transcompiling from TypeScript or another language into JavaScript.

Using dedicated software development processes and infrastructure makes it easier to organise code, create and run unit tests, implement Model–view–controller or similar patterns, and collaborate with other developers.

Examples

[edit]