Specify "content" and "unbalanced-wikitext" as a valid parameter types

Bug: 51374
Change-Id: I711998193cc542b72213b56046529b53ebb17d73
This commit is contained in:
Timo Tijhof 2013-10-24 18:41:51 +02:00 committed by Krinkle
parent 6cdb47d097
commit 0a03f37581
2 changed files with 8 additions and 0 deletions

View file

@ -93,9 +93,11 @@ class TemplateDataBlob {
); );
static $types = array( static $types = array(
'content',
'line', 'line',
'number', 'number',
'string', 'string',
'unbalanced-wikitext',
'unknown', 'unknown',
'wiki-page-name', 'wiki-page-name',
'wiki-user-name', 'wiki-user-name',

View file

@ -54,6 +54,12 @@
- wiki-user-name - wiki-user-name
A valid MediaWiki user name for the current wiki. Doesn't have to exist, A valid MediaWiki user name for the current wiki. Doesn't have to exist,
but if not should be a valid user name to create. but if not should be a valid user name to create.
- content
Page content (such as text style, links and images etc.).
- unbalanced-wikitext
Raw wikitext that should not be treated as standalone content because it
is unbalanced (eg. templates concatenating incomplete wikitext as a bigger
whole such as {{echo|before=<u>|after=</u>}})
- line - line
Short text field - use for names, labels, and other short-form fields. Short text field - use for names, labels, and other short-form fields.