Parser Functions: Difference between revisions
From SemanticOrganization
| Line 67: | Line 67: | ||
|semorg-list-<feature>-headers | |semorg-list-<feature>-headers | ||
|Should contain a list of message keys that contain the texts for the table headers. For the example above the content of <code>semorg-list-group-headers</code> is “<code>group-name, group-description, group-host, group-members</code>“. The elements of the list should have the general form of <code><feature>-<field></code>. The list is used to reference another set of messages following the naming convention <code>semorg-field-<feature>-<field>-name</code>. So <code>semorg-field-group-name-name</code> is used to populate the heading of the first column in the example above. | |Should contain a list of message keys that contain the texts for the table headers. For the example above the content of <code>semorg-list-group-headers</code> is “<code>group-name, group-description, group-host, group-members</code>“. The elements of the list should have the general form of <code><feature>-<field></code>. The list is used to reference another set of messages following the naming convention <code>semorg-field-<feature>-<field>-name</code>. So <code>semorg-field-group-name-name</code> is used to populate the heading of the first column in the example above. | ||
|} | |||
The following parameters are available: | |||
{| class="table table-bordered table-condensed" | |||
! Parameter !! Description | |||
|– | |||
|category | |||
|The default category is the content of <code>semorg-<feature>-category</code>. If you want to use a different category, you can overwrite the default using this parameter. | |||
|- | |||
|row template | |||
|The parser function constructs a query that calls a template for every row. The default value is the same as the name of the feature. The actual name of the template called should be <code>semorg-<row template>-row</code>. You'll have to provide it on your own if you want to replace the default. | |||
|} | |} | ||
Revision as of 15:31, 11 December 2018
#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.
| Markup | Result | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{#semorg-list:group}}
|
|
The following system messages control the appearance of the list:
| Message | Function |
|---|---|
| semorg-list-<feature>-headers | Should contain a list of message keys that contain the texts for the table headers. For the example above the content of semorg-list-group-headers is “group-name, group-description, group-host, group-members“. The elements of the list should have the general form of <feature>-<field>. The list is used to reference another set of messages following the naming convention semorg-field-<feature>-<field>-name. So semorg-field-group-name-name is used to populate the heading of the first column in the example above.
|
The following parameters are available:
| Parameter | Description | – | category | The default category is the content of semorg-<feature>-category. If you want to use a different category, you can overwrite the default using this parameter.
|
|---|---|---|---|---|
| row template | The parser function constructs a query that calls a template for every row. The default value is the same as the name of the feature. The actual name of the template called should be semorg-<row template>-row. You'll have to provide it on your own if you want to replace the default.
|