Wikidata:ウィキデータ・ツアーの制作方法/制作

This page is a translated version of the page Wikidata:How to create Wikidata Tours/Write and the translation is 73% complete.

ツアーのウィキページを制作する

ツアーの各手順のテキストはすべてウィキページに保存されます。この手順では、既存のライブツアーと共にメインのWikidata:ツアーフォルダにツアーウィキページを作成します。以下にリンクされているツアーウィキページのテンプレートのコピーを使って始めることができます。これには、他のツアーと同様に必要なページ構造と書式が設定されています。

  1. ツアーウィキページのテンプレートに移動し、「ソースの編集」タブをクリックする(このページの編集内容は保存しないでください)
  2. すべてのページコンテンツを選択し、クリップボードにコピーする
  3. URLに移動 https://www.wikidata.org/wiki/Wikidata:Tours/ツアー名ツアー名は選択したツアー名です)
  4. 「ソースの作成」タブをクリックし、先程テンプレートからコピーした内容を貼り付ける
  5. 「ページの公開」ボタンをクリックして、新しいページを保存する


このページの残りの手順では、新しいウィキページに実際のコンテンツを設定する方法について説明します。前回の手順で作成した概要を定期的に参照するようにしてください。これにより、詳細を確認しながらツアーの全体的な流れを把握することができます。

構造

手順タイトル: ウィキページに追加されたそれぞれの「見出し」テキストのセクションは、ツアーの別の手順になります(これは、== My heading == などのソースエディタを使用する場合、これは「レベル2 」見出しです)。この見出しテキストは、各手順のポップアップのタイトルとして使用されます。

  • ステップの内容: 見出しテキストに続くテキストは、そのステップのコンテンツとして含まれます。 これには、通常のWikidata Wikiページでサポートされているテキスト、テンプレート、画像などを含めることができます。

JavaScriptファイルの作成者を支援するコメントを追加する

各セクション見出しの下にあるコメントを使用して、ステップの動作を説明できます。 これは、JavaScriptファイルを作成する人が、各ステップの意図を理解するのに役立ちます。

When using visual editor, you can add comments to your wiki page by clicking insert > comments from the menu at the top of the page. In source editor use this notation <!-- comment goes here -->.

コメントには次のものを含める必要があります。

  • Element to attach to: Which page element the guide box should attach to, if any. For example, you could write "attach to new statement button", or "attach to property select dropdown". Steps without an attach element will just float in the middle of the page.
  • Action to complete: Here you can describe the user action needed to complete the step, e.g. "Click new statement button", or "select a property". These actions can be used to be used to automatically advance the slide if the user completes the action, as well as to 'auto-complete' the step if the user clicks the "next" button without completing the action themselves. Note that only simple "click" actions are supported for automatic actions at the moment (like a click on a button or linked text), but you should still describe more complex user actions so they can be added as the functionality is expanded (e.g. search and select P21 from the property dropdown).

Tip: When referencing another tour, always link to Wikidata:Tours rather than a specific tour as the item that the tour uses may change which changes the URL. E.g for more information statements, please take the Statements Tour at Wikidata:Tours.