Template:NewPage/doc: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary Tag: Manual revert |
||
(7 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
|+ Caption text |
|+ Caption text |
||
|- |
|- |
||
! Markup !! Article exists !! Result |
! Markup !! Article exists !! !! Result |
||
|- |
|- |
||
| <nowiki>{{ |
| <nowiki>{{newPage|Example Page|somepage|7}}</nowiki> |
||
| N |
|||
⚫ | |||
|- |
|- |
||
| <nowiki>{{ |
| <nowiki>{{newPage|wikiNonStop|somepage}}</nowiki> |
||
| Y |
|||
⚫ | |||
| {{newPage|1=wikiNonStop|2=somepage}} |
|||
|- |
|- |
||
| <nowiki>{{ |
| <nowiki>{{newPage|wikiNonStop|somepage|14}}</nowiki> |
||
| Y |
|||
| {{newPage|wikiNonStop|somepage|14}} |
|||
|- |
|||
| <nowiki>{{newPage|wikiNonStop|somepage|365}}</nowiki> |
|||
| Y |
|||
| {{newPage|wikiNonStop|somepage|365}} |
|||
|} |
|} |
||
Line 31: | Line 40: | ||
}, |
}, |
||
"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" |
Latest revision as of 14:40, 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|Example Page|somepage|7}} | N | ||
{{newPage|wikiNonStop|somepage}} | Y | somepage | |
{{newPage|wikiNonStop|somepage|14}} | Y | somepage | |
{{newPage|wikiNonStop|somepage|365}} | Y | somepage |
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 |