From a70214aa3d2afca518337b7e5ddc1bba122c685f Mon Sep 17 00:00:00 2001 From: Dongsen Date: Tue, 12 Oct 2021 22:11:23 +0800 Subject: update macros translate for zh-CN (#2174) * rebase #2173 * revert title anchor translate * update deprecate translate * add the newest update for EmbedGHLiveSample translate --- files/zh-cn/mdn/structures/macros/other/index.html | 91 +++++++++++----------- 1 file changed, 45 insertions(+), 46 deletions(-) (limited to 'files/zh-cn/mdn/structures/macros/other') diff --git a/files/zh-cn/mdn/structures/macros/other/index.html b/files/zh-cn/mdn/structures/macros/other/index.html index d9dd6f2ea3..c8a8de7a85 100644 --- a/files/zh-cn/mdn/structures/macros/other/index.html +++ b/files/zh-cn/mdn/structures/macros/other/index.html @@ -1,5 +1,5 @@ --- -title: 其他需要注意的宏 +title: 其他宏 slug: MDN/Structures/Macros/Other tags: - Macros @@ -7,86 +7,85 @@ tags: ---
{{MDNSidebar}}
-

In contrast to the macros listed in Commonly-used macros, the macros documented in this article are used infrequently or only in specific contexts, or are deprecated.

+

常用的宏 中列出的宏相比,本文中记录的宏很少使用或仅在特定上下文中使用,或者已弃用。

-

Special contexts

+

特殊情况

-

These macros are used only with particular contexts, such as a specific API reference.

+

这些宏仅用于特定的上下文,例如特定的 API 参考。

-

Landing page components

+

着陆页组件

-

We have an assortment of macros that can be used to automatically generate the contents of landing pages. Here they are.

+

我们有各种各样的宏,可用于自动生成着陆页面的内容。请参考:

-

Lists of subpages

+

子页面列表

- + -

We have some macros specifically designed to create quicklinks:

+

我们有一些宏,专门用于创建 快速链接:

-

Transclusion

+

嵌入

-

Transclusion is the embedding of part or all of one page into another. Exercise caution when using this macro, to ensure that the transcluded content makes sense in the context of the page it is embedded into.

+

嵌入是将一个页面的部分或全部嵌入到另一个页面中。使用此宏时要小心,以确保嵌入的内容在其嵌入的页面上下文中有意义。

-

page lets you embed some or all of a specific page into a document. It accepts five parameters:

+

page 允许您将特定页面的部分或全部嵌入到文档中。它接受五个参数:

    -
  1. The URI of the page to transclude. For example, "/en-US/docs/MDN/About".
  2. -
  3. The name of the section within the page to transclude. This can be specified either as the title string or as the ID of a block to copy over. If not specified, the entire article is transcluded. {{optional_inline}}
  4. -
  5. The revision number of the page version to transclude. This feature is not currently implemented, but would allow including text from specific versions of an article. {{unimplemented_inline}}
  6. -
  7. A Boolean value indicating whether or not to show the heading of the top-level section being transcluded. This is useful if you wish to specify your own heading. The default value is false, meaning the heading is not included by default. {{optional_inline}}
  8. -
  9. The heading level to use as the top heading level. This adjusts the outermost first-discovered level of the transcluded content to the specified number, and all other headings correspondingly. This lets you include content that has its own headings but adjust them to match the heading level at which you're including them. If you don't specify this value, the headings are not adjusted. {{unimplemented_inline}}
  10. +
  11. 要嵌入的页面的 URI。例如 "/en-US/docs/MDN/About"。
  12. +
  13. 页面中要嵌入的部分的名称。这可以指定为标题字符串或要复制的块的 ID。如果未指定,则整篇文章被嵌入。 {{optional_inline}}
  14. +
  15. 要嵌入的页面版本的修订号。此功能目前尚未实现,但允许包含来自文章特定版本的文本。 {{unimplemented_inline}}
  16. +
  17. 一个布尔值,指示是否显示被嵌入的顶级部分的标题。如果您希望指定自己的标题,这很有用。默认值为 false,表示默认情况下不包含标题。 {{optional_inline}}
  18. +
  19. 用作顶部标题级别的标题级别。这会将嵌入内容的最外层首次发现级别调整为指定数量,并相应地调整所有其他标题。这使您可以包含具有自己标题的内容,但可以调整它们以匹配您包含它们的标题级别。如果不指定此值,则不会调整标题。 {{unimplemented_inline}}
-

Example without heading

+

没有标题的例子

\{{Page("/en-US/docs/MDN/About", "How you can help")}}

-

Result:

+

输出以下内容:

-

{{Page("/en-US/docs/MDN/About", "How you can help")}}

+{{Page("/en-US/docs/MDN/About", "How you can help")}} -

Example with heading

+

带标题的例子

\{{Page("/en-US/docs/MDN/About", "How you can help", 0, 1)}}

-

Result:

+

输出以下内容:

-

{{Page("/en-US/docs/MDN/About", "How you can help", 0, 1)}}

+{{Page("/en-US/docs/MDN/About", "How you can help", 0, 1)}} -

Deprecated

+

不赞成的

-

These macros have been replace by other ways of doing the same thing, and should no longer be used. If you find them in existing articles, please replace them.

+

这些宏已被其他做同样事情的方式所取代,不应再使用。如果您在现有文章中找到它们,请替换它们。

-

Linking

+

链接

-- cgit v1.2.3-54-g00ecf