Template:NewPage/doc: Difference between revisions

From wikiNonStop
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>{{article|Main Page|somepage}}</nowiki> || Y || {{article|Main Page|somepage}}
| <nowiki>{{newArticle|Main Page|somepage}}</nowiki> || Y || {{newArticle|Main Page|somepage}}
|-
|-
| <nowiki>{{article|Example Page|somepage}}</nowiki>
| <nowiki>{{newArticle|Example Page|somepage}}</nowiki>
|| N || {{article|Example Page|somepage}}
|| N || {{newArticle|Example Page|somepage}}
|-
|-
| <nowiki>{{article|Article}}</nowiki> || Y || {{article|Article}}
| <nowiki>{{article|Article}}</nowiki> || Y || {{newArticle|Article}}
|}
|}


Line 21: Line 21:
"params": {
"params": {
"1": {
"1": {
"description": "Article name",
"description": "Page name",
"example": "Example Article",
"example": "Example Page",
"type": "wiki-page-name",
"type": "wiki-page-name",
"required": true,
"required": true,
"suggested": true
"suggested": true,
"aliases": [
"name"
]
},
},
"2": {
"2": {
"description": "Articlename to be displayed",
"description": "Name to be displayed",
"example": "Article",
"example": "Article",
"type": "wiki-page-name",
"type": "string",
"suggested": true
"suggested": true,
"aliases": [
"Name to Display"
]
}
}
},
},

Revision as of 13:05, 2 October 2024

Usage

Caption text
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

Template parameters

ParameterDescriptionTypeStatus
11 name

Page name

Example
Example Page
Page namerequired
22 Name to Display

Name to be displayed

Example
Article
Stringsuggested