mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 23:43:54 +00:00
Specify "content" and "unbalanced-wikitext" as a valid parameter types
Bug: 51374 Change-Id: I711998193cc542b72213b56046529b53ebb17d73
This commit is contained in:
parent
6cdb47d097
commit
0a03f37581
|
@ -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',
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue