The Blueprint skin uses data['title'], which doesn't work well [1] if a
page uses
{{DISPLAYTITLE:<span style="blah blah">{{FULLPAGENAME}}</span>}}
to hide its title as suggested [2].
Manual:Skinning [3] doesn't explain where data['*somekey*'] comes from or
what the keys are. No problem, in a skin if you var_dump( $this->data )
there are a dozen other title-like keys to choose from. But how do skin
developers know which one to use? titletxt, titletext, titleprefixeddbkey,
thispage, ... Some are set(), some are setRef(), is that significant?
It seems the best you can do is read the source code of
includes/skins/SkinTemplate.php and work back through its getOutput(),
getTitle(), and getRelevantTitle() to OutputPage and the maze of title
class methods to figure out which one does what you want. Too hard for me.
Thanks for any suggestions, I'll try to improve the documentation.
[1] https://phabricator.wikimedia.org/T103454
[2]
https://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_hide_the_main_page_title.3F
[3] https://www.mediawiki.org/wiki/Manual:Skinning
--
=S Page WMF Tech writer
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l