Changes

Jump to navigation Jump to search
751 bytes added ,  13:19, 11 March 2019
*[[Template:BlogPost]]
*[[Form:BlogPost]]
*Note: inclusion in [[:Category:Blog_PostsBlog_Post]] is automatic with template use Academic Papers:*[[Template:AcademicPaper]]*[[Form:AcademicPaper]]*Note: inclusion in [[:Category:Academic_Paper]] is automatic with template use
McNair Staff:
*Note: inclusion in [[:Category:McNair_Staff]] and [[:Category:McNair_Faculty]] are automatic with template use
McNair Affiliates:
*[[Form:McNair Affiliates]]
*[[Template:McNair Affiliates]]
*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===
*[[Form:McNair Topic Areas]]
*[[Template:McNair Topic Areas]]
 
===See also===
 
Here are some [[Best Practices for Forms and Templates]]; they are clearly a work in progress, so please add to them.
==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:
*Name the Form '''the same as the template'''. You should probably use spaces in the category name (i.e., My Name, not MyName) for readability though.
*Create field names and their types
**Name fields something that will look nice on the template. Use single short words in sentence case whenever possible.
**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