All tests passed.
Name | Expected | Actual | |
---|---|---|---|
test 001 (current page): {{pagetype}} produces "module" | |||
test 002 (current page): {{pagetype|module=no}} produces "page" | |||
test 003 (current page): {{pagetype|module=foo}} produces "foo" | |||
test 004 (spaces): {{pagetype|module= no }} produces "page" | |||
test 005 (spaces): {{pagetype|module= foo }} produces "foo" | |||
test 006 (spaces): {{pagetype|page= UK |redirect= No }} produces "article" | |||
test 007 (defaults): {{pagetype|page=UK}} produces "redirect" | |||
test 008 (defaults): {{pagetype|page=Talk:UK}} produces "redirect" | |||
test 009 (defaults): {{pagetype|page=United Kingdom}} produces "article" | |||
test 010 (defaults): {{pagetype|page=Talk:United Kingdom}} produces "article" | |||
test 011 (defaults): {{pagetype|page=Alien}} produces "page" | |||
test 012 (defaults): {{pagetype|page=Talk:Alien}} produces "page" | |||
test 013 (defaults): {{pagetype|page=User:Example}} produces "page" | |||
test 014 (defaults): {{pagetype|page=User talk:Example}} produces "page" | |||
test 015 (defaults): {{pagetype|page=Wikipedia:Namespace}} produces "page" | |||
test 016 (defaults): {{pagetype|page=Wikipedia talk:Namespace}} produces "page" | |||
test 017 (defaults): {{pagetype|page=Project:Namespace}} produces "page" | |||
test 018 (defaults): {{pagetype|page=Project talk:Namespace}} produces "page" | |||
test 019 (defaults): {{pagetype|page=WP:Namespace}} produces "page" | |||
test 020 (defaults): {{pagetype|page=WT:Namespace}} produces "page" | |||
test 021 (defaults): {{pagetype|page=File:Example.jpg}} produces "file" | |||
test 022 (defaults): {{pagetype|page=File talk:Example.jpg}} produces "file" | |||
test 023 (defaults): {{pagetype|page=Image:Example.jpg}} produces "file" | |||
test 024 (defaults): {{pagetype|page=Image talk:Example.jpg}} produces "file" | |||
test 025 (defaults): {{pagetype|page=MediaWiki:Watchlist-details}} produces "page" | |||
test 026 (defaults): {{pagetype|page=MediaWiki talk:Watchlist-messages}} produces "page" | |||
test 027 (defaults): {{pagetype|page=Template:Pagetype}} produces "template" | |||
test 028 (defaults): {{pagetype|page=Template talk:Pagetype}} produces "template" | |||
test 029 (defaults): {{pagetype|page=Help:Contents}} produces "page" | |||
test 030 (defaults): {{pagetype|page=Help talk:Contents}} produces "page" | |||
test 031 (defaults): {{pagetype|page=Category:Wikipedians}} produces "category" | |||
test 032 (defaults): {{pagetype|page=Category talk:Wikipedians}} produces "category" | |||
test 033 (defaults): {{pagetype|page=Portal:The arts}} produces "page" | |||
test 034 (defaults): {{pagetype|page=Portal talk:The arts}} produces "page" | |||
test 035 (defaults): {{pagetype|page=Draft:Example}} produces "page" | |||
test 036 (defaults): {{pagetype|page=Draft talk:Example}} produces "page" | |||
test 037 (defaults): {{pagetype|page=TimedText:Foo}} produces "page" | |||
test 038 (defaults): {{pagetype|page=TimedText talk:Foo}} produces "page" | |||
test 039 (defaults): {{pagetype|page=Special:PrefixIndex}} produces "page" | |||
test 040 (defaults): {{pagetype|page=Media:Example.jpg}} produces "page" | |||
test 041 (defaultns=none): {{pagetype|defaultns=none |page=UK}} produces "redirect" | |||
test 042 (defaultns=none): {{pagetype|defaultns=none |page=Talk:UK}} produces "redirect" | |||
test 043 (defaultns=none): {{pagetype|defaultns=none |page=United Kingdom}} produces "page" | |||
test 044 (defaultns=none): {{pagetype|defaultns=none |page=Talk:United Kingdom}} produces "page" | |||
test 045 (defaultns=none): {{pagetype|defaultns=none |page=Alien}} produces "page" | |||
test 046 (defaultns=none): {{pagetype|defaultns=none |page=Talk:Alien}} produces "page" | |||
test 047 (defaultns=none): {{pagetype|defaultns=none |page=User:Example}} produces "page" | |||
test 048 (defaultns=none): {{pagetype|defaultns=none |page=User talk:Example}} produces "page" | |||
test 049 (defaultns=none): {{pagetype|defaultns=none |page=Wikipedia:Namespace}} produces "page" | |||
test 050 (defaultns=none): {{pagetype|defaultns=none |page=Wikipedia talk:Namespace}} produces "page" | |||
test 051 (defaultns=none): {{pagetype|defaultns=none |page=Project:Namespace}} produces "page" | |||
test 052 (defaultns=none): {{pagetype|defaultns=none |page=Project talk:Namespace}} produces "page" | |||
test 053 (defaultns=none): {{pagetype|defaultns=none |page=WP:Namespace}} produces "page" | |||
test 054 (defaultns=none): {{pagetype|defaultns=none |page=WT:Namespace}} produces "page" | |||
test 055 (defaultns=none): {{pagetype|defaultns=none |page=File:Example.jpg}} produces "page" | |||
test 056 (defaultns=none): {{pagetype|defaultns=none |page=File talk:Example.jpg}} produces "page" | |||
test 057 (defaultns=none): {{pagetype|defaultns=none |page=Image:Example.jpg}} produces "page" | |||
test 058 (defaultns=none): {{pagetype|defaultns=none |page=Image talk:Example.jpg}} produces "page" | |||
test 059 (defaultns=none): {{pagetype|defaultns=none |page=MediaWiki:Watchlist-details}} produces "page" | |||
test 060 (defaultns=none): {{pagetype|defaultns=none |page=MediaWiki talk:Watchlist-messages}} produces "page" | |||
test 061 (defaultns=none): {{pagetype|defaultns=none |page=Template:Pagetype}} produces "page" | |||
test 062 (defaultns=none): {{pagetype|defaultns=none |page=Template talk:Pagetype}} produces "page" | |||
test 063 (defaultns=none): {{pagetype|defaultns=none |page=Help:Contents}} produces "page" | |||
test 064 (defaultns=none): {{pagetype|defaultns=none |page=Help talk:Contents}} produces "page" | |||
test 065 (defaultns=none): {{pagetype|defaultns=none |page=Category:Wikipedians}} produces "page" | |||
test 066 (defaultns=none): {{pagetype|defaultns=none |page=Category talk:Wikipedians}} produces "page" | |||
test 067 (defaultns=none): {{pagetype|defaultns=none |page=Portal:The arts}} produces "page" | |||
test 068 (defaultns=none): {{pagetype|defaultns=none |page=Portal talk:The arts}} produces "page" | |||
test 069 (defaultns=none): {{pagetype|defaultns=none |page=Draft:Example}} produces "page" | |||
test 070 (defaultns=none): {{pagetype|defaultns=none |page=Draft talk:Example}} produces "page" | |||
test 071 (defaultns=none): {{pagetype|defaultns=none |page=TimedText:Foo}} produces "page" | |||
test 072 (defaultns=none): {{pagetype|defaultns=none |page=TimedText talk:Foo}} produces "page" | |||
test 073 (defaultns=none): {{pagetype|defaultns=none |page=Special:PrefixIndex}} produces "page" | |||
test 074 (defaultns=none): {{pagetype|defaultns=none |page=Media:Example.jpg}} produces "page" | |||
test 075 (defaultns=extended): {{pagetype|defaultns=extended |page=UK}} produces "redirect" | |||
test 076 (defaultns=extended): {{pagetype|defaultns=extended |page=Talk:UK}} produces "redirect" | |||
test 077 (defaultns=extended): {{pagetype|defaultns=extended |page=United Kingdom}} produces "article" | |||
test 078 (defaultns=extended): {{pagetype|defaultns=extended |page=Talk:United Kingdom}} produces "article" | |||
test 079 (defaultns=extended): {{pagetype|defaultns=extended |page=Alien}} produces "page" | |||
test 080 (defaultns=extended): {{pagetype|defaultns=extended |page=Talk:Alien}} produces "page" | |||
test 081 (defaultns=extended): {{pagetype|defaultns=extended |page=User:Example}} produces "user page" | |||
test 082 (defaultns=extended): {{pagetype|defaultns=extended |page=User talk:Example}} produces "user page" | |||
test 083 (defaultns=extended): {{pagetype|defaultns=extended |page=Wikipedia:Namespace}} produces "project page" | |||
test 084 (defaultns=extended): {{pagetype|defaultns=extended |page=Wikipedia talk:Namespace}} produces "project page" | |||
test 085 (defaultns=extended): {{pagetype|defaultns=extended |page=Project:Namespace}} produces "project page" | |||
test 086 (defaultns=extended): {{pagetype|defaultns=extended |page=Project talk:Namespace}} produces "project page" | |||
test 087 (defaultns=extended): {{pagetype|defaultns=extended |page=WP:Namespace}} produces "project page" | |||
test 088 (defaultns=extended): {{pagetype|defaultns=extended |page=WT:Namespace}} produces "project page" | |||
test 089 (defaultns=extended): {{pagetype|defaultns=extended |page=File:Example.jpg}} produces "file" | |||
test 090 (defaultns=extended): {{pagetype|defaultns=extended |page=File talk:Example.jpg}} produces "file" | |||
test 091 (defaultns=extended): {{pagetype|defaultns=extended |page=Image:Example.jpg}} produces "file" | |||
test 092 (defaultns=extended): {{pagetype|defaultns=extended |page=Image talk:Example.jpg}} produces "file" | |||
test 093 (defaultns=extended): {{pagetype|defaultns=extended |page=MediaWiki:Watchlist-details}} produces "interface page" | |||
test 094 (defaultns=extended): {{pagetype|defaultns=extended |page=MediaWiki talk:Watchlist-messages}} produces "interface page" | |||
test 095 (defaultns=extended): {{pagetype|defaultns=extended |page=Template:Pagetype}} produces "template" | |||
test 096 (defaultns=extended): {{pagetype|defaultns=extended |page=Template talk:Pagetype}} produces "template" | |||
test 097 (defaultns=extended): {{pagetype|defaultns=extended |page=Help:Contents}} produces "help page" | |||
test 098 (defaultns=extended): {{pagetype|defaultns=extended |page=Help talk:Contents}} produces "help page" | |||
test 099 (defaultns=extended): {{pagetype|defaultns=extended |page=Category:Wikipedians}} produces "category" | |||
test 100 (defaultns=extended): {{pagetype|defaultns=extended |page=Category talk:Wikipedians}} produces "category" | |||
test 101 (defaultns=extended): {{pagetype|defaultns=extended |page=Portal:The arts}} produces "portal" | |||
test 102 (defaultns=extended): {{pagetype|defaultns=extended |page=Portal talk:The arts}} produces "portal" | |||
test 103 (defaultns=extended): {{pagetype|defaultns=extended |page=Draft:example}} produces "draft" | |||
test 104 (defaultns=extended): {{pagetype|defaultns=extended |page=Draft talk:example}} produces "draft" | |||
test 105 (defaultns=extended): {{pagetype|defaultns=extended |page=TimedText:Foo}} produces "page" | |||
test 106 (defaultns=extended): {{pagetype|defaultns=extended |page=TimedText talk:Foo}} produces "page" | |||
test 107 (defaultns=extended): {{pagetype|defaultns=extended |page=Special:PrefixIndex}} produces "page" | |||
test 108 (defaultns=extended): {{pagetype|defaultns=extended |page=Media:Example.jpg}} produces "page" | |||
test 109 (defaultns=all): {{pagetype|defaultns=all |page=UK}} produces "redirect" | |||
test 110 (defaultns=all): {{pagetype|defaultns=all |page=Talk:UK}} produces "redirect" | |||
test 111 (defaultns=all): {{pagetype|defaultns=all |page=United Kingdom}} produces "article" | |||
test 112 (defaultns=all): {{pagetype|defaultns=all |page=Talk:United Kingdom}} produces "talk page" | |||
test 113 (defaultns=all): {{pagetype|defaultns=all |page=Alien}} produces "page" | |||
test 114 (defaultns=all): {{pagetype|defaultns=all |page=Talk:Alien}} produces "talk page" | |||
test 115 (defaultns=all): {{pagetype|defaultns=all |page=User:Example}} produces "user page" | |||
test 116 (defaultns=all): {{pagetype|defaultns=all |page=User talk:Example}} produces "talk page" | |||
test 117 (defaultns=all): {{pagetype|defaultns=all |page=Wikipedia:Namespace}} produces "project page" | |||
test 118 (defaultns=all): {{pagetype|defaultns=all |page=Wikipedia talk:Namespace}} produces "talk page" | |||
test 119 (defaultns=all): {{pagetype|defaultns=all |page=Project:Namespace}} produces "project page" | |||
test 120 (defaultns=all): {{pagetype|defaultns=all |page=Project talk:Namespace}} produces "talk page" | |||
test 121 (defaultns=all): {{pagetype|defaultns=all |page=WP:Namespace}} produces "project page" | |||
test 122 (defaultns=all): {{pagetype|defaultns=all |page=WT:Namespace}} produces "talk page" | |||
test 123 (defaultns=all): {{pagetype|defaultns=all |page=File:Example.jpg}} produces "file" | |||
test 124 (defaultns=all): {{pagetype|defaultns=all |page=File talk:Example.jpg}} produces "talk page" | |||
test 125 (defaultns=all): {{pagetype|defaultns=all |page=Image:Example.jpg}} produces "file" | |||
test 126 (defaultns=all): {{pagetype|defaultns=all |page=Image talk:Example.jpg}} produces "talk page" | |||
test 127 (defaultns=all): {{pagetype|defaultns=all |page=MediaWiki:Watchlist-details}} produces "interface page" | |||
test 128 (defaultns=all): {{pagetype|defaultns=all |page=MediaWiki talk:Watchlist-messages}} produces "talk page" | |||
test 129 (defaultns=all): {{pagetype|defaultns=all |page=Template:Pagetype}} produces "template" | |||
test 130 (defaultns=all): {{pagetype|defaultns=all |page=Template talk:Pagetype}} produces "talk page" | |||
test 131 (defaultns=all): {{pagetype|defaultns=all |page=Help:Contents}} produces "help page" | |||
test 132 (defaultns=all): {{pagetype|defaultns=all |page=Help talk:Contents}} produces "talk page" | |||
test 133 (defaultns=all): {{pagetype|defaultns=all |page=Category:Wikipedians}} produces "category" | |||
test 134 (defaultns=all): {{pagetype|defaultns=all |page=Category talk:Wikipedians}} produces "talk page" | |||
test 135 (defaultns=all): {{pagetype|defaultns=all |page=Portal:The arts}} produces "portal" | |||
test 136 (defaultns=all): {{pagetype|defaultns=all |page=Portal talk:The arts}} produces "talk page" | |||
test 137 (defaultns=all): {{pagetype|defaultns=all |page=Draft:Example}} produces "draft" | |||
test 138 (defaultns=all): {{pagetype|defaultns=all |page=Draft talk:Example}} produces "talk page" | |||
test 139 (defaultns=all): {{pagetype|defaultns=all |page=TimedText:Foo}} produces "Timed Text page" | |||
test 140 (defaultns=all): {{pagetype|defaultns=all |page=TimedText talk:Foo}} produces "talk page" | |||
test 141 (defaultns=all): {{pagetype|defaultns=all |page=Special:PrefixIndex}} produces "special page" | |||
test 142 (defaultns=all): {{pagetype|defaultns=all |page=Media:Example.jpg}} produces "file" | |||
test 143 (custom namespace text): {{pagetype|page=UK |redirect=custom text}} produces "custom text" | |||
test 144 (custom namespace text): {{pagetype|page=Talk:UK |redirect=custom text}} produces "custom text" | |||
test 145 (custom namespace text): {{pagetype|page=Talk:UK |talk=custom text}} produces "redirect" | |||
test 146 (custom namespace text): {{pagetype|main=custom text |page=United Kingdom}} produces "custom text" | |||
test 147 (custom namespace text): {{pagetype|main=custom text |page=Talk:United Kingdom}} produces "custom text" | |||
test 148 (custom namespace text): {{pagetype|page=Talk:United Kingdom |talk=custom text}} produces "custom text" | |||
test 149 (custom namespace text): {{pagetype|dab=custom text |page=Alien}} produces "custom text" | |||
test 150 (custom namespace text): {{pagetype|dab=custom text |page=Talk:Alien}} produces "custom text" | |||
test 151 (custom namespace text): {{pagetype|page=Talk:Alien |talk=custom text}} produces "custom text" | |||
test 152 (custom namespace text): {{pagetype|page=User:Example |user=custom text}} produces "custom text" | |||
test 153 (custom namespace text): {{pagetype|page=User talk:Example |user=custom text}} produces "custom text" | |||
test 154 (custom namespace text): {{pagetype|page=User talk:Example |talk=custom text}} produces "custom text" | |||
test 155 (custom namespace text): {{pagetype|page=Wikipedia:Namespace |wikipedia=custom text}} produces "custom text" | |||
test 156 (custom namespace text): {{pagetype|page=Wikipedia talk:Namespace |wikipedia=custom text}} produces "custom text" | |||
test 157 (custom namespace text): {{pagetype|page=Wikipedia talk:Namespace |talk=custom text}} produces "custom text" | |||
test 158 (custom namespace text): {{pagetype|page=Project:Namespace |project=custom text}} produces "custom text" | |||
test 159 (custom namespace text): {{pagetype|page=Project talk:Namespace |project=custom text}} produces "custom text" | |||
test 160 (custom namespace text): {{pagetype|page=Project talk:Namespace |talk=custom text}} produces "custom text" | |||
test 161 (custom namespace text): {{pagetype|page=WP:Namespace |wp=custom text}} produces "custom text" | |||
test 162 (custom namespace text): {{pagetype|page=WT:Namespace |wp=custom text}} produces "custom text" | |||
test 163 (custom namespace text): {{pagetype|page=WT:Namespace |talk=custom text}} produces "custom text" | |||
test 164 (custom namespace text): {{pagetype|page=WT:Namespace |wt=custom text}} produces "page" | |||
test 165 (custom namespace text): {{pagetype|page=Wikipedia:Namespace |project=custom text}} produces "custom text" | |||
test 166 (custom namespace text): {{pagetype|page=Wikipedia talk:Namespace |project=custom text}} produces "custom text" | |||
test 167 (custom namespace text): {{pagetype|page=WP:Namespace |project=custom text}} produces "custom text" | |||
test 168 (custom namespace text): {{pagetype|page=WT:Namespace |project=custom text}} produces "custom text" | |||
test 169 (custom namespace text): {{pagetype|page=Wikipedia:Namespace |wp=custom text}} produces "custom text" | |||
test 170 (custom namespace text): {{pagetype|page=Wikipedia talk:Namespace |wp=custom text}} produces "custom text" | |||
test 171 (custom namespace text): {{pagetype|page=Project:Namespace |wp=custom text}} produces "custom text" | |||
test 172 (custom namespace text): {{pagetype|page=Project talk:Namespace |wp=custom text}} produces "custom text" | |||
test 173 (custom namespace text): {{pagetype|file=custom text |page=File:Example.jpg}} produces "custom text" | |||
test 174 (custom namespace text): {{pagetype|file=custom text |page=File talk:Example.jpg}} produces "custom text" | |||
test 175 (custom namespace text): {{pagetype|page=File talk:Example.jpg |talk=custom text}} produces "custom text" | |||
test 176 (custom namespace text): {{pagetype|file=custom text |page=Image:Example.jpg}} produces "custom text" | |||
test 177 (custom namespace text): {{pagetype|file=custom text |page=Image talk:Example.jpg}} produces "custom text" | |||
test 178 (custom namespace text): {{pagetype|page=Image talk:Example.jpg |talk=custom text}} produces "custom text" | |||
test 179 (custom namespace text): {{pagetype|image=custom text |page=File:Example.jpg}} produces "custom text" | |||
test 180 (custom namespace text): {{pagetype|image=custom text |page=File talk:Example.jpg}} produces "custom text" | |||
test 181 (custom namespace text): {{pagetype|image=custom text |page=File talk:Example.jpg}} produces "custom text" | |||
test 182 (custom namespace text): {{pagetype|image=custom text |page=Image:Example.jpg}} produces "custom text" | |||
test 183 (custom namespace text): {{pagetype|image=custom text |page=Image talk:Example.jpg}} produces "custom text" | |||
test 184 (custom namespace text): {{pagetype|image=custom text |page=Image talk:Example.jpg}} produces "custom text" | |||
test 185 (custom namespace text): {{pagetype|mediawiki=custom text |page=MediaWiki:Watchlist-details}} produces "custom text" | |||
test 186 (custom namespace text): {{pagetype|mediawiki=custom text |page=MediaWiki talk:Watchlist-messages}} produces "custom text" | |||
test 187 (custom namespace text): {{pagetype|page=MediaWiki talk:Watchlist-messages |talk=custom text}} produces "custom text" | |||
test 188 (custom namespace text): {{pagetype|page=Template:Pagetype |template=custom text}} produces "custom text" | |||
test 189 (custom namespace text): {{pagetype|page=Template talk:Pagetype |template=custom text}} produces "custom text" | |||
test 190 (custom namespace text): {{pagetype|page=Template talk:Pagetype |talk=custom text}} produces "custom text" | |||
test 191 (custom namespace text): {{pagetype|help=custom text |page=Help:Contents}} produces "custom text" | |||
test 192 (custom namespace text): {{pagetype|help=custom text |page=Help talk:Contents}} produces "custom text" | |||
test 193 (custom namespace text): {{pagetype|page=Help talk:Contents |talk=custom text}} produces "custom text" | |||
test 194 (custom namespace text): {{pagetype|category=custom text |page=Category:Wikipedians}} produces "custom text" | |||
test 195 (custom namespace text): {{pagetype|category=custom text |page=Category talk:Wikipedians}} produces "custom text" | |||
test 196 (custom namespace text): {{pagetype|page=Category talk:Wikipedians |talk=custom text}} produces "custom text" | |||
test 197 (custom namespace text): {{pagetype|page=Portal:The arts |portal=custom text}} produces "custom text" | |||
test 198 (custom namespace text): {{pagetype|page=Portal talk:The arts |portal=custom text}} produces "custom text" | |||
test 199 (custom namespace text): {{pagetype|page=Portal talk:The arts |talk=custom text}} produces "custom text" | |||
test 200 (custom namespace text): {{pagetype|draft=custom text |page=Draft:Example}} produces "custom text" | |||
test 201 (custom namespace text): {{pagetype|draft=custom text |page=Draft talk:Example}} produces "custom text" | |||
test 202 (custom namespace text): {{pagetype|page=Draft talk:Example |talk=custom text}} produces "custom text" | |||
test 203 (custom namespace text): {{pagetype|page=TimedText:Foo |timedtext=custom text}} produces "custom text" | |||
test 204 (custom namespace text): {{pagetype|page=TimedText talk:Foo |timedtext=custom text}} produces "custom text" | |||
test 205 (custom namespace text): {{pagetype|page=TimedText talk:Foo |talk=custom text}} produces "custom text" | |||
test 206 (custom namespace text): {{pagetype|page=Special:PrefixIndex |special=custom text}} produces "custom text" | |||
test 207 (custom namespace text): {{pagetype|media=custom text |page=Media:Example.jpg}} produces "custom text" | |||
test 208 (custom namespace text): {{pagetype|file=custom text |page=Media:Example.jpg}} produces "page" | |||
test 209 (order of precedence): {{pagetype|module=foo}} produces "foo" | |||
test 210 (order of precedence): {{pagetype|talk=bar}} produces "bar" | |||
test 211 (order of precedence): {{pagetype|module=foo |talk=bar}} produces "bar" | |||
test 212 (order of precedence): {{pagetype|module=foo |page=Module:Example |talk=bar}} produces "foo" | |||
test 213 (order of precedence): {{pagetype|defaultns=none |page=UK |redirect=foo}} produces "foo" | |||
test 214 (order of precedence): {{pagetype|defaultns=none |main=bar |page=UK |redirect=foo}} produces "foo" | |||
test 215 (order of precedence): {{pagetype|defaultns=extended |page=UK |redirect=foo}} produces "foo" | |||
test 216 (order of precedence): {{pagetype|defaultns=extended |main=foo |page=UK |redirect=bar}} produces "bar" | |||
test 217 (order of precedence): {{pagetype|main=foo |page=UK |redirect=bar}} produces "bar" | |||
test 218 (order of precedence): {{pagetype|dab|dab=baz |main=foo |page=UK |redirect=bar}} produces "bar" | |||
test 219 (order of precedence): {{pagetype|na|main=foo |na=baz |page=UK |redirect=bar}} produces "bar" | |||
test 220 (order of precedence): {{pagetype|main=foo |page=Talk:UK |redirect=bar}} produces "bar" | |||
test 221 (order of precedence): {{pagetype|main=foo |page=Talk:UK |redirect=bar |talk=baz}} produces "bar" | |||
test 222 (order of precedence): {{pagetype|main=foo |page=Foo |redirect=bar}} produces "bar" | |||
test 223 (order of precedence): {{pagetype|main=foo |page=Talk:Foo |redirect=bar}} produces "bar" | |||
test 224 (order of precedence): {{pagetype|main=foo |page=Talk:Foo |redirect=bar |talk=baz}} produces "baz" | |||
test 225 (order of precedence): {{pagetype|main=foo |page=United Kingdom |redirect=bar |talk=baz}} produces "foo" | |||
test 226 (order of precedence): {{pagetype|na|main=foo |page=United Kingdom |redirect=bar |talk=baz}} produces "page" | |||
test 227 (order of precedence): {{pagetype|na|main=foo |na=yes |page=United Kingdom |redirect=bar |talk=baz}} produces "page" | |||
test 228 (order of precedence): {{pagetype|na|main=foo |na=bin |page=United Kingdom |redirect=bar |talk=baz}} produces "bin" | |||
test 229 (order of precedence): {{pagetype|dab=bar |main=foo |page=Alien |talk=baz}} produces "bar" | |||
test 230 (order of precedence): {{pagetype|dab|dab=bar |main=foo |page=Alien |talk=baz}} produces "bar" | |||
test 231 (order of precedence): {{pagetype|dab|dab=yes |main=foo |page=Alien |talk=baz}} produces "page" | |||
test 232 (order of precedence): {{pagetype|na|dab=bar |main=foo |page=Alien |talk=baz}} produces "bar" | |||
test 233 (order of precedence): {{pagetype|na|dab=bar |main=foo |na=yes |page=Alien |talk=baz}} produces "bar" | |||
test 234 (order of precedence): {{pagetype|na|dab=bar |main=foo |na=bin |page=Alien |talk=baz}} produces "bar" | |||
test 235 (order of precedence): {{pagetype|page=Wikipedia:Namespace |project=bar |wikipedia=baz |wp=foo}} produces "baz" | |||
test 236 (order of precedence): {{pagetype|page=Wikipedia:Namespace |project=bar |wp=foo}} produces "bar" | |||
test 237 (order of precedence): {{pagetype|page=Wikipedia:Namespace |wp=foo}} produces "foo" | |||
test 238 (order of precedence): {{pagetype|page=Wikipedia:Namespace |wikipedia=foo |wp=bar}} produces "foo" | |||
test 239 (order of precedence): {{pagetype|page=Wikipedia talk:Namespace |project=bar |wikipedia=baz |wp=foo}} produces "baz" | |||
test 240 (order of precedence): {{pagetype|page=Wikipedia talk:Namespace |project=bar |talk=bin |wikipedia=baz |wp=foo}} produces "bin" | |||
test 241 (order of precedence): {{pagetype|page=Project talk:Namespace |project=bar |wikipedia=baz |wp=foo}} produces "baz" | |||
test 242 (order of precedence): {{pagetype|page=Project talk:Namespace |project=bar |talk=bin |wikipedia=baz |wp=foo}} produces "bin" | |||
test 243 (order of precedence): {{pagetype|file=foo |image=bar |page=File:Example.jpg}} produces "foo" | |||
test 244 (order of precedence): {{pagetype|file=foo |image=bar |page=File talk:Example.jpg}} produces "foo" | |||
test 245 (order of precedence): {{pagetype|file=foo |image=bar |page=File talk:Example.jpg |talk=baz}} produces "baz" | |||
test 246 (order of precedence): {{pagetype|file=foo |image=bar |page=Image:Example.jpg}} produces "foo" | |||
test 247 (order of precedence): {{pagetype|file=foo |image=bar |page=Image talk:Example.jpg}} produces "foo" | |||
test 248 (order of precedence): {{pagetype|file=foo |image=bar |page=Image talk:Example.jpg |talk=baz}} produces "baz" | |||
test 249 (other parameters): {{pagetype|page=Wikipedia:Namespace}} produces "page" | |||
test 250 (other parameters): {{pagetype|other=custom text |page=Wikipedia:Namespace}} produces "custom text" | |||
test 251 (other parameters): {{pagetype|other=no |page=Wikipedia:Namespace}} produces "page" | |||
test 252 (other parameters): {{pagetype|other=yes |page=Wikipedia:Namespace}} produces "page" | |||
test 253 (other parameters): {{pagetype|other=custom text |page=Wikipedia:Namespace |wikipedia=wikipedia-space text}} produces "wikipedia-space text" | |||
test 254 (other parameters): {{pagetype|page=Template:Pagetype}} produces "template" | |||
test 255 (other parameters): {{pagetype|other=custom text |page=Template:Pagetype}} produces "template" | |||
test 256 (other parameters): {{pagetype|other=no |page=Template:Pagetype}} produces "template" | |||
test 257 (other parameters): {{pagetype|other=yes |page=Template:Pagetype}} produces "template" | |||
test 258 (other parameters): {{pagetype|other=custom text |page=Template:Pagetype |template=template-space text}} produces "template-space text" | |||
test 259 (other parameters): {{pagetype|other=custom text |page=Template:Pagetype |template=no}} produces "custom text" | |||
test 260 (yesno): {{pagetype|page=Wikipedia:Namespace |wikipedia=yes}} produces "project page" | |||
test 261 (yesno): {{pagetype|page=Wikipedia:Namespace |wikipedia=Yes}} produces "project page" | |||
test 262 (yesno): {{pagetype|page=Wikipedia:Namespace |wikipedia=YeS}} produces "project page" | |||
test 263 (yesno): {{pagetype|page=Wikipedia:Namespace |wikipedia=y}} produces "project page" | |||
test 264 (yesno): {{pagetype|page=Wikipedia:Namespace |wikipedia=Y}} produces "project page" | |||
test 265 (yesno): {{pagetype|page=Wikipedia:Namespace |wikipedia=true}} produces "project page" | |||
test 266 (yesno): {{pagetype|page=Wikipedia:Namespace |wikipedia=True}} produces "project page" | |||
test 267 (yesno): {{pagetype|page=Wikipedia:Namespace |wikipedia=TrUe}} produces "project page" | |||
test 268 (yesno): {{pagetype|page=Wikipedia:Namespace |wikipedia=1}} produces "project page" | |||
test 269 (yesno): {{pagetype|page=Wikipedia:Namespace |wikipedia=1.0}} produces "project page" | |||
test 270 (yesno): {{pagetype|page=Template:Pagetype |template=no}} produces "page" | |||
test 271 (yesno): {{pagetype|page=Template:Pagetype |template=No}} produces "page" | |||
test 272 (yesno): {{pagetype|page=Template:Pagetype |template=nO}} produces "page" | |||
test 273 (yesno): {{pagetype|page=Template:Pagetype |template=n}} produces "page" | |||
test 274 (yesno): {{pagetype|page=Template:Pagetype |template=N}} produces "page" | |||
test 275 (yesno): {{pagetype|page=Template:Pagetype |template=false}} produces "page" | |||
test 276 (yesno): {{pagetype|page=Template:Pagetype |template=False}} produces "page" | |||
test 277 (yesno): {{pagetype|page=Template:Pagetype |template=fAlSe}} produces "page" | |||
test 278 (yesno): {{pagetype|page=Template:Pagetype |template=0}} produces "page" | |||
test 279 (yesno): {{pagetype|page=Template:Pagetype |template=0.0}} produces "page" | |||
test 280 (subject redirect defaultns=all): {{pagetype|defaultns=all |page=MediaWiki talk:Spam-blacklist/log}} produces "talk page" | |||
test 281 (caps): {{pagetype|caps=y |page=Wikipedia:Namespace}} produces "Page" | |||
test 282 (caps): {{pagetype|caps=n |page=Wikipedia:Namespace}} produces "page" | |||
test 283 (caps): {{pagetype|caps=y |page=Wikipedia:Namespace |plural=y}} produces "Pages" | |||
test 284 (soft redirect): {{pagetype|page=Wikipedia:Access to usage logs}} produces "redirect" | |||
test 285 (soft redirect): {{pagetype|page=Wikipedia:Access to usage logs |soft_redirect=soft redirect}} produces "soft redirect" | |||
test 286 (soft redirect): {{pagetype|page=Wikipedia:Namespace |soft_redirect=soft redirect}} produces "page" | |||
test 287 (soft redirect): {{pagetype|page=Module:Contains soft redirect template comment}} produces "module" | |||
test 288 (soft redirect): {{pagetype|defaultns=all |page=Template talk:Contains nowiki soft redirect invocation}} produces "talk page" | |||
test 289 (soft redirect): {{pagetype|page=Wikipedia:Access to usage logs |soft_redirect=no}} produces "page" | |||
test 290 (set index article): {{pagetype|page=Felt lichen}} produces "article" | |||
test 291 (set index article): {{pagetype|page=Felt lichen |sia=set index article}} produces "set index article" | |||
test 292 (set index article): {{pagetype|page=United Kingdom |sia=set index article}} produces "article" | |||
test 293 (disambiguation page): {{pagetype|page=Alien}} produces "page" | |||
test 294 (disambiguation page): {{pagetype|dab=disambiguation page |page=Alien}} produces "disambiguation page" | |||
test 295 (disambiguation page): {{pagetype|dab=disambiguation page |page=United Kingdom}} produces "article" | |||
test 296 (rfd): {{pagetype|page=United Kingdom |redirect=redirect}} produces "article" | |||
test 297 (rfd): {{pagetype|page=Redirect under discussion |redirect=redirect}} produces "redirect" | |||
test 298 (rfd): {{pagetype|page=Redirect under discussion |redirect=no}} produces "article" | |||
test 299 (rfd): {{pagetype|page=Template:Redirect for discussion/testcases/test redirect (live) |redirect=redirect}} produces "redirect" | |||
test 300 (rfd): {{pagetype|page=Template:Redirect for discussion}} produces "template" | |||
test 301 (subpage): {{pagetype|page=Talk:Multiverse (Marvel Cinematic Universe)/FAQ}} produces "page" | |||
test 302 (subpage): {{pagetype|page=AC/DC}} produces "article" | |||
test 303 (subpage): {{pagetype|page=Template:Redirect for discussion/core}} produces "template" | |||
test 304 (subpage): {{pagetype|defaultns=extended |page=Wikipedia talk:WikiProject Women in Red/Events}} produces "project page" | |||
test 305 (non-existent): {{pagetype|nonexistent=non-existent page |page=Talk:WandaVision/FAQ}} produces "non-existent page" | |||
test 306 (non-existent): {{pagetype|page=Talk:WandaVision/FAQ}} produces "page" | |||
test 307 (interface message): {{pagetype|page=MediaWiki:Filetype-missing}} produces "page" | |||
test 308 (interface message): {{pagetype|defaultns=extended |page=MediaWiki:Filetype-missing}} produces "interface page" | |||
test 309 (interface message): {{pagetype|page=MediaWiki:Duplicate-args-warning}} produces "page" | |||
test 310 (interface message): {{pagetype|defaultns=extended |page=MediaWiki:Duplicate-args-warning}} produces "interface page" | |||
test 311 (interface message): {{pagetype|defaultns=extended |page=MediaWiki:Fghghghg}} produces "page" | |||
test 312 (interface message): {{pagetype|page=MediaWiki:Fghghghg}} produces "page" | |||
test 313 (files): {{pagetype|page=File:Garzweiler surface mine, October 2018, -01.jpg}} produces "file" | |||
test 314 (files): {{pagetype|page=File:1975 45 Single Label Jackson Browne Fountain of Sorrow Asylum Records.jpg}} produces "file" | |||
test 315 (files): {{pagetype|page=File:ffiisjsjdjd.jpg}} produces "page" |
Start a discussion about improving the Module:Pagetype/testcases page
Talk pages are where people discuss how to make content on Wikipedia the best that it can be. You can use this page to start a discussion with others about how to improve the "Module:Pagetype/testcases" page.