Content deleted Content added
No edit summary |
No edit summary |
||
| Line 55: | Line 55: | ||
</div> |
</div> |
||
</div></includeonly> |
</div></includeonly> |
||
<noinclude> |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"form": {}, |
|||
"default value": {}, |
|||
"template": {}, |
|||
"main-field": {}, |
|||
"main-field-value": {}, |
|||
"secondary-field": {}, |
|||
"secondary-template": {}, |
|||
"secondary-field-value": {}, |
|||
"third-field": {}, |
|||
"third-template": {}, |
|||
"third-field-value": {} |
|||
} |
|||
} |
|||
</templatedata> |
|||
</noinclude> |
|||
Revision as of 18:54, 12 August 2022
Template for quickly creating more pages like the dynamic portal you're in:
Usage
The template needs the portal inforamtion to be passed in order to get the relevant attributes:
{{CreateLikeThis
|form=Form name (required)
|template=if null gets form name value
|namespace=defaults for other NS that that of the existing page
|main-field=(required)
|main-field-value=(required)
|secondary-template=if null gets main template
|secondary-field=optional
|secondary-field-value=optional
|third-template=if null gets main template
|third-field=optional
|third-field-value=optional
}}Example
{{CreateLikeThis
|form=Contact
|namespace=User
|main-field=field_company
|main-field-value=openfox
|secondary-field=field_avatar
|secondary-field-value=JustLogo.svg
}}Result
<btn data-toggle="modal" data-target="#createpage1" class="fal fa-plus fa-only-child fox-btn btn-purple-b"> Create more pages in CreateLikeThis</btn>
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| form | form | no description | Unknown | optional |
| default value | default value | no description | Unknown | optional |
| template | template | no description | Unknown | optional |
| main-field | main-field | no description | Unknown | optional |
| main-field-value | main-field-value | no description | Unknown | optional |
| secondary-field | secondary-field | no description | Unknown | optional |
| secondary-template | secondary-template | no description | Unknown | optional |
| secondary-field-value | secondary-field-value | no description | Unknown | optional |
| third-field | third-field | no description | Unknown | optional |
| third-template | third-template | no description | Unknown | optional |
| third-field-value | third-field-value | no description | Unknown | optional |