Basic Principles: Difference between revisions
From SemanticOrganization
No edit summary |
|||
Line 1: | Line 1: | ||
=== Connecting Templates, Forms, Categories === | === Connecting Templates, Forms, Categories === | ||
* the form defines the templates that should be created/edited with it: | |||
*: <code><nowiki>{{{for template|semorg-meeting}}} … {{{end template}}}</nowiki></code> | |||
* the template sets the corresponding category: | * the template sets the corresponding category: | ||
*: <code><nowiki>[[Category:semorg-meeting]]</nowiki></code> | *: <code><nowiki>[[Category:semorg-meeting]]</nowiki></code> | ||
* the category sets the form for the pages in the category: | * the category sets the form for the pages in the category: | ||
*: <code><nowiki>{{#default_form:semorg-meeting}}</nowiki></code> | *: <code><nowiki>{{#default_form:semorg-meeting}}</nowiki></code> | ||
=== Customization === | === Customization === | ||
* copy the contents of <code>Form:Semorg-meeting</code> to <code>Form:MyMeeting</code> | |||
*: change <code><nowiki>{{{for template|semorg-meeting}}}</nowiki></code> to <code><nowiki>{{{for template|MyMeeting}}}</nowiki></code> | |||
* 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><nowiki>[[Category:Semorg-meeting]]</nowiki></code> to <code><nowiki>[[Category:MyMeeting]]</nowiki></code> | *: change <code><nowiki>[[Category:Semorg-meeting]]</nowiki></code> to <code><nowiki>[[Category:MyMeeting]]</nowiki></code> | ||
* create <code>Category:MyMeeting</code> | * create <code>Category:MyMeeting</code> | ||
*: set its content to <code><nowiki>{{#default_form:MyMeeting}}</nowiki></code> | *: set its content to <code><nowiki>{{#default_form:MyMeeting}}</nowiki></code> | ||
Revision as of 10:30, 1 May 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
- copy the contents of
Form:Semorg-meeting
toForm:MyMeeting
- change
{{{for template|semorg-meeting}}}
to{{{for template|MyMeeting}}}
- change
- copy the contents of
Template:Semorg-meeting
toTemplate:MyMeeting
- change
[[Category:Semorg-meeting]]
to[[Category:MyMeeting]]
- change
- create
Category:MyMeeting
- set its content to
{{#default_form:MyMeeting}}
- set its content to