Template:Editlinks: Difference between revisions

Content deleted Content added
Created page with "{{#formredlink:target={{{PageNameParameter|}}}|form=FormName}} {{#forminput:form=|size=|default value={{PAGENAME}}:{{CURRENTYEAR}}|button text=|query string=query string param..."
 
No edit summary
Line 1: Line 1:
<span class="createform-wrapper {{{class|}}}">{{#forminput:form={{{form|}}}|size=0|default value={{#if: {{{NS|}}}|{{{NS}}}:|}}{{{basename|{{PAGENAME}}}}}{{#if: {{{time-base|}}}|/{{{time|{{CURRENTYEAR}}}}}|}}|button text={{{text|{{{form|}}}}}}|{{#if: {{{no-popup|}}}||popup}}|reload|no autofocus|returnto={{FULLPAGENAME}}}}</span>
{{#formredlink:target={{{PageNameParameter|}}}|form=FormName}}
<noinclude>
{{#forminput:form=|size=|default value={{PAGENAME}}:{{CURRENTYEAR}}|button text=|query string=query string parameters|autocomplete on category=|autocomplete on namespace=|placeholder=|popup|reload|no autofocus|returnto=}}
<templatedata>
{{#formlink:form=|link text=צור מנוף|link type=button|query string=query string parameters|target=|tooltip=|popup|reload|new window|returnto=}}
{
"params": {
"class": {
"label": "Wrapper class",
"type": "string"
},
"form": {
"label": "Form name",
"required": true
},
"NS": {
"label": "Namespace for page",
"suggested": true
},
"text": {
"label": "Button text",
"type": "string",
"suggested": true
},
"no-popup": {
"label": "If to lead to new page or to open in popup"
},
"basename": {
"label": "Base page name"
},
"time-base": {
"type": "boolean"
},
"time": {
"label": "Which time magic word to use"
}
},
"paramOrder": [
"form",
"basename",
"NS",
"text",
"class",
"no-popup",
"time-base",
"time"
],
"description": "Template for creating direct editing links"
}
</templatedata>
[[category:forms]]
</noinclude>

Revision as of 14:15, 22 August 2021

Error: 'popup' and 'returnto' cannot be set in the same function.

Template for creating direct editing links

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Form nameform

no description

Unknownrequired
Base page namebasename

no description

Unknownoptional
Namespace for pageNS

no description

Unknownsuggested
Button texttext

no description

Stringsuggested
Wrapper classclass

no description

Stringoptional
If to lead to new page or to open in popupno-popup

no description

Unknownoptional
time-basetime-base

no description

Booleanoptional
Which time magic word to usetime

no description

Unknownoptional