Mooeypoo has uploaded a new change for review.

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

Change subject: Display TemplateData parameter table according to param order
......................................................................

Display TemplateData parameter table according to param order

Have the parameter order in the display table appear according to
the paramOrder setting. If the setting isn't explicitly set in the
TemplateData string, the parameters will be in order of appearance.

Change-Id: Ibbd5a7b28f722c51788b9ed0f5ac577902ce4b7a
---
M TemplateDataBlob.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TemplateData 
refs/changes/14/191514/1

diff --git a/TemplateDataBlob.php b/TemplateDataBlob.php
index cceb7f7..81ecf2d 100644
--- a/TemplateDataBlob.php
+++ b/TemplateDataBlob.php
@@ -688,7 +688,8 @@
                        . '</tr></thead>'
                        . '<tbody>';
 
-               foreach ( $data->params as $paramName => $paramObj ) {
+               foreach ( $data->paramOrder as $paramName ) {
+                       $paramObj = $data->params->$paramName;
                        $description = '';
                        $default = '';
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibbd5a7b28f722c51788b9ed0f5ac577902ce4b7a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TemplateData
Gerrit-Branch: master
Gerrit-Owner: Mooeypoo <mor...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to