!! article
Main Page
!! text
[[Category:Test pages]]
!! endarticle
!! article
Test page
!! text
[[Category:Test pages]]
!! endarticle
!! article
Other page
!! text
[[Category:Test pages]]
!! endarticle
!! article
Category:Test pages
!! text
[[Category:Test categories]]
!! endarticle
!! article
Test default sort key
!! text
{{#phptag: echo WPage::$defaultSortKey === false ? 'false' : 'true'; }}
{{#phptag: WPage::$defaultSortKey = 'Sort key page'; }}
[[Category:Test pages]]
{{#phptag: echo WPage::$defaultSortKey === false ? 'false' : 'true'; }}
!! endarticle
!! test
WStats::USERS
!! input
true
!! end !! test WStats::PAGES !! inputtrue
!! end !! test WPage::TITLE !! options title=[[User:Ævar Arnfjörð Bjarmason]] !! input {{#phptag: WPage::TITLE }} !! resultUser:Ævar Arnfjörð Bjarmason
!! end !! test WPage::TITLE->name !! options title=[[User:Ævar Arnfjörð Bjarmason]] !! input {{#phptag: WPage::TITLE->name }} !! resultÆvar Arnfjörð Bjarmason
!! end !! test WPage::TITLE->talkNsText !! input {{#phptag: WPage::TITLE->talkNsText }} !! resultTalk
!! end !! test WCategory->pageCount Test pages !! options disabled MediaWiki core uses a dummy parser when inserting articles. T163733 !! input4
!! end !! test WCategory->subcatCount !! options disabled MediaWiki core uses a dummy parser when inserting articles. T163733 !! input1
!! end !! test Test default sort key !! input {{:Test default sort key}} !! resultfalse true
!! end !! test WPage::addCategory foo !! inputpass1, it is ok
pass2, it is ok
Main Page
!! end