RemoteWiki demo
| RemoteWiki | |
|---|---|
| Documentation | |
| Maintained by WikiTeq? |
Yes! |
| Version | |
This wiki has the RemoteWiki extension installed, which adds a new parser function, {{#remote_version}}, to retrieve version information about a different MediaWiki wiki using the API.
| Syntax | Example call | Explanation |
|---|---|---|
{{#remote_version:<wiki api endpoint>}}
|
{{#remote_version:https://en.wikipedia.org/w/api.php}}
|
Version of MediaWiki that is being run |
{{#remote_version:<wiki api endpoint>|extensions}}
|
{{#remote_version:https://en.wikipedia.org/w/api.php|extensions}}
|
Comma separated list of extensions, each extension separated from its version by :
|
{{#remote_version:<wiki api endpoint>|extension-urls}}
|
{{#remote_version:https://en.wikipedia.org/w/api.php|extension-urls}}
|
Pipe (|) separated list of extensions, each extension separated from its URL by : (a pipe is used as the separator because commas are valid URL characters)
|
For example, the English Wikipedia is currently running MediaWiki version 1.46.0.10.
The raw extensions output for the English Wikipedia is currently
PagedTiffHandler:5922c91aabb03aa4897fc461953e863e1c3db146,TimedMediaHandler:0.6.0,PDF Handler:73207a425c2701cf132f7b6d2e65f67f1b3381cb,3D:0.0.1,EasyTimeline:c0fd2e75cb72e2177be69c58d4282ed9ada8a2d0,WikiHiero:1.1,CharInsert:cf92972148e2d52298cd4a8b1b1d73784ba28b90,ParserFunctions:1.6.1,Cite:db4ecd23d656da5888b8a4c11112dede9e172ce0,InputBox:0.3.0,ImageMap:1c0e863f4f4e294292b6cfc4f521915d859c11dd,SyntaxHighlight:2.0,Poem:682d8b5b2ffedd65e7843c5e7acfc13cb83a5f34,CategoryTree:431752ff1e5536165ecb5b36bc2a923912e8316f,LabeledSectionTransclusion:b6b02a0dc592bb48b2eb4e38c0d5a8ff5ca996b4,Score:0.3.0,TemplateStyles:1.0,TemplateData:0.2.0,Math:6773a50adc1a300218b23e291fab26ee80519df2,Babel:9d8034cf751ec53888540cda66c4ed4bcd548884,Scribunto:44971258d36c373d761ea916d94cd7b04f4a9761,PageAssessments:1.1.0,Chart:2072fa9b668a4f853da451d04117e3573dd7ecb4,Kartographer:f1b289025856ed1f2e501cf137f54ea232f5b575,Phonos:0.1.0,SiteMatrix:1.6.0,CiteThisPage:fb0bcebfa78d4d88e88b55c403893eed0ca18d39,FlaggedRevs:20bc85afb3fbf6c9dea59239e9143701ecfd4659,UrlShortener:1.2.0,ContactPage:2.3,Nuke:8033a8278dc5845d7a7be29dc81d0a51a7e46143,CentralAuth:d3b3550d9a1defcdfde4d539d9ecaccdb7bd8976,ApiFeatureUsage:1.0,Collection:1.8.0,Global Usage:2.2.0,MassMessage:0.5.0,Linter:c1c460526c5a588d2b8994ddfa14f488caf8cefb,PageTriage:9aa28971ae32aeee3c0d554adb82f057528fff0a,Echo:04ffd62545b5c6ec7edfe6cd342f243eb454ae08,ContentTranslation:288419dbf1dbaa1a0231e37f3bae34d7d085bd6a,TemplateSandbox:1.1.0,CheckUser:2.5,GlobalPreferences:0.1.2,CampaignEvents:c7cd13aa63ec0e1643fea92024697dbb79157f2d,WikimediaCampaignEvents:7612ab67e39c4ad39d22908a84e398bbdf6b8322,NearbyPages:1.0.0,SpamBlacklist:4297037e5051aead2a12619c396e66e65c79ca8f,TitleBlacklist:1.5.0,TorBlock:1.1.0,ConfirmEdit:1.6.0,FancyCaptcha:?,hCaptcha:?,AntiSpoof:be70899b027f277daefe3a4e8d4361ca1924c03b,Abuse Filter:96e4ebfb6920e8afe2e876c341beb47bde7179f3,Gadgets:2521ef55a2f4a2a0a3b3c7c19b57b7b2b87fb3b0,GlobalBlocking:e1ac4359dcc9c5a2d030e85f0073921aa7d5ec89,TrustedXFF:2.0.0,SecurePoll:3.0.0,SecureLinkFixer:d1c136e673a6ba98d285a17bbfb367159a17038b,Elastica:6.2.0,CirrusSearch:4e616ed06b7c2c893756a68e3216d9e241a22c18,GlobalCssJs:3.4.0,GlobalUserPage:0.11.1,DismissableSiteNotice:1.0.1,CentralNotice:2.6.1,WikimediaMessages:fb89c15e580642986c66d3b2bd983f3b89e9f6e5,ElectronPdfService:64d9a0790f812745ba7a8c12d4916a183be75961,AdvancedSearch:99e3260a3ceedd0210c374c452b760a9100267ac,ArticleCreationWorkflow:ee44a1b70f8690984bd29f4184bb54d1bf4d74a5,SandboxLink:e3187d772fab4efebc2704da74410b2ef9163bcd,BetaFeatures:0.1,CommonsMetadata:aa5c774ea6ee387af9cd7a4717bf5483f22a1393,MultimediaViewer:56386f224a50a88e8b4963f904f13c63df21b36b,Popups:cdfbaec0d6aaa9ad14009d76da9be5026c8d77e4,Citoid:0.3.0,TemplateWizard:0.1.0,cldr:4.17.0,WikiLove:1.3.1,GuidedTour:2.0,MobileApp:d7142b6cff63498506e7de28561e2196b4a1a1e5,MobileFrontend:2.4.1,TextExtracts:cbdb3e6155331c49533f3ed3ba7e48f6597e6b73,BounceHandler:1.0,FeaturedFeeds:5f30ab3b9b32937192d0150c83e7caa6c98bda8e,GeoData:e6876bad73a41fa5ed9a58854141688f3b2efe9e,LoginNotify:0.1,Thanks:1.2.0,Disambiguator:1.4,DiscussionTools:0.0.0,RevisionSlider:9be30109d1a94ad53c40a19956f7edefe957830a,TwoColConflict:bff1c0e4966468d1b53b8e3e7df34dca2f18bbcd,EventLogging:e9e7678ca3a7798f3309d16ec4c5c47ce480cf8c,EventStreamConfig:90888e48b825ff37b8968cc13810be6d693509f0,Campaigns:0.2.0,WikimediaEvents:1.2.0,NavigationTiming:e4bd64ec79b4a6c804bf713259f6cd1b323ff408,XAnalytics:0.3,UniversalLanguageSelector:2025-07-31,FileExporter:a3c0ad18131d26c05fbf7a3ecd40b7da5bddae48,ExternalGuidance:1.0.0,InterwikiSorting:eb9552f5935064c5e947e0d07367ba6d5c982d30,JsonConfig:1.2.0,OAuth:1.1.0,OATHAuth:606394604e23557a3cd0670adaccf3f32c68fba5,WebAuthn:86d4472e9a0e081b0c10d513bdc42dd4e6ac47e8,MediaModeration:2.0.0,ORES:0066612fdde588f17c68d70b4770977aa85e4478,RealMe:d96a879f97b441cb7f727d0b67c7107c55dbd90f,IPReputation:5f438a3856bf39ea5ce61a1861fbe9310afa8675,IPInfo:0.0.0,QuickSurveys:1.4.0,EventBus:0.5.0,PageViewInfo:9feb10e7737805d7667c4f3858e9a3959b7879fc,ReadingLists:1.0.0-beta.1,GrowthExperiments:8d96efb5f38d26c40d2ce964775b60dc9445d490,TheWikipediaLibrary:1.0.1,ParserMigration:2.0.0,CommunityConfiguration:315b472d50c682d9367579e73521eec5da800955,MetricsPlatform:df5519fc177ab676c09157b3bdbfff3bbe13d2c0,ReaderExperiments:b06b64158a08591cf4c3ea9e49595b0252e58a4c,EmailAuth:0.1.0,WikiEditor:0.5.4,CodeMirror:6.0.0,VisualEditor:c0bacb06b7240fa8e186734333946c88ef9b8127,CodeEditor:62332347613b88137478e1d4e9315fbe60cc6c70,EntitySchema:1fd98cf11f7ab836756a3681524a0d0a70d09875,WikibaseClient:97ed1af6c0d10ea9fdb820584eff7a92d7e9ca86,WikimediaBadges:ca96142272806a8ba6028712fd612d6a5c4a8de8,WikibaseLexeme:4a24b3c086b240896e8915382759b3551e98273a,RelatedArticles:3.1.0,PageImages:9201668cfe8ca3cdeb5fa8731a66fc4204d31226
However, when combined with the PageForms extension and the ParserFunctions extension the result can be formatted more nicely.
{|class="wikitable"
! Extension
! Version
|-
{{#arraymap:{{#remote_version:https://en.wikipedia.org/w/api.php|extensions}}
|,
|@
|
{{!}}-
{{!}} '''{{#explode:@|:|0}}'''
{{!}} <code>{{#explode:@|:|1}}</code>
{{!}}-
|
}}
|-
|}
currently outputs:
| Versions output | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
We can do the same with extension URLs if those parser functions are available:
{|class="wikitable"
! Extension
! URL
|-
{{#arraymap:{{#remote_version:https://en.wikipedia.org/w/api.php|extension-urls}}
|{{!}}
|@
|
{{!}}-
{{!}} '''{{#explode:@|:|0}}'''
{{!}} <code>{{#explode:@|:|1|2}}</code>
{{!}}-
|
}}
|-
|}
currently outputs
And, using the Arrays extension, the two tables can be combined. This works because the list of versions and the list of URLs have the extensions in the same order. Thus, after finding the index of the version information in the list of versions, we can use the same index in the list of URLs to get the URL:
{{#arraydefine:versions|{{#remote_version:https://en.wikipedia.org/w/api.php|extensions}}}}
{{#arraydefine:urls|{{#remote_version:https://en.wikipedia.org/w/api.php|extension-urls}}|{{!}}}}
{|class="wikitable"
! Extension
! Version
! URL
|-
{{#arraymap:{{#arrayprint:versions}}
|,
|@
|
{{!}}-
{{!}} '''{{#explode:@|:|0}}'''
{{!}} <code>{{#explode:@|:|1|2}}</code>
{{!}} {{#explode:{{#arrayindex:urls|{{#arraysearch:versions|@}}}}|:|1|2}}
{{!}}-
|
}}
|-
|}
results in:
| Combined output | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|