43 $field = parent::loadInputFromParameters( $fieldname, $descriptor,
$parent );
44 $field->setShowEmptyLabel(
false );
48 public function getHTML( $submitResult ) {
55 'mediawiki.ui.button',
57 'mediawiki.ui.checkbox',
60 return parent::getHTML( $submitResult );
64 $attribs = parent::getFormAttributes();
65 $attribs[
'class'] = [
'mw-htmlform',
'mw-ui-vform',
'mw-ui-container' ];
77 if ( $this->mShowSubmit ) {
80 if (
isset( $this->mSubmitID ) ) {
84 if (
isset( $this->mSubmitName ) ) {
88 if (
isset( $this->mSubmitTooltip ) ) {
94 'mw-ui-button mw-ui-big mw-ui-block',
96 foreach ( $this->mSubmitFlags as $flag ) {
103 if ( $this->mShowReset ) {
104 $buttons .= Html::element(
108 'value' => $this->
msg(
'htmlform-reset' )->
text(),
109 'class' =>
'mw-ui-button mw-ui-big mw-ui-block',
114 if ( $this->mShowCancel ) {
115 $target = $this->mCancelTarget ?: Title::newMainPage();
116 if ( $target instanceof
Title ) {
117 $target = $target->getLocalURL();
119 $buttons .= Html::element(
122 'class' =>
'mw-ui-button mw-ui-big mw-ui-block',
129 foreach ( $this->mButtons as $button ) {
132 'name' => $button[
'name'],
133 'value' => $button[
'value']
136 if ( $button[
'attribs'] ) {
137 $attrs += $button[
'attribs'];
140 if (
isset( $button[
'id'] ) ) {
141 $attrs[
'id'] = $button[
'id'];
144 $attrs[
'class'] =
isset( $attrs[
'class'] ) ? (
array)$attrs[
'class'] : [];
145 $attrs[
'class'][] =
'mw-ui-button mw-ui-big mw-ui-block';
147 $buttons .= Html::element(
'input', $attrs ) .
"\n";
154 return Html::rawElement(
'div',
155 [
'class' =>
'mw-htmlform-submit-buttons' ],
"\n$buttons" ) .
"\n";
This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second as well as the first line of the second redirect text
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
msg( $key)
Get a Message object with context set Parameters are the same as wfMessage()
static tooltipAndAccesskeyAttribs( $name, array $msgParams=[], $options=null)
Returns the attributes for the tooltip and access key.
Represents a title within MediaWiki.
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 noclasses 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 and may include noclasses & $html
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 noclasses 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 and may include noclasses after processing & $attribs
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))