[Mediawiki-l] A Wiki Anoyance

Platonides Platonides at gmail.com
Wed Aug 1 20:38:21 UTC 2007


> Either of those would work reasonably well.

To show on editsection all templates on the page, on editpage.php lines 
1152-1153 replace

$templates = ($this->preview || $this->section != '') ? 
$this->mPreviewTemplates : $this->mArticle->getUsedTemplates();
$formattedtemplates = $sk->formatTemplates( $templates, $this->preview, 
$this->section != '');

by
$templates = ($this->preview || $this->mPreviewTemplates != '') ? 
$this->mPreviewTemplates : $this->mArticle->getUsedTemplates();
$formattedtemplates = $sk->formatTemplates( $templates, $this->preview, 
$this->section != '' && $this->mPreviewTemplates != '');


Also, if you have enabled on your preferences Show preview on first 
edit, you will get the correct section templates even without this patch.




More information about the MediaWiki-l mailing list