Template:CreateLikeThis

Revision as of 16:41, 12 August 2022 by FennecBot (talk | contribs)

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="#createpage" class="fal fa-plus fa-only-child fox-btn btn-purple-b"> Create more pages in </btn>