Difference between revisions of "Best Practices for Forms and Templates"
Jump to navigation
Jump to search
(Created page with "Check that you did the following: *Put the category in the template itself *Make sure that there is a default form associated with the template <nowiki> {{#default_form:Mc...") |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | ==Links== | ||
+ | |||
+ | *https://www.semantic-mediawiki.org/wiki/Help:Properties_and_types | ||
+ | *https://www.mediawiki.org/wiki/Extension:Page_Forms/Defining_forms | ||
+ | |||
+ | ==Conventions== | ||
+ | |||
+ | *Use Sentence case property names | ||
+ | *Use verb phrases (like "Has capital") - see https://www.semantic-mediawiki.org/wiki/Help:Property_naming | ||
+ | |||
+ | You can assign the type of a property and restrict a property's value by creating a page for that property. | ||
+ | <nowiki> | ||
+ | This is a property of type [[Has type::Text]]. | ||
+ | |||
+ | The allowed values for this property are: | ||
+ | * [[Allows value::Idea]] | ||
+ | * [[Allows value::In development]] | ||
+ | * [[Allows value::Draft]] | ||
+ | </nowiki> | ||
+ | |||
+ | Also, the following create a link to a property page and show its information: | ||
+ | <nowiki> | ||
+ | [[Property:Has_paper_status]] | ||
+ | {{Property:Has_paper_status}} | ||
+ | </nowiki> | ||
+ | |||
+ | |||
+ | ==Notes== | ||
+ | |||
Check that you did the following: | Check that you did the following: | ||
*Put the category in the template itself | *Put the category in the template itself | ||
Line 9: | Line 38: | ||
Use simple assignment whenever possible: | Use simple assignment whenever possible: | ||
+ | <nowiki> | ||
| label6 = Start Date | | label6 = Start Date | ||
| data6 = [[Start date::{{{Start date|}}}]] | | data6 = [[Start date::{{{Start date|}}}]] | ||
+ | </nowiki> | ||
If you have to use an array ref, here's the syntax: | If you have to use an array ref, here's the syntax: | ||
+ | <nowiki> | ||
| label5 = Owner | | label5 = Owner | ||
| data5 = {{#arraymap:{{{Owner|}}}|,|x|[[Owner::x]]}} | | data5 = {{#arraymap:{{{Owner|}}}|,|x|[[Owner::x]]}} | ||
+ | </nowiki> | ||
+ | |||
+ | ==Temp Links to Project Pages== | ||
+ | |||
+ | The following pages need their templates fixing: | ||
+ | *[[Accelerator Industry Classification (Data)]] | ||
+ | *[[Accelerator Seed List (Data)]] | ||
+ | *[[Accelerators (Data)]] | ||
+ | *[[America Invents Act]] | ||
+ | *[[Business Dynamism in High Tech (Issue Brief)]] | ||
+ | *[[Carried Interest Debate (Wiki Page)]] | ||
+ | *[[Challenges Women Entrepreneurs Face (Wiki Page)]] | ||
+ | *[[Christy Warden (Twitter Crawler Application 1)]] | ||
+ | *[[Christy Warden (Twitter Crawler Application 2)]] | ||
+ | *[[Current Entrepreneurship and Innovation Policies (Wiki Page)]] | ||
+ | *[[E&I Governance Policy Report]] | ||
+ | *[[Enclosing Circle Algorithm]] | ||
+ | *[[Eventbrite Webcrawler (Tool)]] | ||
+ | *[[Google Scholar Crawler]] | ||
+ | *[[Governance Measures]] | ||
+ | *[[Government Regulations affecting Small Businesses (Issue Brief)]] | ||
+ | *[[Govtrack Webcrawler (Wiki Page)]] | ||
+ | *[[Guide to Patent Litigation]] | ||
+ | *[[Houston Accelerators (issue brief)]] | ||
+ | *[[Houston Accelerators and Incubators (Report)]] | ||
+ | *[[Industry Classifier]] | ||
+ | *[[LBO Lit Review]] | ||
+ | *[[Matching VentureOne (Data)]] | ||
+ | *[[Mechanical Turk (Tool)]] | ||
+ | *[[Moroccan Parliament Web Crawler]] | ||
+ | *[[Overconfidence Papers]] | ||
+ | *[[Patent Data (Wiki Page)]] | ||
+ | *[[Patent Variables (Wiki Page)]] | ||
+ | *[[SBA Investigation (Report)]] | ||
+ | *[[Shelby Bice (Redesigning Patent Database)]] | ||
+ | *[[Start Up Address Finder Algorithm (Tool)]] | ||
+ | *[[Start-Up Guide (Issue Brief)]] | ||
+ | *[[Start-Ups of Houston (Map)]] | ||
+ | *[[Stock and Flows of Publicly Traded Companies (Report)]] | ||
+ | *[[The Matcher (Tool)]] | ||
+ | *[[Tshirt!]] | ||
+ | *[[Twitter Webcrawler (Tool)]] | ||
+ | *[[Twitterverse Exploration]] | ||
+ | *[[University Patents]] | ||
+ | *[[URL Finder (Tool)]] | ||
+ | *[[Venture Capital (Data)]] | ||
+ | *[[Women in Entrepreneurship (Issue Brief)]] | ||
+ | [[Category:McNair Admin]] |
Latest revision as of 16:58, 21 March 2017
Links
- https://www.semantic-mediawiki.org/wiki/Help:Properties_and_types
- https://www.mediawiki.org/wiki/Extension:Page_Forms/Defining_forms
Conventions
- Use Sentence case property names
- Use verb phrases (like "Has capital") - see https://www.semantic-mediawiki.org/wiki/Help:Property_naming
You can assign the type of a property and restrict a property's value by creating a page for that property.
This is a property of type [[Has type::Text]]. The allowed values for this property are: * [[Allows value::Idea]] * [[Allows value::In development]] * [[Allows value::Draft]]
Also, the following create a link to a property page and show its information:
[[Property:Has_paper_status]] {{Property:Has_paper_status}}
Notes
Check that you did the following:
- Put the category in the template itself
- Make sure that there is a default form associated with the template
{{#default_form:McNair Projects}} [[category:McNair Projects]]
Use simple assignment whenever possible:
| label6 = Start Date | data6 = [[Start date::{{{Start date|}}}]]
If you have to use an array ref, here's the syntax:
| label5 = Owner | data5 = {{#arraymap:{{{Owner|}}}|,|x|[[Owner::x]]}}
Temp Links to Project Pages
The following pages need their templates fixing:
- Accelerator Industry Classification (Data)
- Accelerator Seed List (Data)
- Accelerators (Data)
- America Invents Act
- Business Dynamism in High Tech (Issue Brief)
- Carried Interest Debate (Wiki Page)
- Challenges Women Entrepreneurs Face (Wiki Page)
- Christy Warden (Twitter Crawler Application 1)
- Christy Warden (Twitter Crawler Application 2)
- Current Entrepreneurship and Innovation Policies (Wiki Page)
- E&I Governance Policy Report
- Enclosing Circle Algorithm
- Eventbrite Webcrawler (Tool)
- Google Scholar Crawler
- Governance Measures
- Government Regulations affecting Small Businesses (Issue Brief)
- Govtrack Webcrawler (Wiki Page)
- Guide to Patent Litigation
- Houston Accelerators (issue brief)
- Houston Accelerators and Incubators (Report)
- Industry Classifier
- LBO Lit Review
- Matching VentureOne (Data)
- Mechanical Turk (Tool)
- Moroccan Parliament Web Crawler
- Overconfidence Papers
- Patent Data (Wiki Page)
- Patent Variables (Wiki Page)
- SBA Investigation (Report)
- Shelby Bice (Redesigning Patent Database)
- Start Up Address Finder Algorithm (Tool)
- Start-Up Guide (Issue Brief)
- Start-Ups of Houston (Map)
- Stock and Flows of Publicly Traded Companies (Report)
- The Matcher (Tool)
- Tshirt!
- Twitter Webcrawler (Tool)
- Twitterverse Exploration
- University Patents
- URL Finder (Tool)
- Venture Capital (Data)
- Women in Entrepreneurship (Issue Brief)