Template:NewPage: Difference between revisions

From wikiNonStop
Content added Content deleted
(Created page with "{{#ifexpr: {{REVISIONTIMESTAMP: {{{1|}}}}} > {{LOCALTIMESTAMP}} - 7*24*3600 | new|35px {{{1|}}}| {{{1|}}} }}")
 
No edit summary
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexpr: {{REVISIONTIMESTAMP: {{{1|}}}}} > {{LOCALTIMESTAMP}} - 7*24*3600 | [[File:Regular.svg|new|35px]] {{{1|}}}| {{{1|}}} }}
{{#ifexist: {{{1|}}}|{{#ifexpr: {{#time: U |{{REVISIONTIMESTAMP: {{{1|}}}}} }} > {{#expr: ({{#time: U |{{LOCALTIMESTAMP}}}}-{{{3|7}}}*24*3600) }} | [[File:Regular.svg|new|25px]] [[{{{2|}}}]]| [[{{{1|}}}|{{{2|}}}]]}}
|}}<noinclude>
{{documentation}}
</noinclude>

Latest revision as of 14:46, 2 October 2024

Template documentation


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[Edit template data]

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