mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-27 17:20:01 +00:00
build: Upgrade mediawiki/mediawiki-phan-config from 0.5.0 to 0.6.0
Change-Id: I5d1e3bde15fb951f7dc8ee7d753b090a12661e3c
This commit is contained in:
parent
2284a41e61
commit
ecab0b8dbb
|
@ -4,7 +4,7 @@
|
|||
"mediawiki/mediawiki-codesniffer": "24.0.0",
|
||||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||
"mediawiki/minus-x": "0.3.1",
|
||||
"mediawiki/mediawiki-phan-config": "0.5.0"
|
||||
"mediawiki/mediawiki-phan-config": "0.6.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": [
|
||||
|
|
|
@ -723,8 +723,7 @@ class TemplateDataBlob {
|
|||
'mw-templatedata-doc-muted' => $data->description === null,
|
||||
]
|
||||
],
|
||||
$data->description !== null ?
|
||||
$data->description :
|
||||
$data->description ??
|
||||
wfMessage( 'templatedata-doc-desc-empty' )->inLanguage( $lang )->text()
|
||||
)
|
||||
. '<table class="wikitable mw-templatedata-doc-params sortable">'
|
||||
|
@ -820,11 +819,7 @@ class TemplateDataBlob {
|
|||
|
||||
$html .= '<tr>'
|
||||
// Label
|
||||
. Html::element( 'th', [],
|
||||
$paramObj->label !== null ?
|
||||
$paramObj->label :
|
||||
$lang->ucfirst( $paramName )
|
||||
)
|
||||
. Html::element( 'th', [], $paramObj->label ?? $lang->ucfirst( $paramName ) )
|
||||
// Parameters and aliases
|
||||
. Html::rawElement( 'td', [ 'class' => 'mw-templatedata-doc-param-name' ],
|
||||
Html::element( 'code', [], $paramName ) . $aliases
|
||||
|
@ -836,9 +831,8 @@ class TemplateDataBlob {
|
|||
]
|
||||
],
|
||||
Html::element( 'p', [],
|
||||
$paramObj->description !== null ?
|
||||
$paramObj->description :
|
||||
wfMessage( 'templatedata-doc-param-desc-empty' )->inLanguage( $lang )->text()
|
||||
$paramObj->description ??
|
||||
wfMessage( 'templatedata-doc-param-desc-empty' )->inLanguage( $lang )->text()
|
||||
)
|
||||
. Html::rawElement( 'dl', [],
|
||||
// Default
|
||||
|
|
Loading…
Reference in a new issue