Template:CatScan
Template:CatScan
| 検索結果
|
PetScanの検索結果へリンクするためのテンプレート。インライン表示タイプの{{CatScan2}}もあります。
注:このテンプレートは通常の記事には使用しないでください。
使い方
{{CatScan
|cat1=
|cat1depth=
|cat2=
|cat2depth=
|title=
|type=
}}
引数
| 引数 | 指定内容 | 既定値 | 説明 |
|---|---|---|---|
| cat1 | カテゴリ名 | (必須) | 検索するカテゴリ (basecat) |
| cat1depth | 数字 | 1 | 検索するカテゴリのサブカテゴリ階層数 |
| cat2 | カテゴリ名 | (必須) | 絞り込むカテゴリ (tagcat) |
| cat2depth | 数字 | 1 | 絞り込むカテゴリのサブカテゴリ階層数 |
| title | テキスト | "検索結果" | リンクのテキスト |
| type | テキスト | 表示の変更(詳細は使用例を参照) |
注:PetScanは処理に時間がかかるため、できるだけ検索条件を限定したほうが適切に動作します。
使用例
{{CatScan|cat1=歌舞伎役者|cat2=東京都出身の人物|title=東京都出身の歌舞伎役者}}
| 東京都出身の歌舞伎役者
|
{{CatScan2|cat1=歌舞伎役者|cat2=東京都出身の人物|title=東京都出身の歌舞伎役者}}
|type=plainを指定すると普通のテキストとて表示されますが、冒頭にビュレットを置かないと、罫線が表示されます。
{{CatScan|type=plain|cat1=歌舞伎役者|cat2=東京都出身の人物|title=東京都出身の歌舞伎役者}}
東京都出身の歌舞伎役者(冒頭にビュレットを置かなかった場合)
|type=openを指定することでボックスを閉じないようにすることもできます。それによって以下のような記述でボックス内にPetScanリンクを複数置くことができますが、最後に必ず</table>と記入してボックスを閉じてください。|}や{{!}}}、{{end}}では正しく閉じられません。
{{CatScan|type=open|cat1=歌舞伎役者|cat2=東京都出身の人物|title=東京都出身の歌舞伎役者}}{{CatScan|type=plain|cat1=歌舞伎役者|cat2=大阪府出身の人物|title=大阪府出身の歌舞伎役者}}</table>
| 東京都出身の歌舞伎役者 大阪府出身の歌舞伎役者 |
関連項目
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
