![]() ![]() | ![]() |
Define the per-project category and difficulty at the template level, instead of manually tagging the project pages. While doing this, prefix the tags with "category:" and "difficulty:" to make them easier to understand.
1: <TMPL_IF NAME="title"> 2: [[!meta title="<TMPL_VAR NAME=raw_title>"]] 3: 4: * Contact: <TMPL_VAR NAME="raw_contact"> 5: <TMPL_IF NAME="mentors">* Mentors: <TMPL_VAR NAME="raw_mentors"></TMPL_IF> 6: <TMPL_IF NAME="duration">* Duration estimate: <TMPL_VAR NAME="raw_duration"></TMPL_IF> 7: 8: <TMPL_VAR NAME="description"> 9: 10: [[!tag project]] 11: <TMPL_IF NAME="category"> 12: [[!tag category:<TMPL_VAR NAME="raw_category">]] 13: </TMPL_IF> 14: <TMPL_IF NAME="difficulty"> 15: [[!tag difficulty:<TMPL_VAR NAME="raw_difficulty">]] 16: </TMPL_IF> 17: <TMPL_ELSE> 18: # Project template description 19: 20: The *project* template provides a consistent set of variables and tags 21: to define a project proposal and/or specification. 22: 23: The following parameters are supported: 24: 25: - title (required) 26: - contact (required) 27: - mentors (optional) 28: - category (required): one of "kernel", "pkgsrc" or "userland". 29: - difficulty (required): one of "easy", "medium" or "hard". 30: - duration (optional) 31: - description (required) 32: 33: The following tags should be set to classify the project into different 34: indexes: 35: 36: - *funded*: Use this tag if the project has been preapproved for funding 37: by The NetBSD Foundation. 38: - *gsoc*: Use this tag to denote a project suitable for the Google 39: Summer of Code program. If you set this tag, the project must 40: provide a set of mentors and its duration has to be 3 months. 41: 42: </TMPL_IF>