We need to assign digital object identifiers to specific versions (stable, flagged revisions) of an article page. To assign doi:10/xyz we want to create that object in a custom doi namespace and then redirect to a specific version of a page in the article namespace. However, we could find no information how to address versions in intra-wiki syntax (and redirects don't work with URLs).
If this is indeed so,
a) could a version syntax be added to mediawiki links?
[[Help_talk:Redirects/Version:262031]]
should then be equivalent to:
http://www.mediawiki.org/w/index.php?title=Help_talk:Redirects&oldid=262...
b) could redirect be extended so it supports URLs?
Question to experienced programmers: which would be easier to implement in an extension? Any clues or rough ideas we could work out ourselves?
Gregor
Gregor Hagedorn wrote:
We need to assign digital object identifiers to specific versions (stable, flagged revisions) of an article page. To assign doi:10/xyz we want to create that object in a custom doi namespace and then redirect to a specific version of a page in the article namespace. However, we could find no information how to address versions in intra-wiki syntax (and redirects don't work with URLs).
If this is indeed so,
a) could a version syntax be added to mediawiki links?
[[Help_talk:Redirects/Version:262031]]
should then be equivalent to:
http://www.mediawiki.org/w/index.php?title=Help_talk:Redirects&oldid=262...
{{fullurl:Help_talk:Redirects|oldid=262031}}
b) could redirect be extended so it supports URLs?
I think it's a feature that can be enabled for interwiki links.
Question to experienced programmers: which would be easier to implement in an extension? Any clues or rough ideas we could work out ourselves?
Gregor
We need to assign digital object identifiers to specific versions (stable, flagged revisions) of an article page. To assign doi:10/xyz we want to create that object in a custom doi namespace and then redirect to a specific version of a page in the article namespace. However, we could find no information how to address versions in intra-wiki syntax (and redirects don't work with URLs).
If this is indeed so,
a) could a version syntax be added to mediawiki links?
[[Help_talk:Redirects/Version:262031]]
should then be equivalent to:
http://www.mediawiki.org/w/index.php?title=Help_talk:Redirects&oldid=262...
Platonides wrote:
{{fullurl:Help_talk:Redirects|oldid=262031}}
that is only a typing convience which is not the problem.
The problems (why a syntax would be helpful) are: a) referring to versions is shown as an external link b) the ability to refer to a version in a redirect, i.e. declare a synonym for a stable version.
#redirect [[{{fullurl:Help_talk:Redirects|oldid=262031}}]] does not work.
Platonides wrote:
b) could redirect be extended so it supports URLs?
I think it's a feature that can be enabled for interwiki links.
http://www.wikia.com/wiki/Help:Interwiki_link#Interwiki_Redirects mentions this, but I cannot find the variable. Among http://www.mediawiki.org/wiki/Category:Interwiki_variables it does not seems to be Manual:$wgDisableHardRedirects, because this is false by default. Do you mean http://www.mediawiki.org/wiki/Manual:$wgRedirectSources ?
Not so nice: the redirect will not have a "redirected from" link.
Gregor
mediawiki-l@lists.wikimedia.org