mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-24 07:53:37 +00:00
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
This commit is contained in:
parent
985e8b56bf
commit
ba0349866f
|
@ -688,7 +688,8 @@ class TemplateDataBlob {
|
|||
. '</tr></thead>'
|
||||
. '<tbody>';
|
||||
|
||||
foreach ( $data->params as $paramName => $paramObj ) {
|
||||
foreach ( $data->paramOrder as $paramName ) {
|
||||
$paramObj = $data->params->$paramName;
|
||||
$description = '';
|
||||
$default = '';
|
||||
|
||||
|
|
Loading…
Reference in a new issue