Changes

Jump to navigation Jump to search
424 bytes added ,  13:19, 11 March 2019
*Note: inclusion in [[:Category:McNair Affiliates]] is automatic with template use
McNair Affiliates:
*[[Form:Legislation]]
*[[Template:Legislation]]
*Note: inclusion in [[:Category:Legislation]] is automatic with template use
===Deprecated===
==Make a new class==
Classes consist of a form, template and category. Come up with a spec for your class. A spec should include the name of the class you are creating, a format for the title of pages that will be put in your class, and field/property titles. Get your spec approved by your peers, Ed, or Anne, as is appropriate.
Then go to [[Special:CreateClass]] and implement your spec as follows:
*Create field names and their types
**Use verb phrases for property names whenever possible. See https://www.semantic-mediawiki.org/wiki/Help:Property_naming. Don't use punctuation.
**Fields should be pages only when there are pages associated with the values (i.e., the text in the field will be a page title)
**Generally fields should be text unless some built-in property type (like email, url, etc,) directly applies and then we should use the appropriate field name (like email, url, etc.) when applicable. A list of built in property types is here: https://www.semantic-mediawiki.org/wiki/Help:Property_declaration
**Note that property types can be changed later. Each property has its own page. See [[Special:Properties]] for a list. You can go a property's page and redine redefine it by adding a tag like <nowiki>[[Has type::number]]</nowiki> to that page.**If a field is you want to have a list of valuesin a field, choose the property type appropriately (usually text) and put the value names in a comma separated list in the Allowed Values box. Name values with a single short word whenever possible and use sentence case. When people use this template, this will allow them to only pick values that you have preselected.
===Check your class===
<nowiki>
| belowstyle = background:#ffffff;
| below = © McNair Centeredegan.com, 2016
}}
</nowiki>

Navigation menu