Template:NewPage/doc: Difference between revisions
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>{{ |
| <nowiki>{{newPage|Main Page|somepage}}</nowiki> || Y || {{newPage|1=Main Page|2=somepage}} |
||
|- |
|- |
||
| <nowiki>{{ |
| <nowiki>{{newPage|Example Page|somepage|7}}</nowiki> |
||
|| N || {{ |
|| N || {{newPage|Example Page|somepage|7}} |
||
|- |
|- |
||
| <nowiki>{{ |
| <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": " |
"description": "PageName to be displayed", |
||
"example": " |
"example": "Page", |
||
"type": "string", |
"type": "string", |
||
"suggested": true, |
"suggested": true, |
||
"aliases": [ |
"aliases": [ |
||
" |
"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
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 | |
---|---|---|---|
{{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
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 name | Page name
| Page name | required |
2 | 2 dname | PageName to be displayed
| String | suggested |
Days | 3 days | age of page
| Number | suggested |