How-To: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
No edit summary
Line 5: Line 5:
=== How to add a field? ===
=== How to add a field? ===


# 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>.
# If needed create <code>MediaWiki:Semorg-field-<feature>-<field>-properties</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>).
# Point <code>Mediawiki:Semorg-<feature>-template</code> to the newly created template.
# Point <code>Mediawiki:Semorg-<feature>-template</code> to the newly created template.
# If you already created calls to the old template, change them. You can use the [https://www.mediawiki.org/wiki/Extension:Replace_Text Replace Text extension] to quickly replace all appearances of <code>{{semorg-<feature></code> with <code>{{semorg-<feature>-custom</code>.
# If you already created calls to the old template, change them. You can use the [https://www.mediawiki.org/wiki/Extension:Replace_Text Replace Text extension] to quickly replace all appearances of <code>{{semorg-<feature></code> with <code>{{semorg-<feature>-custom</code>.
# 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.
# In order to save the field in the database add the line <code>|<field>=<nowiki>{{{<field>|}}}</nowiki></code> to the call of <code><nowiki>{{#semorg-set:}}</nowiki></code>.
# Create <code>MediaWiki:Semorg-field-<feature>-<field>-name</code>.
# If the field's value should be shown in the detail table add the line <code>|<field>=<nowiki>{{{<field>|}}}</nowiki></code> to the call of <code><nowiki>{{#semorg-table:}}</nowiki></code>. You can add any formatting you want here.
# If needed create <code>MediaWiki:Semorg-field-<feature>-<field>-properties</code>.

Revision as of 15:23, 27 May 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?

  1. Create the property Property:Semorg-<feature>-<field>. You can use Special:CreateProperty (provided by the Page Forms extension). Chose the data type you want to use.
  2. Create MediaWiki:Semorg-field-<feature>-<field>-name.
  3. If needed create MediaWiki:Semorg-field-<feature>-<field>-properties.
  4. If the field should be shown in the form add <field> to MediaWiki:Semorg-form-<feature>-rows.
  5. Create a custom template. Copy Template:Semorg-<feature> to a new page in the template namespace (e.g. Template:Semorg-<feature>-custom).
  6. Point Mediawiki:Semorg-<feature>-template to the newly created template.
  7. 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.
  8. In order to save the field in the database add the line |<field>={{{<field>|}}} to the call of {{#semorg-set:}}.
  9. 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.