Project:页面命名指南

  • 版本网址缩略名: Project:页面命名指南
  • 版本标题: 页面命名指南
  • 版本 id: 282520
  • 创建于:
  • 创建者: Mhoudg
  • 是否是当前版本?
  • 评论

修订内容

{{template.MDCProjectPagesTOC()}}

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.

General conventions

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"
For the time being these capitalization rules for page names apply only to new pages. There are a large number of pages in our wiki that do not conform to these rules, but please do not correct those at this time. We will sort out the logistics and fix older page names at some point in the future. Thanks. -- dria 09:20, 14 March 2006 (PST)

One-page articles

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.

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.

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.

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.

{{ wiki.languages( { "fr": "Project:fr/Guide_de_nommage_des_pages", "ja": "Project:ja/Page_Naming_Guide", "pl": "Project:pl/Poradnik_nazywania_stron" } ) }}

修订版来源

<p>
{{template.MDCProjectPagesTOC()}}
</p><p>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 <a href="Project:cn/Wiki_Markup_Reference#Breadcrumb_Navigation_Extension">breadcrumb extension</a> that we have added.
</p><p>Please also refer to the <a href="Project:cn/Writer's_guidelines">Writer's guidelines</a> when choosing a page name.  
</p>
<h3 name="General_conventions"> General conventions </h3>
<h4 name="Capitalization"> Capitalization </h4>
<p>Page names should use sentence style capitalization (only capitalize the first word and any proper nouns) rather than headline style capitalization:
</p>
<ul><li> <font color="green"><b>Correct</b></font>: "A new method for creating JavaScript rollovers"
</li><li> <font color="red"><b>Incorrect</b></font>: "A New Method for Creating JavaScript Rollovers"
</li></ul>
<div class="note">For the time being these capitalization rules for page names apply only to new pages.  There are a large number of pages in our wiki that do not conform to these rules, but please do not correct those at this time.  We will sort out the logistics and fix older page names at some point in the future.  Thanks.  -- <a href="User:Dria">dria</a> 09:20, 14 March 2006 (PST)</div>
<h3 name="One-page_articles"> One-page articles </h3>
<h4 name="Content_with_a_unique_title"> Content with a unique title </h4>
<p>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.
</p><p>For example, the page for a one-page article called "A new approach to JavaScript rollovers" would be, simply <a href="cn/A_new_approach_to_JavaScript_rollovers">A new approach to JavaScript rollovers</a>.  So long as your content title is unique, this is the easiest and preferred approach.
</p>
<h4 name="Content_with_a_non-unique_title"> Content with a non-unique title </h4>
<p>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.
</p><p>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: <a href="cn/CSS_optimization">CSS optimization</a>).  
</p><p>If there are two or more pages which have the same "natural" title, a <a href="Project:cn/Disambiguation">disambiguation page</a> should be created.
</p><p><b>It is a best-practice within this wiki to have unique article titles wherever possible.</b>
</p>
<h3 name="Multiple-page_content"> Multiple-page content </h3>
<p>If the content you are adding to the wiki requires multiple pages, use the following page naming method.  This method takes advantage of the <a href="Project:cn/Wiki_Markup_Reference#Breadcrumb_Navigation_Extension">breadcrumb extension</a>.
</p>
<ul><li> <a href="cn/Learning_JavaScript">Learning JavaScript</a> - Main table-of-contents page
</li><li> <a href="cn/Learning_JavaScript/Introduction">Learning JavaScript:Introduction</a>
</li><li> <a href="cn/Learning_JavaScript/A_layperson's_view">Learning JavaScript:A layperson's view</a>
</li><li> <a href="cn/Learning_JavaScript/More_advanced_scripting">Learning JavaScript:More advanced scripting</a>
</li><li> <a href="cn/Learning_JavaScript/Next_steps">Learning JavaScript:Next steps</a>
</li></ul>
<p>Note the addition of the initial "Learning JavaScript" page.  In order for the <a href="Project:cn/Wiki_Markup_Reference#Breadcrumb_Navigation_Extension">breadcrumb extension</a> to work, each part of the colon-delimited page names has to exist as a separate and navigable page.
</p><p><b>If you want to use the <a href="Project:cn/Wiki_Markup_Reference#Breadcrumb_Navigation_Extension">breadcrumb extension</a> for navigational hierarchy in your pages, you must use the colon-delimited page naming system described here.</b>
</p>{{ wiki.languages( { "fr": "Project:fr/Guide_de_nommage_des_pages", "ja": "Project:ja/Page_Naming_Guide", "pl": "Project:pl/Poradnik_nazywania_stron" } ) }}
恢复到这个版本