Difference between revisions of "Basic Principles"

From SemanticOrganization
Jump to: navigation, search
Line 9: Line 9:
  
 
=== Customization ===
 
=== Customization ===
 +
 +
Use system messages to alter the appearance of forms and templates, e.g.
 +
 +
* change [[MediaWiki:Semorg-form-meeting-rows]] to change the fields to be displayed in the editing form for Meetings
 +
* change
  
 
==== Your custom form ====
 
==== Your custom form ====
  
 
* copy the contents of <code>Form:Semorg-meeting</code> to <code>Form:MyMeeting</code>
 
* copy the contents of <code>Form:Semorg-meeting</code> to <code>Form:MyMeeting</code>
*: change <code>MediaWiki:Semorg-meeting-form</code> to <code>MyMeeting</code>
+
*: change [[MediaWiki:Semorg-meeting-form]] to <code>MyMeeting</code>
  
 
==== Your custom template ====
 
==== Your custom template ====
  
 
* copy the contents of <code>Template:Semorg-meeting</code> to <code>Template:MyMeeting</code>
 
* copy the contents of <code>Template:Semorg-meeting</code> to <code>Template:MyMeeting</code>
*: change <code>MediaWiki:Semorg-meeting-template</code> to <code>MyMeeting</code>
+
*: change [[MediaWiki:Semorg-meeting-template]] to <code>MyMeeting</code>
  
 
==== Your custom category ====
 
==== Your custom category ====
  
 
* create <code>Category:MyMeeting</code>
 
* create <code>Category:MyMeeting</code>
*: change <code>MediaWiki:Semorg-meeting-category</code> to <code>MyMeeting</code>
+
*: change [[MediaWiki:Semorg-meeting-category]] to <code>MyMeeting</code>

Revision as of 08:16, 10 August 2018

Connecting Templates, Forms, Categories

  • the form defines the templates that should be created/edited with it:
    {{{for template|semorg-meeting}}} … {{{end template}}}
  • the template sets the corresponding category:
    [[Category:semorg-meeting]]
  • the category sets the form for the pages in the category:
    {{#default_form:semorg-meeting}}

Customization

Use system messages to alter the appearance of forms and templates, e.g.

Your custom form

Your custom template

Your custom category