[Bug 23427] Introduce magic word {{ARTICLEID}} or {{PAGEID}} to give the page_id of the current page
https://bugzilla.wikimedia.org/show_bug.cgi?id=23427 Antoine hashar Musso has...@free.fr changed: What|Removed |Added Status|RESOLVED|REOPENED CC||has...@free.fr Resolution|FIXED | --- Comment #28 from Antoine hashar Musso has...@free.fr 2012-01-04 09:10:21 UTC --- I have reverted r107006 (see r108002) since the patch does not seem to work on preview. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 23427] Introduce magic word {{ARTICLEID}} or {{PAGEID}} to give the page_id of the current page
https://bugzilla.wikimedia.org/show_bug.cgi?id=23427 --- Comment #29 from Bawolff bawolff...@gmail.com 2012-01-04 12:39:09 UTC --- (In reply to comment #28) I have reverted r107006 (see r108002) since the patch does not seem to work on preview. Works fine in preview for me. The one exception being it wont work when previewing a newly created page (or more specifically it will say page id 0, because pages that don't exist don't have an id yet). I personally think that behaviour is fine (After all {{REVISONID}} and friends don't work on preview either). The only thing that I think needs changing is to mark the page as vary-revision if the page id is 0 (since it will vary on save) -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 23427] Introduce magic word {{ARTICLEID}} or {{PAGEID}} to give the page_id of the current page
https://bugzilla.wikimedia.org/show_bug.cgi?id=23427 Danny B. dann...@email.cz changed: What|Removed |Added Priority|Low |Normal Status|NEW |RESOLVED CC||dann...@email.cz Resolution||FIXED --- Comment #27 from Danny B. dann...@email.cz 2011-12-21 23:20:02 UTC --- Added in r107006. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 23427] Introduce magic word {{ARTICLEID}} or {{PAGEID}} to give the page_id of the current page
https://bugzilla.wikimedia.org/show_bug.cgi?id=23427 Sumana Harihareswara suma...@panix.com changed: What|Removed |Added Keywords||need-review CC||suma...@panix.com --- Comment #26 from Sumana Harihareswara suma...@panix.com 2011-11-10 06:21:03 UTC --- +need-review so Waldir's patch gets reviewed. Thanks for the patch, Waldir. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 23427] Introduce magic word {{ARTICLEID}} or {{PAGEID}} to give the page_id of the current page
https://bugzilla.wikimedia.org/show_bug.cgi?id=23427 --- Comment #25 from Bawolff bawolff...@gmail.com 2011-08-21 17:00:58 UTC --- (In reply to comment #21) Those links are likely generated by JavaScript, right ? That has access to these variables already. If it's not done by JavaScript, then it should probably be an extension implementing something like sociallinks / which would output shortlinks and stuff for social networks. Agian, not wikitext so has access to these variables already. On Wikinews we have a wiki template, that uses javascript as a _really ugly_ hack to re-write url's to use the page_id (see [[n:template:Social Bookmarks]]). Ideally that template would just be plain wiki-markup. I don't really see how this is any more a technical implementation detail than say {{REVISIONID}} is. I also think social bookmark links are the ideal case for a template - Its just a link to some other websites, and presumably with time the user would want to change which websites as different one's gain in popularity. There is really not anything that weird about these links requiring an extension (imho) (Obviously the use-cases here aren't exactly earth-shattering, but they do exist, and the negative consequences of yet another semi-useless magic word are minimal in my opinion) -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 23427] Introduce magic word {{ARTICLEID}} or {{PAGEID}} to give the page_id of the current page
https://bugzilla.wikimedia.org/show_bug.cgi?id=23427 Waldir wal...@email.com changed: What|Removed |Added Keywords||patch -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 23427] Introduce magic word {{ARTICLEID}} or {{PAGEID}} to give the page_id of the current page
https://bugzilla.wikimedia.org/show_bug.cgi?id=23427 lɛʁi לערי ריינהארט gangl...@torg.is changed: What|Removed |Added CC||gangl...@torg.is --- Comment #22 from lɛʁi לערי ריינהארט gangl...@torg.is 2011-08-21 04:21:15 UTC --- Hi! I was not here for years. Thanks for being notified via #mediawiki IRC about this discussion. simple issues first: looking at the source code of any MW page you will see: ''mediaWiki.config.set({wgCanonicalNamespace: ... wgArticleId: **number** ...''. So the numbers are accesible for everybody. A script is available at http://wikimania2011.wikimedia.org/w/index.php?curid=2866 where the variable is used; see also [[Bugzilla:021572]]. When posting the request I was searching for something more simple as special:curid/value or /special:ArticleId/value (all being case insensitive). Three weeks ago I noticed more handicaps compared with REDIRECT pages on new FireFox: FireFox will ask for a click for link change confirmation. The most critical examples relating to the Personendaten / Personendatendatei are available at: http://de.wikipedia.org/wiki/Vorlage_Diskussion:Normdaten#Sonderf.C3.A4lle http://de.wikipedia.org/w/index.php?curid=198436redirect=no witch are related to the toolserver and semantic web applications. (It is necessary to place templates in a redirect page but they can not be made visible - this is another request. I have seen it only twice.) I joined a group of Esperanto librarians staring to build a common worldwide database. In a first step they will need to identify authors by name. Due to historical reasons numerous variants might be used. This might fit on a reacent started work in internationalizating and porting [[Authority control]]. Some 90+ examples are available at [[eo:/Kategorio:Ligoj_al_bibliotekoj]]. Many parameters displayed at the bottom of each page are / might be relevant in some years from now. People will nead **stable references**. To avoid deleting / undeleting identiifcation problems one would / could / might handle a stack of ArticleId numbers. To present in a few words the toolserver person data colllection see http://de.wikipedia.org/w/index.php?curid=3578818 (wgArticleId) Jimmy Wales The page can be referenced in three methods: http://toolserver.org/~apper/pd/person/viaf/96800423 http://toolserver.org/~apper/pd/person/peende/3578818 (wgArticleId) http://toolserver.org/~apper/pd/person/Jimmy_Wales Probablly wgArticleId was not communicated to other sites. Please identify the **WorldCat** link at the bottom of [[Anne Frank]] http://www.worldcat.org/identities/lccn-n79-125789 Frank, Anne 1929-1945 the coding is: http://en.wikipedia.org/wiki/Special:Search?search=Anne_Frank Coclusion I would be very happy about the availability of that magic word, however it will be called. Greentings from Munich. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 23427] Introduce magic word {{ARTICLEID}} or {{PAGEID}} to give the page_id of the current page
https://bugzilla.wikimedia.org/show_bug.cgi?id=23427 --- Comment #23 from lɛʁi לערי ריינהארט gangl...@torg.is 2011-08-21 04:54:40 UTC --- wow! I am neither skilled in JavaScript nor in css. See anyway: http://wikimania2011.wikimedia.org/w/index.php?oldid=16551 This is a **shortedned** url ;-) -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 23427] Introduce magic word {{ARTICLEID}} or {{PAGEID}} to give the page_id of the current page
https://bugzilla.wikimedia.org/show_bug.cgi?id=23427 --- Comment #17 from Waldir wal...@email.com 2011-08-02 14:03:02 UTC --- Created attachment 8872 -- https://bugzilla.wikimedia.org/attachment.cgi?id=8872 patch adding {{PAGEID}} variable and {{ARTICLEID}} as an alias -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 23427] Introduce magic word {{ARTICLEID}} or {{PAGEID}} to give the page_id of the current page
https://bugzilla.wikimedia.org/show_bug.cgi?id=23427 Krinkle krinklem...@gmail.com changed: What|Removed |Added CC||krinklem...@gmail.com --- Comment #18 from Krinkle krinklem...@gmail.com 2011-08-02 14:15:23 UTC --- So before we go and introduce this. Can we please get back or describe a usecase for this ? The original request wanted to the author username and/or permalink to the first revision, that's not what introducing {{PAGEID}} will do. At some later point there were references to *JavaScript* variables named wgArticleId which already work in MediaWiki and have been for sometime, so we won't need {{PAGEID}} in *wikitext* for that. I'm in general a bit leery on introducing magic words, especially ones that work on top of technical implementation details which are usually not interesting to the user. So base question (keeping in mind that I'm not against this variable, just want to make sure we do it for a good reason): Why do we need {{PAGEID}} as a magic word in core and what should it enable to do (usecases). Thanks, – Krinkle -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 23427] Introduce magic word {{ARTICLEID}} or {{PAGEID}} to give the page_id of the current page
https://bugzilla.wikimedia.org/show_bug.cgi?id=23427 Waldir wal...@email.com changed: What|Removed |Added Attachment #8872|0 |1 is obsolete|| --- Comment #19 from Waldir wal...@email.com 2011-08-02 14:30:13 UTC --- Created attachment 8873 -- https://bugzilla.wikimedia.org/attachment.cgi?id=8873 patch introducing {{pageid}} variable remove {{articleid}} alias, per suggestion by Krinkle on IRC (user-visible instances of article are being replaced with page) -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 23427] Introduce magic word {{ARTICLEID}} or {{PAGEID}} to give the page_id of the current page
https://bugzilla.wikimedia.org/show_bug.cgi?id=23427 --- Comment #20 from Waldir wal...@email.com 2011-08-02 14:42:28 UTC --- (In reply to comment #18) So before we go and introduce this. Can we please get back or describe a usecase for this ? The original request wanted to the author username and/or permalink to the first revision, that's not what introducing {{PAGEID}} will do. No, that was just miscommunication. The author did clarify his original intentions later on: The purpose of this bug was to get an ID which is not changeable as editing for a certain page progresses over time. (...) {{PAGEID}} would serve this purpose and to have it would be very cool. At some later point there were references to *JavaScript* variables named wgArticleId which already work in MediaWiki and have been for sometime, so we won't need {{PAGEID}} in *wikitext* for that. We do if we want to use it in templates, as Bawolff suggested. I'm in general a bit leery on introducing magic words, especially ones that work on top of technical implementation details which are usually not interesting to the user. I think Bawolff's short link proposal would be of interest. Granted, curid links aren't supposed to be a 100% stable permalinks, but the uses for a short url are mostly ephemeral / informal. For example, to share a Signpost article on Twitter, etc. It's not a big deal if the link eventually rots, especially since that's very unlikely (tough not impossible) to happen. In any case, we do rot links daily when deleting articles, so I don't think this should be an impediment. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 23427] Introduce magic word {{ARTICLEID}} or {{PAGEID}} to give the page_id of the current page
https://bugzilla.wikimedia.org/show_bug.cgi?id=23427 --- Comment #21 from Krinkle krinklem...@gmail.com 2011-08-02 14:47:45 UTC --- Those links are likely generated by JavaScript, right ? That has access to these variables already. If it's not done by JavaScript, then it should probably be an extension implementing something like sociallinks / which would output shortlinks and stuff for social networks. Agian, not wikitext so has access to these variables already. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 23427] Introduce magic word {{ARTICLEID}} or {{PAGEID}} to give the page_id of the current page
https://bugzilla.wikimedia.org/show_bug.cgi?id=23427 Bawolff bawolff...@gmail.com changed: What|Removed |Added CC||bawolff...@gmail.com Summary|Introduce magic word|Introduce magic word |{{FIRSTREVISIONID}} |{{ARTICLEID}} or {{PAGEID}} ||to give the page_id of the ||current page --- Comment #16 from Bawolff bawolff...@gmail.com 2011-02-03 01:24:12 UTC --- the article id seems unlikely to change given that it is the page_id in the page table), except during deletion/undeletion, which arguably is like creating a new page. At the very least it stays constant through edits which is what is requested. As an aside, an additional usecase for a {{PAGEID}} magic word, would be able to make short urls for a page using the curid url parameter (this would be useful on share this type templates, and is actually done on wikinews in js). Here's what I've drawn * the article id (aka the page_id in the page table) fulfills all the usecases requested in this bug, perhaps even better then firstrevisionid * FirstRevisionId is very unlikely to happen due to it being expensive to determine. Thus I'm changing the summary to be asking for {{ARTICLEID}} magic word -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l