ProfessionalWiki / PersistentPageIdentifiers

MediaWiki extension that adds persistent identifiers to wiki pages
https://professional.wiki/en/extension/persistent-page-identifiers
GNU General Public License v2.0
1 stars 0 forks source link

Add persistent id to API info #36

Closed malberts closed 1 week ago

malberts commented 1 week ago

Closes #34

API request: /api.php?action=query&prop=info&titles=Main Page|Page|Does Not Exist|Foo

image


Future low priority improvement:

malberts commented 1 week ago

Draft to check if this approach makes sense.

waximabbax commented 1 week ago

How can I generate an ID for page 1?

image image

I ran

and also putting

{{#ppid:}}
malberts commented 1 week ago

How can I generate an ID for page 1?

Which version of MW are you using there? That warning there might require you to run the maintenance script differently. But that branch is still WIP, so there's also a possibility that something is wrong with it in a later version of MW.

Otherwise, just change the API to look for a page you created yourself: /api.php?action=query&prop=info&titles=Some Page

{{#ppid:}}

That only displays the ID in the page. It won't generate it.

waximabbax commented 1 week ago

Works for me now. image