Parser Functions: Difference between revisions
| Line 54: | Line 54: | ||
=== #semorg-user-create === | === #semorg-user-create === | ||
Render a link to create a new user account if it doesn't exist already | |||
=== #semorg-formlink === | === #semorg-formlink === | ||
Revision as of 21:36, 3 May 2019
#semorg-person
called like this (preferably via template):
{{#semorg-person:
|ref={{FULLPAGENAME}}
|prefix={{{prefix|}}}
|firstname={{{firstname|}}}
|lastname={{{lastname|}}}
|name={{{firstname|}}} {{{lastname|}}}
|suffix={{{suffix|}}}
|workstreet={{{workstreet|}}}
|workpostalcode={{{workpostalcode|}}}
|worklocality={{{worklocality|}}}
|email={{{email|}}}
|workphone={{{workphone|}}}
|homepage={{{homepage|}}}
|note={{{note|}}}
|organization={{{organization|}}}
|gender={{{gender|}}}
}}
sets all the attributes and spits out a nicely formatted table with all the contact information and also a download link for a .vcard file
#semorg-person-ref
#semorg-form
#semorg-field
#semorg-fields
#semorg-field-rows
#semorg-set
#semorg-set-list
#semorg-table
#semorg-subobject
#semorg-network
#semorg-cooperation
#semorg-circles
#semorg-toggle
#semorg-list
This parser function is used to show lists of pages belonging to a certain category. For the details about this highly configurable parser function see Parser Function semorg-list
#semorg-user-create
Render a link to create a new user account if it doesn't exist already
#semorg-formlink
This parser function is an abbreviation to call {{#formlink}} with smart defaults.
| Markup | Result |
|---|---|
{{#semorg-formlink:meeting}}
|
The following system messages control the appearance of the list:
| Message | Function |
|---|---|
| semorg-formlink-<feature>-link-text | The link text to be displayed. |
| semorg-formlink-<feature>-link-type | Use this to set a wiki-wide default for all calls of {{#semorg-formlink:<feature>}}
|
| semorg-formlink-<feature>-target | |
| semorg-formlink-<feature>-tooltip | |
| semorg-formlink-<feature>-popup | |
| semorg-formlink-<feature>-new-window | |
| semorg-formlink-<feature>-query-string | |
| semorg-formlink-<feature>-returnto |
The following parameters are available:
| Parameter | Description |
|---|---|
| link text, link type, target, tooltip, popup, new window, query string, returnto | These are the default parameters for Page Form's {{#formlink}} function
|
#semorg-forminput
This parser function is an abbreviation to call {{#forminput}} with smart defaults.
| Markup | Result |
|---|---|
{{#semorg-forminput:group}}
|
The following system messages control the appearance of the list:
| Message | Function |
|---|---|
| semorg-forminput-<feature>-button-text | The button text to be displayed. |
| semorg-forminput-<feature>-size | Use this to set a wiki-wide default for all calls of {{#semorg-forminput:<feature>}}
|
| semorg-forminput-<feature>-default-value | |
| semorg-forminput-<feature>-query-string | |
| semorg-forminput-<feature>-autocomplete-on-category | |
| semorg-forminput-<feature>-autocomplete-on-namespace | |
| semorg-forminput-<feature>-placeholder | |
| semorg-forminput-<feature>-popup | |
| semorg-forminput-<feature>-returnto |
The following parameters are available:
| Parameter | Description |
|---|---|
| button text, size, default value, query string, autocomplete on category, autocomplete on namespace, placeholder, popup, returnto | These are the default parameters for Page Form's {{#forminput}} function
|
NB: The no autofocus parameter is set by default.