Newby question: I would like to be able to load a wiki page by pageid instead of the page title as usual. Can this be done?
Thanks, Al
Thanks! But, does "curid" mean "current" ID? Will it change for any reason, such as if someone moves the page?
________________________________ From: Bartosz Dziewoński matma.rex@gmail.com To: Al Johnson alj62888@yahoo.com; MediaWiki announcements and site admin list mediawiki-l@lists.wikimedia.org Sent: Monday, December 10, 2012 12:00 AM Subject: Re: [MediaWiki-l] Can a page be URL addressable by pageid?
Yes: https://www.mediawiki.org/wiki/Manual:Parameters_to_index.php#Page_revision_...
-- Matma Rex
2012/12/10 Al Johnson alj62888@yahoo.com:
Thanks! But, does "curid" mean "current" ID? Will it change for any reason, such as if someone moves the page?
I think it will only change if the page is deleted and then recreated.
The "cur" is probably for backwards compatibility, there used to exist a database table called "cur" that kept only the current versions of articles (along with a table called "old" that kept old versions), and the parameter was probably already used back then. When the database layout was changed to the current one (pages are revisions as separate entities), the parameter name stuck. (See https://www.mediawiki.org/wiki/Database_layout )
-- Matma Rex
Thank you
________________________________ From: Bartosz Dziewoński matma.rex@gmail.com To: Al Johnson alj62888@yahoo.com; MediaWiki announcements and site admin list mediawiki-l@lists.wikimedia.org Sent: Monday, December 10, 2012 12:40 AM Subject: Re: [MediaWiki-l] Can a page be URL addressable by pageid?
2012/12/10 Al Johnson alj62888@yahoo.com:
Thanks! But, does "curid" mean "current" ID? Will it change for any reason, such as if someone moves the page?
I think it will only change if the page is deleted and then recreated.
The "cur" is probably for backwards compatibility, there used to exist a database table called "cur" that kept only the current versions of articles (along with a table called "old" that kept old versions), and the parameter was probably already used back then. When the database layout was changed to the current one (pages are revisions as separate entities), the parameter name stuck. (See https://www.mediawiki.org/wiki/Database_layout )
-- Matma Rex
mediawiki-l@lists.wikimedia.org