From 0e8581f687442e1d4de7092b15d61bb04f4d1c22 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sat, 12 Jun 2021 10:50:49 +0900 Subject: MDN/Structures/Page_types/API_reference_page_template を更新 (#1084) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 見出しから name 属性を削除 - 翻訳を少し進めた --- .../api_reference_page_template/index.html | 54 +++++++++++----------- 1 file changed, 26 insertions(+), 28 deletions(-) (limited to 'files') diff --git a/files/ja/mdn/structures/page_types/api_reference_page_template/index.html b/files/ja/mdn/structures/page_types/api_reference_page_template/index.html index e59690ef30..13c0aea64a 100644 --- a/files/ja/mdn/structures/page_types/api_reference_page_template/index.html +++ b/files/ja/mdn/structures/page_types/api_reference_page_template/index.html @@ -5,42 +5,41 @@ tags: - API - Template - reference page - - テンプレート translation_of: MDN/Structures/Page_types/API_reference_page_template ---

{{MDNSidebar}}

-
-

公開前に削除してください

+
+

公開前に削除してください

-

タイトルとスラッグ

+

タイトルとスラッグ

API リファレンスページでは、そのページで説明しているインターフェイスの名前タイトルにしてください。例えば、 Request インターフェイスのページでは、タイトルRequest にしてください。

スラッグ (URL の最後の部分) も、そのページで説明しているインターフェイスの名前にしてください。したがって、 Request のスラッグは Request です。これはふつう、自動的に設定されます。

-

先頭で使用するマクロ

+

先頭で使用するマクロ

-

既定では、テンプレートの先頭に5つのマクロ呼び出しがあります。以下のアドバイスに従って、更新や削除をしてください。

+

既定では、テンプレートの先頭に 5 つのマクロ呼び出しがあります。以下のアドバイスに従って、更新や削除をしてください。

    -
  • \{{APIRef("グループデータ名")}} — これは左端にあるサイドバーを生成し、現在のページに関連するクイックリファレンスのリンクを表示します。例えば、 WebVR API の中の各ページは同じサイドバーを持ち、この API 内の他のページを指します。 API で正しいサイドバーを生成するには、 KumaScript の GitHub リポジトリにグループデータの項目を追加し、マクロ呼び出しの中でグループデータ名のところに項目名を入れる必要があります。これを行う方法についてのガイドは API リファレンスサイドバーを参照してください。
  • -
  • \{{Draft}} — this generates a Draft banner that indicates that the page is not yet complete, and should only be removed when the first draft of the page is completely finished. After it is ready to be published, you can remove this.
  • -
  • \{{SeeCompatTable}} — this generates a This is an experimental technology banner that indicates the technology is experimental). If the technology you are documenting is not experimental, you can remove this. If it is experimental, and the technology is hidden behind a pref in Firefox, you should also fill in an entry for it in the Experimental features in Firefox page.
  • -
  • \{{SecureContext_Header}} — this generates a Secure context banner that indicates the technology is only available in a secure context. If it isn't, then you can remove the macro call. If it is, then you should also fill in an entry for it in the Features restricted to secure contexts page.
  • -
  • \{{Deprecated_Header}} — this generates a Deprecated banner that indicates the technology is deprecated. If it isn't, then you can remove the macro call.
  • -
  • \{{Interface_Overview("GroupDataName")}} {{Experimental_Inline}} — this generates the main body of the page (Constructor, Properties, Methods and Evenets)
  • +
  • \{{APIRef("グループデータ名")}} — これは左端にあるサイドバーを生成し、現在のページに関連するクイックリファレンスのリンクを表示します。例えば、 WebVR API の中の各ページは同じサイドバーを持ち、この API 内の他のページを指します。 API で正しいサイドバーを生成するには、 KumaScript の GitHub リポジトリにグループデータの項目を追加し、マクロ呼び出しの中でグループデータ名のところに項目名を入れる必要があります。これを行う方法についてのガイドは API リファレンスサイドバーを参照してください。
  • +
  • \{{Draft}} — これは、 Draft バナーを生成してページがまだ完成していないことを示すもので、ページの最初の草稿が完全に完成した場合にのみ削除するべきものです。公開できる状態になったら、これを削除することができます。
  • +
  • \{{SeeCompatTable}} — これは、 This is an experimental technology バナーを生成して、技術が実験的であることを示します。文書化しようとしている技術が実験的でない場合は、これを削除することができます。実験的な技術であり、その技術が Firefox のプレハブに隠されている場合は、 Firefox における試験的機能のページにそのための項目を記入する必要があります。
  • +
  • \{{SecureContext_Header}} — これは Secure context バナーを生成し、その技術が安全なコンテキストでのみ利用可能であることを示します。そうでない場合、マクロ呼び出しを削除することができます。存在する場合は、安全なコンテキストに制限されている機能ページにも項目を記入してください。
  • +
  • \{{Deprecated_Header}} — これは Deprecated バナーを生成し、その技術が非推奨であることを示します。そうでない場合は、このマクロを削除することができます。
  • +
  • \{{Interface_Overview("GroupDataName")}} {{Experimental_Inline}} — これはページの本文 (コンストラクター、プロパティ、メソッド、イベント) を生成します。
