Template:NewPage/doc: Difference between revisions
Content added Content deleted
m (Majestix moved page Template:Article/doc to Template:NewArticle/doc without leaving a redirect) |
No edit summary |
||
Line 8: | Line 8: | ||
! Markup !! Article exists !! Result |
! Markup !! Article exists !! Result |
||
|- |
|- |
||
| <nowiki>{{ |
| <nowiki>{{newArticle|Main Page|somepage}}</nowiki> || Y || {{newArticle|Main Page|somepage}} |
||
|- |
|- |
||
| <nowiki>{{ |
| <nowiki>{{newArticle|Example Page|somepage}}</nowiki> |
||
|| N || {{ |
|| N || {{newArticle|Example Page|somepage}} |
||
|- |
|- |
||
| <nowiki>{{article|Article}}</nowiki> || Y || {{ |
| <nowiki>{{article|Article}}</nowiki> || Y || {{newArticle|Article}} |
||
|} |
|} |
||
Line 21: | Line 21: | ||
"params": { |
"params": { |
||
"1": { |
"1": { |
||
"description": " |
"description": "Page name", |
||
"example": "Example |
"example": "Example Page", |
||
"type": "wiki-page-name", |
"type": "wiki-page-name", |
||
"required": true, |
"required": true, |
||
"suggested": true |
"suggested": true, |
||
"aliases": [ |
|||
"name" |
|||
] |
|||
}, |
}, |
||
"2": { |
"2": { |
||
"description": " |
"description": "Name to be displayed", |
||
"example": "Article", |
"example": "Article", |
||
"type": " |
"type": "string", |
||
"suggested": true |
"suggested": true, |
||
"aliases": [ |
|||
"Name to Display" |
|||
] |
|||
} |
} |
||
}, |
}, |
Revision as of 13:05, 2 October 2024
This is a documentation subpage for Template:NewPage. It contains usage information, categories and other content that is not part of the original Template page. |
Usage
Markup | Article exists | Result |
---|---|---|
{{newArticle|Main Page|somepage}} | Y | Template:NewArticle |
{{newArticle|Example Page|somepage}} | N | Template:NewArticle |
{{article|Article}} | Y | Template:NewArticle |
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
NewPage
newArticle
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 name | Page name
| Page name | required |
2 | 2 Name to Display | Name to be displayed
| String | suggested |