Bartosz Dziewoński has uploaded a new change for review.
https://gerrit.wikimedia.org/r/230822
Change subject: [DO NOT MERGE] Example for NamespaceInputWidget
......................................................................
[DO NOT MERGE] Example for NamespaceInputWidget
Change-Id: I80d2ba33cdf69ca481a5f15abe3e10dcd4f7ccee
---
M includes/specials/SpecialBlankpage.php
1 file changed, 29 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/22/230822/1
diff --git a/includes/specials/SpecialBlankpage.php
b/includes/specials/SpecialBlankpage.php
index e61f12b..8303759 100644
--- a/includes/specials/SpecialBlankpage.php
+++ b/includes/specials/SpecialBlankpage.php
@@ -34,6 +34,34 @@
public function execute( $par ) {
$this->setHeaders();
- $this->getOutput()->addWikiMsg( 'intentionallyblankpage' );
+ $this->getOutput()->enableOOUI();
+ $this->getOutput()->addHTML( new
MediaWiki\Widget\NamespaceInputWidget( array(
+ 'infusable' => true,
+ 'value' => 6,
+ 'name' => 'ns',
+ 'id' => 'ns-id',
+ 'includeAllValue' => 'foo',
+ ) ) );
+ $this->getOutput()->addHTML( new
MediaWiki\Widget\ComplexNamespaceInputWidget( array(
+ 'infusable' => true,
+ 'namespace' => array(
+ 'value' => 6,
+ 'name' => 'ns',
+ 'id' => 'ns-id',
+ 'includeAllValue' => 'foo',
+ ),
+ 'invert' => array(
+ 'name' => 'invert',
+ ),
+ 'invertLabel' => array(
+ 'label' => 'Invert!',
+ ),
+ 'associated' => array(
+ 'name' => 'associated',
+ ),
+ 'associatedLabel' => array(
+ 'label' => 'With associated!',
+ ),
+ ) ) );
}
}
--
To view, visit https://gerrit.wikimedia.org/r/230822
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I80d2ba33cdf69ca481a5f15abe3e10dcd4f7ccee
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits