Using header templates: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
No edit summary
Line 13: Line 13:
# Every category has a header
# Every category has a header
#* The Wiki category has a header named '''HdrWiki'''
#* The Wiki category has a header named '''HdrWiki'''
#* The header template lists the supercategories '''Main -> Major category -> Minor category -> This category'''
#* The header template lists the supercategories '''Main => Major category => Minor category => This category'''
#* Followed by the subcategories, if any, in parentheses: '''(Subcategory 1 | Subcategory 2)'''
#* Followed by the subcategories, if any, in parentheses: '''(Subcategory 1, Subcategory 2)'''
#* Every category has a link to its header template
#* Every category has a link to its header template
= Examples =
= Examples =
* Markup for this page's header
* Markup for this page's header

Revision as of 01:54, 28 July 2009

Main => Other => Wiki


Overview

  • The wiki category system allows authors to group related pages together.
  • The header templates build on the category system to provide a means for the reader to navigate to pages of interest.
  • The category system is an ongoing process; as content is added, the category system will be refactored.
  • The category system can be refactored by making changes only to the category pages and category header templates. The navigation headers for individual pages will automatically change along with the categories.

Design principles

  1. Every page has a "primary" category
    • This page has the primary category Wiki
  2. Every page has a navigation header based on its primary category
    • This page has the header HdrWiki
    • Pages may have multiple categories, but only one header
  3. Every category has a header
    • The Wiki category has a header named HdrWiki
    • The header template lists the supercategories Main => Major category => Minor category => This category
    • Followed by the subcategories, if any, in parentheses: (Subcategory 1, Subcategory 2)
    • Every category has a link to its header template

Examples

  • Markup for this page's header
{{HdrWiki}}
'''[[Main Page|Main]] -> [[:Category:Other|Other]] ([[:Category:Wiki|Wiki]])'''
----

See also: