| 1 |
!! Version 2 |
| 2 |
# Force the test runner to ensure the extension is loaded |
| 3 |
!! hooks |
| 4 |
inputbox |
| 5 |
!! endhooks |
| 6 |
|
| 7 |
!! test |
| 8 |
InputBox type=search |
| 9 |
!! wikitext |
| 10 |
<inputbox> |
| 11 |
type=search |
| 12 |
</inputbox> |
| 13 |
!! html |
| 14 |
<div class="mw-inputbox-centered" style=""><form name="searchbox" class="searchbox mw-inputbox-form" action="/wiki/Special:Search"><div class="cdx-text-input"><input class="mw-inputbox-input mw-searchInput searchboxInput cdx-text-input__input" name="search" placeholder="" size="50" dir="ltr" /></div><br /><input type="submit" name="go" value="Try exact match" class="cdx-button" /> <input type="submit" name="fulltext" value="Search full text" class="cdx-button" /></form></div> |
| 15 |
!! end |
| 16 |
|
| 17 |
!! test |
| 18 |
InputBox type=create |
| 19 |
!! wikitext |
| 20 |
<inputbox> |
| 21 |
type=create |
| 22 |
</inputbox> |
| 23 |
!! html |
| 24 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 25 |
!! end |
| 26 |
|
| 27 |
!! test |
| 28 |
InputBox type=create with minor |
| 29 |
!! wikitext |
| 30 |
<inputbox> |
| 31 |
type=create |
| 32 |
minor=1 |
| 33 |
</inputbox> |
| 34 |
!! html |
| 35 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="1" name="minor" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 36 |
!! end |
| 37 |
|
| 38 |
!! test |
| 39 |
InputBox type=create with minor=0 |
| 40 |
!! wikitext |
| 41 |
<inputbox> |
| 42 |
type=create |
| 43 |
minor=0 |
| 44 |
</inputbox> |
| 45 |
!! html |
| 46 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="0" name="minor" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 47 |
!! end |
| 48 |
|
| 49 |
!! test |
| 50 |
InputBox type=create with preloadparams |
| 51 |
!! wikitext |
| 52 |
<inputbox> |
| 53 |
type=create |
| 54 |
preloadparams[]=param1 |
| 55 |
preloadparams[]=param2 |
| 56 |
</inputbox> |
| 57 |
!! html |
| 58 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="param1" name="preloadparams[]" /><input type="hidden" value="param2" name="preloadparams[]" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 59 |
!! end |
| 60 |
|
| 61 |
!! test |
| 62 |
InputBox type=create with empty preloadparams |
| 63 |
!! wikitext |
| 64 |
<inputbox> |
| 65 |
type=create |
| 66 |
preloadparams[]= |
| 67 |
preloadparams[]= |
| 68 |
</inputbox> |
| 69 |
!! html |
| 70 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" name="preloadparams[]" /><input type="hidden" name="preloadparams[]" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 71 |
!! end |
| 72 |
|
| 73 |
!! test |
| 74 |
InputBox type=create with editintro |
| 75 |
!! wikitext |
| 76 |
<inputbox> |
| 77 |
type=create |
| 78 |
editintro=MediaWiki:Test |
| 79 |
</inputbox> |
| 80 |
!! html |
| 81 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="MediaWiki:Test" name="editintro" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 82 |
!! end |
| 83 |
|
| 84 |
!! test |
| 85 |
InputBox type=create with empty editintro |
| 86 |
!! wikitext |
| 87 |
<inputbox> |
| 88 |
type=create |
| 89 |
editintro= |
| 90 |
</inputbox> |
| 91 |
!! html |
| 92 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" name="editintro" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 93 |
!! end |
| 94 |
|
| 95 |
!! test |
| 96 |
InputBox type=create with summary |
| 97 |
!! wikitext |
| 98 |
<inputbox> |
| 99 |
type=create |
| 100 |
summary=Summary test |
| 101 |
</inputbox> |
| 102 |
!! html |
| 103 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="Summary test" name="summary" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 104 |
!! end |
| 105 |
|
| 106 |
!! test |
| 107 |
InputBox type=create with empty summary |
| 108 |
!! wikitext |
| 109 |
<inputbox> |
| 110 |
type=create |
| 111 |
summary= |
| 112 |
</inputbox> |
| 113 |
!! html |
| 114 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" name="summary" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 115 |
!! end |
| 116 |
|
| 117 |
!! test |
| 118 |
InputBox type=create with nosummary |
| 119 |
!! wikitext |
| 120 |
<inputbox> |
| 121 |
type=create |
| 122 |
nosummary=true |
| 123 |
</inputbox> |
| 124 |
!! html |
| 125 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="true" name="nosummary" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 126 |
!! end |
| 127 |
|
| 128 |
!! test |
| 129 |
InputBox type=create with empty nosummary |
| 130 |
!! wikitext |
| 131 |
<inputbox> |
| 132 |
type=create |
| 133 |
nosummary= |
| 134 |
</inputbox> |
| 135 |
!! html |
| 136 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" name="nosummary" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 137 |
!! end |
| 138 |
|
| 139 |
!! test |
| 140 |
InputBox type=create with prefix |
| 141 |
!! wikitext |
| 142 |
<inputbox> |
| 143 |
type=create |
| 144 |
prefix=Test/ |
| 145 |
</inputbox> |
| 146 |
!! html |
| 147 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="Test/" name="prefix" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 148 |
!! end |
| 149 |
|
| 150 |
!! test |
| 151 |
InputBox type=create with empty prefix |
| 152 |
!! wikitext |
| 153 |
<inputbox> |
| 154 |
type=create |
| 155 |
prefix= |
| 156 |
</inputbox> |
| 157 |
!! html |
| 158 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 159 |
!! end |
| 160 |
|
| 161 |
!! test |
| 162 |
InputBox type=create with preload |
| 163 |
!! wikitext |
| 164 |
<inputbox> |
| 165 |
type=create |
| 166 |
preload=test |
| 167 |
</inputbox> |
| 168 |
!! html |
| 169 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="test" name="preload" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 170 |
!! end |
| 171 |
|
| 172 |
!! test |
| 173 |
InputBox type=create with empty preload |
| 174 |
!! wikitext |
| 175 |
<inputbox> |
| 176 |
type=create |
| 177 |
preload= |
| 178 |
</inputbox> |
| 179 |
!! html |
| 180 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" name="preload" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Create page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 181 |
!! end |
| 182 |
|
| 183 |
!! test |
| 184 |
InputBox type=comment |
| 185 |
!! wikitext |
| 186 |
<inputbox> |
| 187 |
type=comment |
| 188 |
</inputbox> |
| 189 |
!! html |
| 190 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><input type="hidden" value="new" name="section" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" placeholder="" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="New section" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 191 |
!! end |
| 192 |
|
| 193 |
!! test |
| 194 |
InputBox type=commenttitle |
| 195 |
!! wikitext |
| 196 |
<inputbox> |
| 197 |
type=commenttitle |
| 198 |
</inputbox> |
| 199 |
!! html |
| 200 |
<div class="mw-inputbox-centered" style=""><form name="commentbox" class="commentbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><div class="cdx-text-input"><input name="preloadtitle" class="mw-inputbox-input commentboxInput cdx-text-input__input" placeholder="" size="50" dir="ltr" /></div><input type="hidden" value="new" name="section" /><input type="hidden" name="title" /><br /><input type="submit" name="create" value="New section" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 201 |
!! end |
| 202 |
|
| 203 |
!! test |
| 204 |
InputBox type=fulltext |
| 205 |
!! wikitext |
| 206 |
<inputbox> |
| 207 |
type=fulltext |
| 208 |
</inputbox> |
| 209 |
!! html |
| 210 |
<div class="mw-inputbox-centered" style=""><form name="searchbox" class="searchbox mw-inputbox-form" action="/wiki/Special:Search"><div class="cdx-text-input"><input class="mw-inputbox-input mw-searchInput searchboxInput cdx-text-input__input" name="search" placeholder="" size="50" dir="ltr" /></div><br /><input type="submit" name="fulltext" value="Search full text" class="cdx-button" /><input type="hidden" value="Search" name="fulltext" /></form></div> |
| 211 |
!! end |
| 212 |
|
| 213 |
!! test |
| 214 |
InputBox type=move |
| 215 |
!! wikitext |
| 216 |
<inputbox> |
| 217 |
type=move |
| 218 |
</inputbox> |
| 219 |
!! html |
| 220 |
<div class="mw-inputbox-centered" style=""><form name="movebox" class="mw-movebox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="Special:MovePage/" name="title" /><input type="hidden" name="wpReason" /><input type="hidden" name="prefix" /><div class="cdx-text-input"><input name="wpNewTitle" class="mw-inputbox-input mw-moveboxInput cdx-text-input__input" placeholder="" size="50" dir="ltr" /></div><br /><input type="submit" value="Move page" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 221 |
!! end |
| 222 |
|
| 223 |
!! test |
| 224 |
InputBox type=search with tour |
| 225 |
!! wikitext |
| 226 |
<inputbox> |
| 227 |
type=search |
| 228 |
tour=test |
| 229 |
</inputbox> |
| 230 |
!! html |
| 231 |
<div class="mw-inputbox-centered" style=""><form name="searchbox" class="searchbox mw-inputbox-form" action="/wiki/Special:Search"><div class="cdx-text-input"><input class="mw-inputbox-input mw-searchInput searchboxInput cdx-text-input__input" name="search" placeholder="" size="50" dir="ltr" /></div><input type="hidden" value="test" name="tour" /><br /><input type="submit" name="go" value="Try exact match" class="cdx-button" /> <input type="submit" name="fulltext" value="Search full text" class="cdx-button" /></form></div> |
| 232 |
!! end |
| 233 |
|
| 234 |
!! test |
| 235 |
InputBox langconvert |
| 236 |
!! options |
| 237 |
language=sr variant=sr-Latn |
| 238 |
!! wikitext |
| 239 |
<inputbox> |
| 240 |
type=create |
| 241 |
default=-{sr-Latn: Some latin; sr-Cyrl: Not latin }- |
| 242 |
placeholder=-{sr-Latn: Latn; sr-Cyrl: Cyrl}- |
| 243 |
</inputbox> |
| 244 |
!! html |
| 245 |
<div class="mw-inputbox-centered" style=""><form name="createbox" class="createbox mw-inputbox-form" action="/index.php" method="get"><input type="hidden" value="edit" name="action" /><div class="cdx-text-input"><input name="title" class="mw-inputbox-input mw-inputbox-createbox cdx-text-input__input" value="Some latin" placeholder="Latn" required="" size="50" dir="ltr" /></div><br /><input type="submit" name="create" value="Napravi stranicu" class="cdx-button cdx-button--action-progressive cdx-button--weight-primary" /></form></div> |
| 246 |
!! end |
| 247 |
|
| 248 |
!! test |
| 249 |
InputBox type=search with aria label |
| 250 |
!! wikitext |
| 251 |
<inputbox> |
| 252 |
type=search |
| 253 |
arialabel=Search this wiki |
| 254 |
</inputbox> |
| 255 |
!! html |
| 256 |
<div class="mw-inputbox-centered" style=""><form name="searchbox" class="searchbox mw-inputbox-form" action="/wiki/Special:Search"><div class="cdx-text-input"><input class="mw-inputbox-input mw-searchInput searchboxInput cdx-text-input__input" name="search" placeholder="" size="50" dir="ltr" aria-label="Search this wiki" /></div><br /><input type="submit" name="go" value="Try exact match" class="cdx-button" /> <input type="submit" name="fulltext" value="Search full text" class="cdx-button" /></form></div> |
| 257 |
!! end |