Template:NewPage/doc: Difference between revisions

From wikiNonStop
Content added Content deleted
m (Majestix moved page Template:NewArticle/doc to Template:NewPage/doc without leaving a redirect)
No edit summary
Line 6: Line 6:
|+ Caption text
|+ Caption text
|-
|-
! Markup !! Article exists !! Result
! Markup !! Article exists !! !! Result
|-
|-
| <nowiki>{{newArticle|Main Page|somepage}}</nowiki> || Y || {{newArticle|Main Page|somepage}}
| <nowiki>{{newPage|Main Page|somepage}}</nowiki> || Y || {{newPage|1=Main Page|2=somepage}}
|-
|-
| <nowiki>{{newArticle|Example Page|somepage}}</nowiki>
| <nowiki>{{newPage|Example Page|somepage|7}}</nowiki>
|| N || {{newArticle|Example Page|somepage}}
|| N || {{newPage|Example Page|somepage|7}}
|-
|-
| <nowiki>{{article|Article}}</nowiki> || Y || {{newArticle|Article}}
| <nowiki>{{newPage|Main Page|Main Page|14}}</nowiki> || Y || {{newPage|Article|days}}
|-
| <nowiki>{{newPage|Main Page|Main Page|365}}</nowiki> || Y || {{newPage|Article|days}}

|}
|}


Line 31: Line 34:
},
},
"2": {
"2": {
"description": "Name to be displayed",
"description": "PageName to be displayed",
"example": "Article",
"example": "Page",
"type": "string",
"type": "string",
"suggested": true,
"suggested": true,
"aliases": [
"aliases": [
"Name to Display"
"dname"
]
]
},
"3": {
"aliases": [
"days"
],
"label": "Days",
"description": "age of page",
"type": "number",
"default": "7",
"suggested": true
}
}
},
},
"paramOrder": [
"paramOrder": [
"1",
"1",
"2"
"2",
"3"
],
],
"description": "newArticle"
"description": "newArticle"

Revision as of 13:20, 2 October 2024

Usage

Caption text
Markup Article exists Result
{{newPage|Main Page|somepage}} Y somepage
{{newPage|Example Page|somepage|7}} N
{{newPage|Main Page|Main Page|14}} Y
{{newPage|Main Page|Main Page|365}} Y

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 dname

PageName to be displayed

Example
Page
Stringsuggested
Days3 days

age of page

Default
7
Numbersuggested