How-To: Difference between revisions
From SemanticOrganization
Line 7: | Line 7: | ||
# Create the property <code>Property:Semorg-<feature>-<field></code>. You can use <code>Special:CreateProperty</code> (provided by the Page Forms extension). Chose the data type you want to use. | # Create the property <code>Property:Semorg-<feature>-<field></code>. You can use <code>Special:CreateProperty</code> (provided by the Page Forms extension). Chose the data type you want to use. | ||
# Create <code>MediaWiki:Semorg-field-<feature>-<field>-name</code>. | # Create <code>MediaWiki:Semorg-field-<feature>-<field>-name</code>. | ||
# If needed create <code>MediaWiki:Semorg-field-<feature>-<field>- | # If needed create <code>MediaWiki:Semorg-field-<feature>-<field>-parameters</code> (or <code>-input-type</code>, <code>-size</code>, <code>-help</code>, <code>-prefix</code>, or <code>-suffix</code>). | ||
# If the field should be shown in the form add <code><field></code> to <code>MediaWiki:Semorg-form-<feature>-rows</code>. | # If the field should be shown in the form add <code><field></code> to <code>MediaWiki:Semorg-form-<feature>-rows</code>. | ||
# Create a custom template. Copy <code>Template:Semorg-<feature></code> to a new page in the template namespace (e.g. <code>Template:Semorg-<feature>-custom</code>). | # Create a custom template. Copy <code>Template:Semorg-<feature></code> to a new page in the template namespace (e.g. <code>Template:Semorg-<feature>-custom</code>). |
Revision as of 10:15, 11 July 2019
How to change the name of a group?
Use the „move“ feature in the dropdown next to the edit button. If you create a redirect (which is the default), existing group meetings will still be associated to the group. However the association could get lost when editing a meeting so you should either edit them manually or use the Replace Text extension.
How to add a field?
- Create the property
Property:Semorg-<feature>-<field>
. You can useSpecial:CreateProperty
(provided by the Page Forms extension). Chose the data type you want to use. - Create
MediaWiki:Semorg-field-<feature>-<field>-name
. - If needed create
MediaWiki:Semorg-field-<feature>-<field>-parameters
(or-input-type
,-size
,-help
,-prefix
, or-suffix
). - If the field should be shown in the form add
<field>
toMediaWiki:Semorg-form-<feature>-rows
. - Create a custom template. Copy
Template:Semorg-<feature>
to a new page in the template namespace (e.g.Template:Semorg-<feature>-custom
). - Point
Mediawiki:Semorg-<feature>-template
to the newly created template. - If you already created calls to the old template, change them. You can use the Replace Text extension to quickly replace all appearances of
{{semorg-<feature>
with{{semorg-<feature>-custom
. - In order to save the field in the database add the line
|<field>={{{<field>|}}}
to the call of{{#semorg-set:}}
. - If the field's value should be shown in the detail table add the line
|<field>={{{<field>|}}}
to the call of{{#semorg-table:}}
. You can add any formatting you want here.
How to change the appearance of a list?
see also the documentation for the {{#semorg-list:}}
parser function
List have two parts:
- Headers
- Rows, whose contents are controlled by a template.
In most cases you need to change both of them.
default | globally (System Messages) | single use (Function Parameters) | example value | |
Headers | MediaWiki:Semorg-list-<feature>-headers
|
headers
|
group-name, group-description, group-host, group-members | |
---|---|---|---|---|
Row template | Template:Semorg-<feature>-row
|
MediaWiki:Semorg-list-<feature>-row-template
|
row template
|
<feature>-custom (translates to Template:semorg-<feature>-custom-row
|