MDC:Page Naming Guide
From MDC
- How to help: contents
- Lists
- Documentation wishlist
- Editing/review to do list
- Migration list
- Guides
- Getting started
- Writer's guide
- Writing interface reference documentation
- Page naming guide
- Disambiguation pages
- Localizing MDC
- Copyrights and licensing
- References
- Wiki markup reference
- Custom CSS classes
- Custom templates
- MediaWiki extensions
- External redirects
- Needs redirect
Page naming for the MDC Wiki is relatively straightforward, but it's important you get it correct in order to take full advantage of the custom breadcrumb extension that we have added.
Please also refer to the Writer's guidelines when choosing a page name.
Contents |
[edit] General conventions
[edit] Capitalization
Page names should use sentence style capitalization (only capitalize the first word and any proper nouns) rather than headline style capitalization:
- Correct: "A new method for creating JavaScript rollovers"
- Incorrect: "A New Method for Creating JavaScript Rollovers"
[edit] One-page articles
[edit] Content with a unique title
If you are adding an article or other content that only requires a single page in the wiki, simply use the name of that article as the page name.
For example, the page for a one-page article called "A new approach to JavaScript rollovers" would be, simply A new approach to JavaScript rollovers. So long as your content title is unique, this is the easiest and preferred approach.
[edit] Content with a non-unique title
Wherever possible, you should try to create content with unique titles, in order to simplify the page naming as much as possible. If this is impossible, prefix the title with the topic, followed by a colon and no spaces.
For example, if I needed to add a page called "Optimization", simply calling the page "Optimization" would create a possible conflict as Optimization can apply to a wide variety of topics within the wiki. If my Optimization article was specifically about CSS, I would expand my title so it is unique (ie: CSS optimization).
If there are two or more pages which have the same "natural" title, a disambiguation page should be created.
It is a best-practice within this wiki to have unique article titles wherever possible.
[edit] Multiple-page content
If the content you are adding to the wiki requires multiple pages, use the following page naming method. This method takes advantage of the breadcrumb extension.
- Learning JavaScript - Main table-of-contents page
- Learning JavaScript:Introduction
- Learning JavaScript:A layperson's view
- Learning JavaScript:More advanced scripting
- Learning JavaScript:Next steps
Note the addition of the initial "Learning JavaScript" page. In order for the breadcrumb extension to work, each part of the colon-delimited page names has to exist as a separate and navigable page.
If you want to use the breadcrumb extension for navigational hierarchy in your pages, you must use the colon-delimited page naming system described here.