Extension talk:PageBy

Add topic
From mediawiki.org
Latest comment: 16 years ago by Marcus Stöhr in topic Automatically add <pageby/> when saving


I got the extension working on MW 1.9.3 though I only used the basic <pageby/> invocation. Jean-Lou Dupont 14:53, 7 March 2007 (UTC)Reply

granular control[edit]

I would like to insert different elements into a table, so that one row would be "last editor" and another row would be "original author". I found that <pageby nominor="false" comments="false" creation="false"/>; does the prior (last edited by), but I havnt been able to figure out the later (page author).

Does not work on 1.8.4[edit]

I installed PageBy on 1.8.4 and it complete breaks the page, you should probably remove the (maybe 1.8 too) bit. See http://www.wikitest.co.uk/mediawiki-1.8.4/index.php/PageBy_Test for an example of the problem. Lcarsdata (Talk) 19:51, 23 March 2007 (UTC)Reply

I swear I had contributed the patch for MW < 1.9.3 sometime ago but it got deleted... One just has to copy the following function (taken from Database.php in MW 1.9.3):

	// from MW 1.9.3
	public function tableNamesN() {
		$inArray = func_get_args();
		$retVal = array();
		foreach ( $inArray as $name ) {
			$retVal[] = $this->tableName( $name );
		return $retVal;

and put it in the Database.php file of MW < 1.9.3. Jean-Lou Dupont 22:44, 23 March 2007 (UTC)Reply

removing "contributors"[edit]

How do I not display contributors? I would like to just display the "pageby-last" info.

Error if not in the end of a page[edit]

nice extension. but i'm having a problem with this- if the <pageby/> tag is not at the end of a page, on submitting it will give an error(a blank page). I'm using a category form which allows to select from the exisiting categories. that value is always inserted at the end after the form is submitted. any workaround for this? --Jack

Russian translation[edit]

Russian translation for plugin (file PageBy.i18n.ru.php):


 * Internationalisation file for the PageBy extension
 * Russian (Unicode) language file
 * @package MediaWiki
 * @subpackage Extensions
 * @author Daniel Kinzler, brightbyte.de; translation by Andrey Khrolenok
 * @copyright © 2007 Daniel Kinzler
 * @licence GNU General Public Licence 2.0 or later

$messages['pageby-first']= 'Страница создана пользователем $1, $2';
$messages['pageby-last']= 'Последняя <a href="$3">правка</a> сделана пользователем $1, $2';
$messages['pageby-contributors']= 'Создатели страницы:';
$messages['pageby-anon']= '<i>аноним</i>';


Timezone Setting?[edit]

I am in China When I Show time up,is seems not display the time in my timezone

Hm... not quite sure actually. If i paied attention when writing it, it will show the timezone that is also used for signatures on that wiki. It can not use the user's timezone setting, because that would not work with the page cache. -- Duesentrieb 20:36, 18 January 2008 (UTC)Reply

PageBy in templates?[edit]

How do I use pageby tags in templates? I'm trying something like <pageby>{{{title}}}</pageby>, but the pageby tags are being interpreted on the template itself and causing an error, because the "{{{title}}}" page doesn't exist. Can I escape the <pageby> tags somehow?

no you can't. This is a general limitation of "cusom tags" (TgaHook extensions). I'd have to port this extension to use the ParserFunctiosn mechanism, instead of a TagHook. I guess I'll do it eventually, but don't hold your breath.... -- Duesentrieb 20:35, 18 January 2008 (UTC)Reply

Automatically add <pageby/> when saving[edit]


is it possible to add <pageby/> automatically when saving a page instead of explicity add the code? It's annoying to to this and it can be forgotten if a user isn't familiar with this code.--Marcus Stöhr 19:51, 16 April 2008 (UTC)Reply

Real names[edit]

Could the output show users' real names (where they exist)?