Template:NewPage/doc: Difference between revisions

From wikiNonStop
Content added Content deleted
(Created page with "{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> == Usage == {| class="wikitable" |+ Caption text |- ! Markup !! Article exists !! Result |- | <nowiki>{{article|Main Page|somepage}}</nowiki> || Y || {{article|Main Page|somepage}} |- | <nowiki>{{article|Example Page|somepage}}</nowiki> || N || {{article|Example Page|somepage}} |- | <nowiki>{{article|Article}}</nowiki> || Y || {{article|Article}} |} ==TemplateDat...")
 
No edit summary
Tag: Manual revert
 
(9 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>{{article|Main Page|somepage}}</nowiki> || Y || {{article|Main Page|somepage}}
| <nowiki>{{newPage|Example Page|somepage|7}}</nowiki>
| N
| {{newPage|Example Page|somepage|7}}
|-
|-
| <nowiki>{{article|Example Page|somepage}}</nowiki>
| <nowiki>{{newPage|wikiNonStop|somepage}}</nowiki>
| Y
|| N || {{article|Example Page|somepage}}
| {{newPage|1=wikiNonStop|2=somepage}}
|-
|-
| <nowiki>{{article|Article}}</nowiki> || Y || {{article|Article}}
| <nowiki>{{newPage|wikiNonStop|somepage|14}}</nowiki>
| Y
| {{newPage|wikiNonStop|somepage|14}}
|-
| <nowiki>{{newPage|wikiNonStop|somepage|365}}</nowiki>
| Y
| {{newPage|wikiNonStop|somepage|365}}
|}
|}


Line 21: Line 30:
"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": "PageName to be displayed",
"example": "Article",
"example": "Page",
"type": "wiki-page-name",
"type": "string",
"suggested": true,
"aliases": [
"dname"
]
},
"3": {
"aliases": [
"days"
],
"label": "Days",
"description": "age of page",
"type": "number",
"default": "7",
"suggested": true
"suggested": true
}
}
Line 36: Line 61:
"paramOrder": [
"paramOrder": [
"1",
"1",
"2"
"2",
"3"
],
],
"description": "newArticle"
"description": "newArticle"

Latest revision as of 14:40, 2 October 2024

Usage

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

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