33 $this->
data[
'extraInput'][] = [
38 'helptext' => $helptext,
44 <div
class=
"mw-ui-container">
46 <div
id=
"languagelinks">
47 <p><?
php $this->
html(
'languages' ); ?></p>
50 if ( !
wfMessage(
'signupstart' )->isDisabled() ) { ?>
51 <div
id=
"signupstart"><?
php $this->
msgWiki(
'signupstart' ); ?></div>
53 <div
id=
"userloginForm">
54 <
form name=
"userlogin2" id=
"userlogin2" class=
"mw-ui-vform" method=
"post" action=
"<?php $this->text( 'action' ); ?>">
55 <section
class=
"mw-form-header">
56 <?
php $this->
html(
'header' ); ?>
58 <!-- This element
is used by the mediawiki.special.userlogin.signup.js module. -->
60 id=
"mw-createacct-status-area"
61 <?
php if ( $this->
data[
'message'] ) { ?>
62 class=
"<?php echo $this->data['messagetype']; ?>box"
64 style=
"display: none;"
67 <?
php if ( $this->
data[
'message'] ) { ?>
68 <?
php if ( $this->
data[
'messagetype'] ==
'error' ) { ?>
69 <strong><?
php $this->
msg(
'createacct-error' ); ?></strong>
72 <?
php $this->
html(
'message' ); ?>
76 <?
php if ( $this->
data[
'formheader'] ) { ?>
77 <div
class=
"mw-form-formheader">
78 <?
php $this->
html(
'formheader' ); ?>
82 <div
class=
"mw-ui-vform-field">
84 <?
php $this->
msg(
'userlogin-yourname' ); ?>
86 <span
class=
"mw-ui-flush-right"><?
php echo $this->
getMsg(
'createacct-helpusername' )->parse(); ?></span>
90 'class' =>
'mw-ui-input loginText',
95 'placeholder' => $this->
getMsg( $this->
data[
'loggedin'] ?
96 'createacct-another-username-ph' :
'userlogin-yourname-ph' )->
text(),
101 <div
class=
"mw-ui-vform-field">
102 <?
php if ( $this->
data[
'createemail'] ) { ?>
103 <div
class=
"mw-ui-checkbox">
104 <input name=
"wpCreateaccountMail" type=
"checkbox" value=
"1" id=
"wpCreateaccountMail" tabindex=
"2"
105 <?
php if ( $this->
data[
'createemailset'] ) {
106 echo
'checked="checked"';
108 ><label
for=
"wpCreateaccountMail">
109 <?
php $this->
msg(
'createaccountmail' ); ?>
115 <div
class=
"mw-ui-vform-field mw-row-password">
116 <label
for=
'wpPassword2'><?
php $this->
msg(
'userlogin-yourpassword' ); ?></label>
118 echo
Html::input(
'wpPassword', null,
'password', [
119 'class' =>
'mw-ui-input loginPassword',
120 'id' =>
'wpPassword2',
124 'placeholder' => $this->
getMsg(
'createacct-yourpassword-ph' )->
text()
130 if ( $this->
data[
'usedomain'] ) {
131 $select =
new XmlSelect(
'wpDomain',
false, $this->
data[
'domain'] );
132 $select->setAttribute(
'tabindex', 4 );
133 foreach ( $this->
data[
'domainnames']
as $dom ) {
134 $select->addOption( $dom );
137 <div
class=
"mw-ui-vform-field" id=
"mw-user-domain-section">
138 <label
for=
"wpDomain"><?
php $this->
msg(
'yourdomainname' ); ?></label>
140 <?
php echo $select->getHTML(); ?>
145 <div
class=
"mw-ui-vform-field mw-row-password">
146 <label
for=
'wpRetype'><?
php $this->
msg(
'createacct-yourpasswordagain' ); ?></label>
149 'class' =>
'mw-ui-input loginPassword',
154 'placeholder' => $this->
getMsg(
'createacct-yourpasswordagain-ph' )->
text()
159 <div
class=
"mw-ui-vform-field">
160 <?
php if ( $this->
data[
'useemail'] ) { ?>
161 <label
for=
'wpEmail'>
163 $this->
msg( $this->
data[
'emailrequired'] ?
164 'createacct-emailrequired' :
165 'createacct-emailoptional'
171 'class' =>
'mw-ui-input loginText',
175 'required' => $this->
data[
'emailrequired'],
176 'placeholder' => $this->
getMsg( $this->
data[
'loggedin'] ?
177 'createacct-another-email-ph' :
'createacct-email-ph' )->
text()
183 <?
php if ( $this->
data[
'userealname'] ) { ?>
184 <div
class=
"mw-ui-vform-field">
185 <label
for=
'wpRealName'><?
php $this->
msg(
'createacct-realname' ); ?></label>
186 <input
type=
'text' class=
'mw-ui-input loginText' name=
"wpRealName" id=
"wpRealName"
188 value=
"<?php $this->text( 'realname' ); ?>" size=
'20' />
189 <div
class=
"prefsectiontip">
190 <?
php $this->
msgWiki( $this->
data[
'loggedin'] ?
'createacct-another-realname-tip' :
'prefs-help-realname' ); ?>
195 <?
php if ( $this->
data[
'usereason'] ) { ?>
196 <div
class=
"mw-ui-vform-field">
197 <label
for=
'wpReason'><?
php $this->
msg(
'createacct-reason' ); ?></label>
199 'class' =>
'mw-ui-input loginText',
203 'placeholder' => $this->
getMsg(
'createacct-reason-ph' )->
text()
210 if ( isset( $this->
data[
'extraInput'] ) && is_array( $this->
data[
'extraInput'] ) ) {
211 foreach ( $this->
data[
'extraInput']
as $inputItem ) { ?>
212 <div
class=
"mw-ui-vform-field">
215 if ( $inputItem[
'type'] ==
'checkbox' ) {
217 <div
class=
"mw-ui-checkbox">
219 name=
"<?php echo htmlspecialchars( $inputItem['name'] ); ?>"
220 id=
"<?php echo htmlspecialchars( $inputItem['name'] ); ?>"
221 type=
"checkbox" value=
"1"
222 tabindex=
"<?php echo $tabIndex++; ?>"
223 <?
php if ( !empty( $inputItem[
'value'] ) ) {
224 echo
'checked="checked"';
226 ><label
for=
"<?php echo htmlspecialchars( $inputItem['name'] ); ?>">
227 <?
php $this->
msg( $inputItem[
'msg'] ); ?>
235 <?
php if ( !empty( $inputItem[
'msg'] ) ) { ?>
236 <label
for=
"<?php echo htmlspecialchars( $inputItem['name'] ); ?>">
241 type=
"<?php echo htmlspecialchars( $inputItem['type'] ); ?>"
243 name=
"<?php echo htmlspecialchars( $inputItem['name'] ); ?>"
244 tabindex=
"<?php echo $tabIndex++; ?>"
245 value=
"<?php echo htmlspecialchars( $inputItem['value'] ); ?>"
246 id=
"<?php echo htmlspecialchars( $inputItem['name'] ); ?>"
249 <?
php if ( $inputItem[
'helptext'] !==
false ) { ?>
250 <div
class=
"prefsectiontip">
251 <?
php $this->
msgWiki( $inputItem[
'helptext'] ); ?>
260 if ( $this->
haveData(
'extrafields' ) ) {
261 echo $this->
data[
'extrafields'];
266 <div
class=
"mw-ui-vform-field mw-submit">
269 $this->
getMsg( $this->
data[
'loggedin'] ?
'createacct-another-submit' :
'createacct-submit' ),
271 'id' =>
'wpCreateaccount',
272 'name' =>
'wpCreateaccount',
273 'tabindex' => $tabIndex++
277 'mw-ui-constructive',
282 <?
php if ( $this->
haveData(
'uselang' ) ) { ?><input
type=
"hidden" name=
"uselang" value=
"<?php $this->text( 'uselang' ); ?>" /><?
php } ?>
283 <?
php if ( $this->
haveData(
'token' ) ) { ?><input
type=
"hidden" name=
"wpCreateaccountToken" value=
"<?php $this->text( 'token' ); ?>" /><?
php } ?>
285 <?
php if ( !
wfMessage(
'signupend' )->isDisabled() ) { ?>
286 <div
id=
"signupend"><?
php $this->
html(
'signupend' ); ?></div>
289 <div
class=
"mw-createacct-benefits-container">
290 <h2><?
php $this->
msg(
'createacct-benefit-heading' ); ?></h2>
291 <div
class=
"mw-createacct-benefits-list">
293 for ( $benefitIdx = 1; $benefitIdx <= $this->
data[
'benefitCount']; $benefitIdx++ ) {
295 $headUnescaped = $this->
getMsg(
"createacct-benefit-head$benefitIdx" )->text();
297 <div
class=
"mw-number-text <?php $this->msg( "createacct-benefit-icon$benefitIdx
" ); ?>">
298 <h3><?
php $this->
msg(
"createacct-benefit-head$benefitIdx" ); ?></h3>
299 <p><?
php echo $this->
getMsg(
"createacct-benefit-body$benefitIdx" )->params( $headUnescaped )->escaped(); ?></p>
#define the
table suitable for use with IDatabase::select()
you don t have to do a grep find to see where the $wgReverseTitle variable is used
null means default in associative array form
Class for generating HTML <select> or <datalist> elements.
New base template for a skin's template extended from QuickTemplate this class features helper method...
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of data
Some quick notes on the file repository architecture Functionality is
getMsg($name)
Get a Message object with its context set.
addInputItem($name, $value, $type, $msg, $helptext=false)
Extensions (AntiSpoof and TitleBlacklist) call this in response to UserCreateForm hook to add checkbo...
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned after processing after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage() -> params() ->parseAsBlock()-offset Set to overwrite offset parameter in $wgRequest set to ''to unsetoffset-wrap String Wrap the message in html(usually something like"<
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable or merely the Work and Derivative Works thereof Contribution shall mean any work of including the original version of the Work and any modifications or additions to that Work or Derivative Works that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner For the purposes of this submitted means any form of or written communication sent to the Licensor or its including but not limited to communication on electronic mailing source code control and issue tracking systems that are managed by
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
static passwordChangeInputAttribs()
Provide an array of HTML5 attributes to put on an input element intended for the user to enter a new ...
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
This document describes the state of Postgres support in and is fairly well maintained The main code is very well while extensions are very hit and miss it is probably the most supported database after MySQL Much of the work in making MediaWiki database agnostic came about through the work of creating Postgres as and are nearing end of but without copying over all the usage comments General notes on the but these can almost always be programmed around *Although Postgres has a true BOOLEAN type
static submitButton($contents, array $attrs, array $modifiers=[])
Returns an HTML link element in a string styled as a button (when $wgUseMediaWikiUIEverywhere is enab...
static input($name, $value= '', $type= 'text', array $attribs=[])
Convenience function to produce an "<input>" element.
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at name
do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values before the output is cached one of or reset my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled allows for interception of redirect as a string mapping parameter names to values & $type
Allows to change the fields on the form that will be generated $name