Wiki内検索
ASKS メニュー
タグ
最近更新したページ
最新コメント
EntryLite by kitchenstude
EntryLite by sunhomeengla
MenuBar1 by Wendy
EntryLite by american casino
EntryLite by american casino
EntryLite by american casino
EntryLite by american casino
EntryLite by american casino
EntryLite by american casino
EntryLite by american casino

S2 マニュアル 4.8 レイヤー情報宣言

元ページ
http://www.livejournal.com/doc/s2/langref.layerinf...

戻る


4.8. レイヤー情報宣言 - layerinfo declarations


レイヤーに任意のメタデータを設定するために、レイヤー情報宣言を使うことが出来ますが、各レイヤーにはいくつかのメタデータのキーと値のセットを使用する必要があります。

You can use the layerinfo declaration to set arbitrary meta-data for a layer. However, certain meta-data keys and values are required for each type of layer.

レイヤー情報の構文:
The syntax of layerinfo is:

  "layerinfo" <Text> "=" <Text> ";"
  <Text> ::= <identifier> | <string literal> | <integer literal>

最低限、有効なレイヤーを作製するために必要なモノは、レイヤータイプを表すメタデータ "type" で始まるレイヤー情報宣言です。しかし、レイヤータイプによっては、それ以上の宣言が必要になるでしょう。有効なタイプについてはレイヤーセクションにて説明します。

At minimum, all that's required to create a valid layer is one layerinfo declaration with name "type", stating the type of the layer. Depending on the layer type, more declarations may be required. Valid types are those listed in the Layers section.

Example:

  layerinfo type = theme;
  layerinfo name = "Polka-dotted yellow sunrise";
  layerinfo author_name = "Jon Doe";
  layerinfo author_email = "jondoe@email.addr";
  layerinfo des = "A beautiful polka-dotted yellow sunrise with lots of yellow & orange.";
  set bgcolor = "#ffff00";
  set fgcolor = "#ffc000";

4.8.1. キー - Keys


4.8.1.1. 必要なキー - Required Keys


typeレイヤータイプ識別子 - The layer type identifier
majorversionコアレイヤーにだけ必要 - Required for core layers only
langcode構成言語。I18n と I18nc レイヤーにだけ必要。 - Language being configured. I18n and i18nc layers only.

4.8.1.2. 推奨キー - Recommended Keys


nameインターフェイスで表示されるレイヤーの名前。 - The name of the layer to be displayed in the interface.

4.8.1.3. その他サポートされているキー - Other Supported Keys


desレイヤーの詳しい説明。 - A longer description of the layer.
author_name作者名。 - The name of the author.
author_email作者のメールアドレス。 - The email address of the author.

注意 - Note


もし、メールアドレスを記入した場合、それがホストサイト上、クリアーテキストとして表示されるでしょう。スパムの心配がある場合はメールアドレスは省いた方がよいでしょう。

The email address, if given, will likely be displayed on the host site in clear-text. You should probably leave it out if you are concerned about email-address collecting software and spam.
2006年09月21日(木) 02:25:36 Modified by gay_shinshi




スマートフォン版で見る