Manual talk:Page props table

From MediaWiki.org
Jump to: navigation, search

The fact that this is only in use with __HIDDENCAT__ seems strange given the new category table has a cat_hidden field. Aristotle 18:20, 16 August 2008 (UTC)

[edit] Were there other future uses that this table was created with in mind?

Tisane 10:31, 31 March 2010 (UTC)

[edit] using this table from code

I couldn't find any documentation of this, but it appears that if you want to store data in this table (from an extension), it's quite simple:

$parser->mOutput->setProperty(name,value);

This goes into an array which gets written to the table at save-time.

I don't know if this is the best way to retrieve mOutput; I was hoping for an access function, but couldn't find one. Maybe MW1.17 has something.

--Woozle 13:08, 8 May 2011 (UTC)

I tried to give an example extension using this in this edit. I hope its helpful. If you're not in the context of a parser function or hook (and a couple of very specific hooks) its somewhat hard to retrieve the parser output. If you're not coming directly from a page parse, people generally query the db directly (See things like WikiPage::getHiddenCategories() ). Bawolff 23:21, 11 February 2012 (UTC)
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox