MegaAlex has uploaded a new change for review.
https://gerrit.wikimedia.org/r/100512
Change subject: Add the "Default Form" input box as $1 to message
sf_createproperty_linktoform
......................................................................
Add the "Default Form" input box as $1 to message sf_createproperty_linktoform
Bug: 18560
Change-Id: I04ee7c5971c9228257b81cf9993d5fbd9bd6e5aa
---
M languages/SF_Messages.php
M specials/SF_CreateProperty.php
2 files changed, 9 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticForms
refs/changes/12/100512/1
diff --git a/languages/SF_Messages.php b/languages/SF_Messages.php
index 71a5a75..313a074 100644
--- a/languages/SF_Messages.php
+++ b/languages/SF_Messages.php
@@ -18,7 +18,7 @@
'specialpages-group-sf_group' => 'Semantic Forms',
'createproperty' => 'Create a property',
'sf-createproperty-with-name' => 'Create property: $1',
- 'sf_createproperty_linktoform' => 'This property will link to
pages that use the form:',
+ 'sf_createproperty_linktoform' => 'This property will link to
pages that use the form: $1',
'sf_createproperty_allowedvalsinput' => 'If you want this property to
only be allowed to have certain values, enter the list of allowed values,
separated by commas (if a value contains a comma, replace it with "\,"):',
'sf_createproperty_propname' => 'Property name:',
'sf_createproperty_proptype' => 'Type:',
@@ -244,7 +244,10 @@
'createproperty' => '{{doc-special|CreateProperty}}',
'sf-createproperty-with-name' => 'Used as page title. Parameters:
* $1 - property name',
- 'sf_createproperty_linktoform' => 'Used as label for the "Default form"
input box.',
+ 'sf_createproperty_linktoform' => 'This message is shown on
[[Special:Special:CreateProperty]], contains the label for the "Default form"
input box and the input box as $1.
+
+Parameters:
+* $1 - the input box',
'sf_createproperty_allowedvalsinput' => 'Used as label for the "Values"
input box.',
'sf_createproperty_propname' => 'Used as a table column header and as a
label for the select box.
{{Identical|Property name}}',
diff --git a/specials/SF_CreateProperty.php b/specials/SF_CreateProperty.php
index 13f6d81..056af89 100644
--- a/specials/SF_CreateProperty.php
+++ b/specials/SF_CreateProperty.php
@@ -152,12 +152,13 @@
}
$text .= Html::rawElement( 'select', array( 'id' =>
'property_dropdown', 'name' => 'property_type', 'onChange' =>
'toggleDefaultForm(this.value); toggleAllowedValues(this.value);' ),
$select_body ) . "\n";
- $default_form_input = wfMessage( 'sf_createproperty_linktoform'
)->escaped();
+ $default_form_input = wfMessage( 'sf_createproperty_linktoform')
+ ->params( '<input size="20" name="default_form" value="" />'
)->text();
+
$values_input = wfMessage( 'sf_createproperty_allowedvalsinput'
)->escaped();
$text .= <<<END
<div id="default_form_div" style="padding: 5px 0 5px 0; margin: 7px 0
7px 0;">
- <p>$default_form_input
- <input size="20" name="default_form" value="" /></p>
+ <p>$default_form_input</p>
</div>
<div id="allowed_values" style="margin-bottom: 15px;">
<p>$values_input</p>
--
To view, visit https://gerrit.wikimedia.org/r/100512
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I04ee7c5971c9228257b81cf9993d5fbd9bd6e5aa
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticForms
Gerrit-Branch: master
Gerrit-Owner: MegaAlex <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits