Page MenuHomePhabricator

Create a Magic Word for "creation date of an article" / date of initial revision
Closed, DeclinedPublicFeature

Description

Feature summary:

To extend the magic words list with the "creation/first revision" similar to "lastest revision"
see {{REVISIONDAY}} {{REVISIONMONTH}} {{REVISIONYEAR}} from https://www.mediawiki.org/wiki/Help:Magic_words#Technical_metadata > Latest revision to current page

Suggest to define new variables like {{FIRSTREVISIONDAY}} {{FIRSTREVISIONMONTH}} {{FIRSTREVISIONYEAR}}

Use case(s)

An author creates an article on each wikipage and he wishes to show the creation date of the article (see example [1]). By default "This page was last edited..." is displayed on every wikipage in the footer (via MediaWiki:Lastmodifiedat), but there is no way to indicate when a wikipage/article has been created.

[1] https://wiki.uni-konstanz.de/transmed-en/index.php/1091:_A_Charter_of_Roger_I_for_the_Reorganisation_of_Sicily

Event Timeline

Hi @S0ring, thanks for taking the time to report this! Please use the feature request form when creating feature requests, as it asks for use case(s).
This ticket does not describe a problem to solve (why do you need to display the creation date of a page), but only a solution.

Hi @Aklapper, thanks for mention it, I filled out the use case(s) as requested.

he wishes to show the creation date of the article

@S0ring: Hi, which problem is solved by showing the creation date of the article? Why do they wish to show it? This ticket lacks a use case currently.

Hi @Aklapper, sorry for the misunderstanding. The author is looking for a solution to be able to show the creation date of an article within citations.
There is no technical description how could exactly be solved, but we suggested if possible to be implemented with the MW variables (aka magic words).

Here the author justification:

As part of a Mediawiki platform which makes scientific articles to be available online, it would be helpful if the first publication/revision date of the article could be specified in the citation recommendation, as this is important for all bibliographical reference systems (library catalogs, etc.). Currently, the citation recommendation code looks like this:

== Recommended Citation ==
{| class="wikitable"
| colspan="3" | {{{1}}}, "{{FULLPAGENAME}}", in: ''XYZ'', ed. ABC, URL: {{#urldecode:{{fullurl:{{FULLPAGENAME}}}}}}. Last Revision: {{REVISIONDAY2}}.{{REVISIONMONTH}}.{{REVISIONYEAR}}, Access: {{CURRENTDAY}}.{{CURRENTMONTH}}.{{CURRENTYEAR}}.
|}

In this code we would like to include the publication/revision date, which is currently only visible under the link "Page information" (date of page creation).

Aklapper renamed this task from Magic words for "creation date of an article" to Create a Magic Word for "creation date of an article" / date of initial revision.Jul 15 2021, 12:46 PM
Aklapper added a project: MediaWiki-Parser.

Thanks. See T25960#279391 (and T25427#284232) why this is problematic:

Aside from being expensive, 'what is to be considered the "first" revision' is also an open issue. (timestamp, revision id, hidden/visible, history merges, imports)

Declining per last comment.