From 1421878eee4a8774dfb039d8628417b90adf3892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Thu, 15 Nov 2018 23:59:58 +0100 Subject: [PATCH] Separate parameter aliases in the description table with spaces This allows them to wrap over multiple lines if necessary, greatly improving the result for templates with ridiculous number of aliases, like . Change-Id: I5826ac31b83e81f89f85e87f9098570b3759ccfb --- includes/TemplateDataBlob.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/TemplateDataBlob.php b/includes/TemplateDataBlob.php index 78e092f2..5ebcfa95 100644 --- a/includes/TemplateDataBlob.php +++ b/includes/TemplateDataBlob.php @@ -801,7 +801,8 @@ class TemplateDataBlob { $aliases = ''; if ( count( $paramObj->aliases ) ) { foreach ( $paramObj->aliases as $alias ) { - $aliases .= Html::element( 'code', [ + $aliases .= wfMessage( 'word-separator' )->inLanguage( $lang )->escaped() + . Html::element( 'code', [ 'class' => 'mw-templatedata-doc-param-alias' ], $alias ); }