Template:WPBannerMeta/hooks/notecounter

2009年12月28日 (月) 12:43; Sabuell (会話 | 投稿記録) による版 (en:Template:WPBannerMeta/hooks/notecounter12:57, 26 July 2009 (UTC) より転記)(日時は個人設定で未設定ならUTC

(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)

0

テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]

このフックは、他のフック、Template:WPBannerMeta/hooks/notesが多いときに表示・隠すの折りたたみボックスで表示する。最低でも1つのパラメータを設定しなければ、トリガーがかからず、このフックを利用できません。

This hook allows notes added in other hooks (/notes, etc) to contribute towards the counter that triggers the notes being collapsed into a show/hide box when they become too numerous. Each parameter should be set to one of the trigger parameters for a hooked note.

使い方[編集]

シンタックス
{{WPBannerMeta
|PROJECT               = 
 |BANNER_NAME          = {{subst:FULLPAGENAME}}
 |small={{{small|}}}
 |category={{{category|¬}}}
 |listas = {{{listas|}}}

...

|HOOK_COLLAPSED        = {{WPBannerMeta/hooks/notecounter
 |category = {{{category|¬}}}
 |BANNER_NAME={{subst:FULLPAGENAME}}
 |note 1  = {{{**引数**|}}}
 |note 2  = {{{**引数**|}}}
 |note 3  = {{{**引数**|}}}
 |note 4  = {{{**引数**|}}}
 |note 5  = {{{**引数**|}}}
 |note 6  = {{{**引数**|}}}
 |note 7  = {{{**引数**|}}}
 |note 8  = {{{**引数**|}}}
 |note 9  = {{{**引数**|}}}
 |note 10 = {{{**引数**|}}}
}}

...

}}

このフックは、普通の方法では、「スタック」になりません。通常、以下のようにスタックを生成します。

This hook cannot be 'stacked' in the usual way. Normally, you can 'stack' hook templates:

|HOOK_NOTE              = <!--
-->{{WPBannerMeta/hooks/notes
 |category = {{{category|¬}}}
 |BANNER_NAME={{subst:FULLPAGENAME}}
...
}}{{WPBannerMeta/hooks/notes
 |category = {{{category|¬}}}
 |BANNER_NAME={{subst:FULLPAGENAME}}
...
}}{{WPBannerMeta/hooks/notes
 |category = {{{category|¬}}}
 |BANNER_NAME={{subst:FULLPAGENAME}}
...
}}

フックの連続など、特定の条件下では正常に動作しません。その場合、追加を表す+ でフック同士を連結します。

This does not work with this particular hook. You need to concatenate the hook templates with an addition sign +:

|HOOK_COLLAPSED         = {{WPBannerMeta/hooks/notecounter
 |category = {{{category|¬}}}
 |BANNER_NAME={{subst:FULLPAGENAME}}
...
}} + {{WPBannerMeta/hooks/notecounter
 |category = {{{category|¬}}}
 |BANNER_NAME={{subst:FULLPAGENAME}}
...
}} + {{WPBannerMeta/hooks/notecounter
 |category = {{{category|¬}}}
 |BANNER_NAME={{subst:FULLPAGENAME}}
...
}}

引数[編集]

引数の一覧
引数 指定内容 既定値 説明

カテゴリ[編集]

このテンプレートは、貼り付けられたページに次のカテゴリを適用します:

カテゴリ ソートキー 説明

関連項目[編集]