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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Form name | form | no description | Unknown | required |
| Base page name | basename | no description | Unknown | optional |
| Namespace for page | NS | no description | Unknown | suggested |
| Button text | text | no description | String | suggested |
| Wrapper class | class | no description | String | optional |
| If to lead to new page or to open in popup | no-popup | no description | Unknown | optional |
| time-base | time-base | no description | Boolean | optional |
| Which time magic word to use | time | no description | Unknown | optional |