From e9bb21320278d88f6795525b4bb6c91b90711fcc Mon Sep 17 00:00:00 2001 From: tristantheb Date: Wed, 21 Apr 2021 16:21:07 +0200 Subject: KS: Removal of the least used macros --- .../zh-cn/mdn/guidelines/does_this_belong_on_mdn/index.html | 6 +++--- files/zh-cn/mdn/guidelines/writing_style_guide/index.html | 2 +- files/zh-cn/mdn/structures/macros/index.html | 2 -- files/zh-cn/web/api/document/width/index.html | 1 - files/zh-cn/web/api/filelist/index.html | 2 -- files/zh-cn/web/api/htmlelement/dir/index.html | 4 +--- files/zh-cn/web/api/htmlmediaelement/index.html | 2 +- files/zh-cn/web/api/keyboardevent/key/key_values/index.html | 12 ++++++------ .../api/navigatoronline/online_and_offline_events/index.html | 2 -- files/zh-cn/web/api/window/open/index.html | 2 -- files/zh-cn/web/css/background-size/index.html | 4 +--- .../guide/html/using_html_sections_and_outlines/index.html | 2 -- files/zh-cn/web/http/headers/user-agent/firefox/index.html | 2 -- files/zh-cn/web/xslt/index.html | 2 +- 14 files changed, 14 insertions(+), 31 deletions(-) (limited to 'files/zh-cn') diff --git a/files/zh-cn/mdn/guidelines/does_this_belong_on_mdn/index.html b/files/zh-cn/mdn/guidelines/does_this_belong_on_mdn/index.html index 5561aa35f3..c502021ac8 100644 --- a/files/zh-cn/mdn/guidelines/does_this_belong_on_mdn/index.html +++ b/files/zh-cn/mdn/guidelines/does_this_belong_on_mdn/index.html @@ -107,7 +107,7 @@ original_slug: MDN/Guidelines/Rules_Of_MDN_Documenting
  • Design documents
  • Project proposals
  • Specifications or standards
  • -
  • Promotional material, advertising, or personal information{{ref("*")}}
  • +
  • Promotional material, advertising, or personal information
  • Advantages to documenting on MDN

    @@ -123,7 +123,7 @@ original_slug: MDN/Guidelines/Rules_Of_MDN_Documenting
  • We have a core community of volunteers who contribute substantial amounts of content and can help you.
  • The MDN team can work with you to ensure that your documentation project is adequately staffed.
  • The broader MDN community also contributes enormously; from typo fixes to editorial reviews of your content, they can save your bacon.
  • -
  • The {{IRCLink("mdn")}} channel offers a resource where you can talk to our writing community and get their advice, or recruit help with the production of or maintenance of your content.
  • +
  • The Matrix channel offers a resource where you can talk to our writing community and get their advice, or recruit help with the production of or maintenance of your content.
  • Because we have contributors all over the world, there's always someone around, watching for problems and fixing them.
  • Our community of volunteers includes translators for many languages, who can help localize your documentation.
  • @@ -191,4 +191,4 @@ original_slug: MDN/Guidelines/Rules_Of_MDN_Documenting

    Still, this can be a viable option (possibly even a good option) for some types of projects, especially small ones or those that aren't expected to get much interest.

    -

    {{endnote("*")}} It's OK to put a limited amount of personal information on your MDN profile page. User profiles should reflect a human being, not a business or organization. A moderate degree of self-promotion is OK, but link-spamming is not. Please do not use your profile to upload personal photos or other irrelevant files.

    +

    It's OK to put a limited amount of personal information on your MDN profile page. User profiles should reflect a human being, not a business or organization. A moderate degree of self-promotion is OK, but link-spamming is not. Please do not use your profile to upload personal photos or other irrelevant files.

    diff --git a/files/zh-cn/mdn/guidelines/writing_style_guide/index.html b/files/zh-cn/mdn/guidelines/writing_style_guide/index.html index 8ff75a97ef..484017e2b4 100644 --- a/files/zh-cn/mdn/guidelines/writing_style_guide/index.html +++ b/files/zh-cn/mdn/guidelines/writing_style_guide/index.html @@ -204,7 +204,7 @@ original_slug: MDN/Guidelines/Style_guide

    类似地,“Warning”样式用来创建一个警告框。

    -

    除非有特殊需要,否则请不要用 HTML 的 style 属性来手动给内容添加样式。如果你没有找到你需要的预定义样式,可以放置一个 {{IRCLink("mdn")}} 并寻求帮助。

    +

    除非有特殊需要,否则请不要用 HTML 的 style 属性来手动给内容添加样式。如果你没有找到你需要的预定义样式,可以放置一个 Matrix 并寻求帮助。

    示例代码的格式和样式

    diff --git a/files/zh-cn/mdn/structures/macros/index.html b/files/zh-cn/mdn/structures/macros/index.html index 4ddb72e576..b41123ab3f 100644 --- a/files/zh-cn/mdn/structures/macros/index.html +++ b/files/zh-cn/mdn/structures/macros/index.html @@ -44,5 +44,3 @@ translation_of: MDN/Structures/Macros

    宏可以像插入更大的文本块或从MDN的另一部分交换内容一样简单,也可以通过搜索站点的各个部分,设置输出样式和添加链接来构建整个内容索引。

    您可以在Commonly-used macros页面上阅读我们最常用的宏;另外,这里有complete list of all macros。大多数宏都有内置的文档,作为顶部的注释。

    - -

    {{EditorGuideQuicklinks}}

    diff --git a/files/zh-cn/web/api/document/width/index.html b/files/zh-cn/web/api/document/width/index.html index 47a2d1e13a..fa7c844ad7 100644 --- a/files/zh-cn/web/api/document/width/index.html +++ b/files/zh-cn/web/api/document/width/index.html @@ -6,7 +6,6 @@ translation_of: Web/API/Document/width
    {{ApiRef}} {{Obsolete_header}}
    -

    {{gecko_callout_heading("6.0")}}

    从Gecko 6.0开始,不再支持document.width,请使用document.body.clientWidth来代替.查看{{domxref("element.clientWidth")}}.

    概述

    diff --git a/files/zh-cn/web/api/filelist/index.html b/files/zh-cn/web/api/filelist/index.html index 7912555fcf..e3cd99d860 100644 --- a/files/zh-cn/web/api/filelist/index.html +++ b/files/zh-cn/web/api/filelist/index.html @@ -13,8 +13,6 @@ translation_of: Web/API/FileList

    一个 FileList 对象通常来自于一个 HTML {{HTMLElement("input")}} 元素的 files 属性,你可以通过这个对象访问到用户所选择的文件。该类型的对象还有可能来自用户的拖放操作,查看 DataTransfer 对象了解详情。

    -
    {{ gecko_callout_heading("1.9.2") }}
    -

    在 Gecko 1.9.2 之前,通过 input 元素,每次只能选择一个文件,这意味着该 input 元素的 files 属性上的 FileList 对象无论如何都只能包含一个文件。从Gecko 1.9.2 开始,如果一个 input 元素拥有 multiple 属性,则可以用它来选择多个文件。

    diff --git a/files/zh-cn/web/api/htmlelement/dir/index.html b/files/zh-cn/web/api/htmlelement/dir/index.html index 5af4c1d9f6..bc5c08f929 100644 --- a/files/zh-cn/web/api/htmlelement/dir/index.html +++ b/files/zh-cn/web/api/htmlelement/dir/index.html @@ -38,9 +38,7 @@ parg.dir = "rtl";

    当表格的dir属性设置为"rtl"时, 那么该表格的所有列将从右到左排列.

    -

    {{ gecko_callout_heading("7.0") }}

    - -

    在Gecko 7.0 {{ geckoRelease("7.0") }}之前, 该属性的返回值不一定都是小写的.从 Gecko 7.0开始, 该属性的返回值全部为小写字母, 这也是规范中所规定的.

    +

    在Gecko 7.0 之前, 该属性的返回值不一定都是小写的.从 Gecko 7.0开始, 该属性的返回值全部为小写字母, 这也是规范中所规定的.

    规范

    diff --git a/files/zh-cn/web/api/htmlmediaelement/index.html b/files/zh-cn/web/api/htmlmediaelement/index.html index b9c29bf057..0fc7ee5662 100644 --- a/files/zh-cn/web/api/htmlmediaelement/index.html +++ b/files/zh-cn/web/api/htmlmediaelement/index.html @@ -183,7 +183,7 @@ translation_of: Web/API/HTMLMediaElement 正在加载. - NETWORK_NO_SOURCE{{ ref("1") }} + NETWORK_NO_SOURCE 3 diff --git a/files/zh-cn/web/api/keyboardevent/key/key_values/index.html b/files/zh-cn/web/api/keyboardevent/key/key_values/index.html index 159f96c074..5923333c5d 100644 --- a/files/zh-cn/web/api/keyboardevent/key/key_values/index.html +++ b/files/zh-cn/web/api/keyboardevent/key/key_values/index.html @@ -3158,7 +3158,7 @@ translation_of: Web/API/KeyboardEvent/key/Key_Values "LaunchCalculator" [5] - The Calculator key, often labeled with an icon such as {{FontAwesomeIcon("icon-calculator")}}. This is often used as a generic application launcher key (APPCOMMAND_LAUNCH_APP2). + The Calculator key, often labeled with an icon such as calculator icon. This is often used as a generic application launcher key (APPCOMMAND_LAUNCH_APP2). APPCOMMAND_LAUNCH_APP2 GDK_KEY_Calculator (0x1008FF1D)
    @@ -3167,7 +3167,7 @@ translation_of: Web/API/KeyboardEvent/key/Key_Values "LaunchCalendar" [5] - The Calendar key, often labeled with an icon like {{FontAwesomeIcon("icon-calendar")}}. + The Calendar key, often labeled with an icon like a calendar icon. GDK_KEY_Calendar (0x1008FF20)
    @@ -3184,7 +3184,7 @@ translation_of: Web/API/KeyboardEvent/key/Key_Values "LaunchMail" - The Mail key. This is often displayed as {{FontAwesomeIcon("icon-envelope-o")}}. + The Mail key. This is often displayed as envelope icon. VK_LAUNCH_MAIL (0xB4)
    APPCOMMAND_LAUNCH_MAIL @@ -3206,7 +3206,7 @@ translation_of: Web/API/KeyboardEvent/key/Key_Values "LaunchMusicPlayer" [5] - The Music Player key, often labeled with an icon such as {{FontAwesomeIcon("icon-music")}}. + The Music Player key, often labeled with an icon such as music icon. GDK_KEY_Music (0x1008FF92)
    @@ -3242,7 +3242,7 @@ translation_of: Web/API/KeyboardEvent/key/Key_Values "LaunchSpreadsheet" [4] - The Spreadsheet key. This key may be labeled with an icon such as {{FontAwesomeIcon("icon-table")}} or that of a specific spreadsheet application. + The Spreadsheet key. This key may be labeled with an icon such as table icon or that of a specific spreadsheet application. GDK_KEY_Excel (0x1008FF5C)
    @@ -3251,7 +3251,7 @@ translation_of: Web/API/KeyboardEvent/key/Key_Values "LaunchWebBrowser" [4] - The Web Browser key. This key is frequently labeled with an icon such as {{FontAwesomeIcon("icon-globe")}} or the icon of a specific browser, depending on the device manufacturer. + The Web Browser key. This key is frequently labeled with an icon such as globe icon or the icon of a specific browser, depending on the device manufacturer. GDK_KEY_WWW (0x1008FF2E)
    diff --git a/files/zh-cn/web/api/navigatoronline/online_and_offline_events/index.html b/files/zh-cn/web/api/navigatoronline/online_and_offline_events/index.html index bdf456094b..f4f28ed973 100644 --- a/files/zh-cn/web/api/navigatoronline/online_and_offline_events/index.html +++ b/files/zh-cn/web/api/navigatoronline/online_and_offline_events/index.html @@ -117,5 +117,3 @@ translation_of: Web/API/NavigatorOnLine/Online_and_offline_events
  • An explanation of Online/Offline events
  • offline web applications at hacks.mozilla.org - showcases an offline app demo and explains how it works.
  • - -
    {{ HTML5ArticleTOC() }}
    diff --git a/files/zh-cn/web/api/window/open/index.html b/files/zh-cn/web/api/window/open/index.html index 3080abb470..d961a59998 100644 --- a/files/zh-cn/web/api/window/open/index.html +++ b/files/zh-cn/web/api/window/open/index.html @@ -108,8 +108,6 @@ const openRequestedPopup = () => {

    -
    {{gecko_minversion_note("1.9.2", "Starting in Gecko 1.9.2 (Firefox 3.6), overriding the position of a window using window features will not change the persisted values saved by the session store feature. That means the next time the window is opened, it will still open in the saved location.")}}
    -

    Note on position and dimension error correction

    {{bug(176320)}}
    diff --git a/files/zh-cn/web/css/background-size/index.html b/files/zh-cn/web/css/background-size/index.html index 4fd689d375..debb3e69d8 100644 --- a/files/zh-cn/web/css/background-size/index.html +++ b/files/zh-cn/web/css/background-size/index.html @@ -156,9 +156,7 @@ background-size: 50% 25%;

    位图一定有固有尺寸与固有比例,矢量图可能两者都有,也可能只有一个。渐变视为只有固有尺寸或者只有固有比例的图片。

    -

    {{gecko_callout_heading("8.0")}}

    - -

    This behavior changed in Gecko 8.0 {{geckoRelease("8.0")}}. Before this, gradients were treated as images with no intrinsic dimensions, with an intrinsic proportion identical to that of the background positioning area.

    +

    This behavior changed in Gecko 8.0. Before this, gradients were treated as images with no intrinsic dimensions, with an intrinsic proportion identical to that of the background positioning area.

    由 {{cssxref("-moz-element")}} 生成的背景图片,(which actually match an element) are currently treated as images with the dimensions of the element, or of the background positioning area if the element is SVG, with the corresponding intrinsic proportion.

    diff --git a/files/zh-cn/web/guide/html/using_html_sections_and_outlines/index.html b/files/zh-cn/web/guide/html/using_html_sections_and_outlines/index.html index 334412d09f..907724aeda 100644 --- a/files/zh-cn/web/guide/html/using_html_sections_and_outlines/index.html +++ b/files/zh-cn/web/guide/html/using_html_sections_and_outlines/index.html @@ -374,5 +374,3 @@ original_slug: Web/Guide/HTML/Sections_and_Outlines_of_an_HTML5_document

    总结

    HTML5中新的节段和标题标签带来了以标准的方法来描述web文档的结构和大纲。其为人们使用HTML5浏览器和需要结构来帮助他们理解页面带来了一个很大的优势。例如,人们需要一些辅助技术的帮助。这些新的语义元素使用简单,几乎没有负担,也可以在不支持HTML5的浏览器中工作。因此,他们应该被广泛使用。

    - -
    {{HTML5ArticleTOC()}}
    diff --git a/files/zh-cn/web/http/headers/user-agent/firefox/index.html b/files/zh-cn/web/http/headers/user-agent/firefox/index.html index f2360b3973..284ff8599a 100644 --- a/files/zh-cn/web/http/headers/user-agent/firefox/index.html +++ b/files/zh-cn/web/http/headers/user-agent/firefox/index.html @@ -37,8 +37,6 @@ translation_of: Web/HTTP/Headers/User-Agent/Firefox -

    {{ h2_gecko_minversion("移动设备与平板设备的标注", "11.0") }}

    -

    User Agent(UA String)的platform部分,标明了 Firefox 是否运行在手机或平板尺寸的设备上。当Firefox运行在移动设备上时,UA 中的这个字段将包含Mobile;。当Firefox运行于平板设备时,UA 中的这个字段将包含Tablet;。例如:

    Mozilla/5.0 (Android 4.4; Mobile; rv:41.0) Gecko/41.0 Firefox/41.0
    diff --git a/files/zh-cn/web/xslt/index.html b/files/zh-cn/web/xslt/index.html
    index 223716c624..3a4de089d0 100644
    --- a/files/zh-cn/web/xslt/index.html
    +++ b/files/zh-cn/web/xslt/index.html
    @@ -7,7 +7,7 @@ translation_of: Web/XSLT
     ---
     

     

    -
    可扩展样式表语言转换(XSLT)是一种基于XML的语言,和专门的处理软件一起使用,用于XML文档转换。虽然这个处理过程被称作“转换”,但并没有改变原始文档,而是在原文档内容的基础上创建了一个新的XML文档。然后, 这个新文档会被处理器序列化(输出)为标准的XML语法或其他格式,如HTML或纯文本。XSLT最常用于不同XML模式间的数据转换,或用于将XML数据转换为网页或PDF文档。 {{ Ref("one") }}
    +
    可扩展样式表语言转换(XSLT)是一种基于XML的语言,和专门的处理软件一起使用,用于XML文档转换。虽然这个处理过程被称作“转换”,但并没有改变原始文档,而是在原文档内容的基础上创建了一个新的XML文档。然后, 这个新文档会被处理器序列化(输出)为标准的XML语法或其他格式,如HTML或纯文本。XSLT最常用于不同XML模式间的数据转换,或用于将XML数据转换为网页或PDF文档。
    -- cgit v1.2.3-54-g00ecf