8 * A querypage to list the most wanted templates - implements Special:Wantedtemplates
9 * based on SpecialWantedcategories.php by Ævar Arnfjörð Bjarmason <avarab@gmail.com>
10 * makeWlhLink() taken from SpecialMostlinkedtemplates by Rob Church <robchur@gmail.com>
12 * @ingroup SpecialPage
15 * @copyright Copyright © 2008, Danny B.
16 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
18 class WantedTemplatesPage
extends WantedQueryPage
{
21 return 'Wantedtemplates';
25 $dbr = wfGetDB( DB_SLAVE
);
26 list( $templatelinks, $page ) = $dbr->tableNamesN( 'templatelinks', 'page' );
27 $name = $dbr->addQuotes( $this->getName() );
31 tl_namespace as namespace,
34 FROM $templatelinks LEFT JOIN
35 $page ON tl_title = page_title AND tl_namespace = page_namespace
36 WHERE page_title IS NULL AND tl_namespace = ". NS_TEMPLATE
."
37 GROUP BY tl_namespace, tl_title
45 function wfSpecialWantedTemplates() {
46 list( $limit, $offset ) = wfCheckLimits();
48 $wpp = new WantedTemplatesPage();
50 $wpp->doQuery( $offset, $limit );