Last modified: 2014-09-24 01:07:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35160, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33160 - Make Special:Popularpages includable
Make Special:Popularpages includable
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-15 09:44 UTC by Subfader
Modified: 2014-09-24 01:07 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
This is how we can create magic page in mediawiki (355 bytes, patch)
2012-02-12 08:45 UTC, Ashwini
Details

Description Subfader 2011-12-15 09:44:34 UTC
It shoudl be possible to include Special:Popularpages, e.g. {{Special:Popularpages/25}}

WikiMedia has the hit counter disabled, but this would be an easy way to return the most popular pages on Main Page as quick navigation help.
Comment 1 Ashwini 2012-02-12 08:45:27 UTC
Created attachment 9993 [details]
This is how we can create magic page in mediawiki

# you have to  do one modification is your Specialpopularpages.php.
which is in your mediawiki installation
just go to include/special/specialpopularpages.php

#now you have to jjust edit one line in your _contruct() that is 
$this->mIncludable = true;

then create new page "Magicpage" and enter this line in that

{{Special:PopularPages}}

save it 
and you done !
now go to your magicpage
Comment 2 Sumana Harihareswara 2012-02-12 09:28:55 UTC
Added "patch" and "need-review" keywords.
Comment 3 Siebrand Mazeland 2012-02-12 11:02:54 UTC
Nice first patch, Ashwini. Thank you very much!

Problem here is that when this page is transcluded, the paging elements are also still on the transcluded text. Please improve the patch by only adding the content, and not the paging controls.

Another thing that is not implemented, but requested here, is the limit for the number of popular pages displayed.

I updated the patch to reviewed, but in this state, it cannot be committed.
Comment 4 Eran Roz 2014-01-16 23:31:01 UTC
see https://gerrit.wikimedia.org/r/#/c/107979

There is an "extension" for it on [[mw:Extension:TopTenPages]] - it isn't well maintained and it will be better to include such feature in mw-core.
Comment 5 Gerrit Notification Bot 2014-01-29 04:13:12 UTC
Change 107979 had a related patch set uploaded by Brian Wolff:
Make Popularpages includeable

https://gerrit.wikimedia.org/r/107979
Comment 6 Bawolff (Brian Wolff) 2014-01-29 04:20:35 UTC
(In reply to comment #5)
> Change 107979 had a related patch set uploaded by Brian Wolff:

gerrit bot lies, it wasn't uploaded by me.

------

Part of me wonders if we should just make all QueryPages transcludable.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links