-

タグ

+

タグ

-

In an API reference page, you need to include the following tags (see the Tags section at the bottom of the editor UI): API, Reference, Interface, the name of the API (e.g. WebVR), the name of the interface (e.g. Request), Experimental (if the technology is experimental), Secure context (if it is available in a secure context only), and Deprecated (if it is deprecated).

+

In an API reference page, you need to include the following tags (see the Tags section at the bottom of the editor UI): API, Reference, Interface, the name of the API (e.g. WebVR), the name of the interface (e.g. Request), Experimental (if the technology is experimental), Secure context (if it is available in a secure context only), and Deprecated (if it is deprecated).

Optionally, you can elect to include some other tags that effective represent terms people might search for when looking for information on that technology. For example on WebVR interface pages we include VR and Virtual reality.

-

ブラウザーの互換性

+

ブラウザーの互換性

-

To fill in the browser compat data, you first need to fill in an entry for the API into our Browser compat data repo — see our guide on how to do this.

+

To fill in the browser compat data, you first need to fill in an entry for the API into our Browser compat data repo — see our guide on how to do this.

Once that is done, you can show the compat data for the interface with a \{{Compat(…)}} macro call.

@@ -51,14 +50,14 @@ translation_of: MDN/Structures/Page_types/API_reference_page_template

{{InheritanceDiagram}}

-

コンストラクター

+

コンストラクター

{{DOMxRef("NameOfTheInterface.NameOfTheInterface")}}
Creates a new instance of the {{DOMxRef("NameOfTheInterface")}} object.
-

プロパティ

+

プロパティ

Also inherits properties from its parent interface, {{DOMxRef("NameOfParentInterface")}}. (Note: If the interface doesn't inherit from another interface, remove this whole line.)

@@ -69,7 +68,7 @@ translation_of: MDN/Structures/Page_types/API_reference_page_template
etc.
-

メソッド

+

メソッド

Also inherits methods from its parent interface, {{DOMxRef("NameOfParentInterface")}}. (Note: If the interface doesn't inherit from another interface, remove this whole line.)

@@ -80,7 +79,7 @@ translation_of: MDN/Structures/Page_types/API_reference_page_template
etc.
-

イベント

+

イベント

Listen to these events using addEventListener() or by assigning an event listener to the oneventname property of this interface.

@@ -92,13 +91,14 @@ translation_of: MDN/Structures/Page_types/API_reference_page_template
Fired when ... include description of when event fires
Also available via the oneventname2 property.
etc.
+
Fired when ...
-

+

-

Fill in a simple example that nicely shows a typical usage of the interfaces, then perhaps some more complex examples (see our guide on how to add code examples for more information).

+

Fill in a simple example that nicely shows a typical usage of the interfaces, then perhaps some more complex examples (see our guide on how to add code examples for more information).

-
my code block
+
my code block

And/or include a list of links to useful code samples that live elsewhere:

@@ -108,7 +108,7 @@ translation_of: MDN/Structures/Page_types/API_reference_page_template
  • z
  • -

    仕様書

    +

    仕様書

    @@ -132,13 +132,11 @@ translation_of: MDN/Structures/Page_types/API_reference_page_template
    -

    ブラウザーの互換性

    - - +

    ブラウザーの互換性

    {{Compat("path.to.feature.NameOfTheInterface")}}

    -

    関連情報

    +

    関連情報