Shirayuki has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/52728


Change subject: Adding comments for grep
......................................................................

Adding comments for grep

Change-Id: I43a5eb1d21af7027c620e2a9c74c16f741ffb1a8
---
M SpecialApiSandbox.php
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ApiSandbox 
refs/changes/28/52728/1

diff --git a/SpecialApiSandbox.php b/SpecialApiSandbox.php
index dbaa4be..e82677a 100644
--- a/SpecialApiSandbox.php
+++ b/SpecialApiSandbox.php
@@ -129,6 +129,8 @@
                        $options["$type=$module"] = "$type=$module";
                }
 
+               // Give grep a chance to find the usages:
+               // apisb-query-prop, apisb-query-list, apisb-query-meta
                $optgroup = array();
                $optgroup[$this->msg( "apisb-query-$type" )->parse()] = 
$options;
 
@@ -148,6 +150,8 @@
                        'id' => "api-sandbox-$name" )
                );
                if ( $default === false ) {
+                       // Give grep a chance to find the usages:
+                       // apisb-select-action, apisb-select-query, 
apisb-select-value
                        $s .= Xml::option( $this->msg( "apisb-select-$name" 
)->text(), '', true );
                }
                $s .= XmlSelect::formatOptions( $items, $default );
@@ -161,6 +165,9 @@
         * @return string
         */
        private function openFieldset( $name, $attribs = array() ) {
+               // Give grep a chance to find the usages:
+               // apisb-legend-parameters, apisb-legend-result,
+               // apisb-legend-generic-parameters, 
apisb-legend-generator-parameters
                return "\n" . Html::openElement( 'fieldset', array( 'id' => 
"api-sandbox-$name" ) + $attribs )
                        . "\n\t" . Html::rawElement( 'legend', array(), 
$this->msg( "apisb-legend-$name" )->parse() )
                        . "\n";

-- 
To view, visit https://gerrit.wikimedia.org/r/52728
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I43a5eb1d21af7027c620e2a9c74c16f741ffb1a8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ApiSandbox
Gerrit-Branch: master
Gerrit-Owner: Shirayuki <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to