「テンプレート:SNSInfobox」の版間の差分
表示
ページの作成:「<noinclude> == SNSインフォボックス テンプレート == このテンプレートは人物・団体・チャンネルなどのSNSリンクをまとめたインフォボックスを表示します。 === 使い方 === <pre> {{SNSInfobox | 名前 = | 画像 = | 画像サイズ = | 画像説明 = | 種別 = | 設立 = | 生年月日 = | 住所 = | 公式サイト = | メール…」 |
編集の要約なし |
||
| 1行目: | 1行目: | ||
<noinclude> | <noinclude> | ||
== SNSインフォボックス テンプレート == | == SNSインフォボックス テンプレート == | ||
このテンプレートは人物・団体・チャンネルなどの基本情報とSNSリンクをまとめたインフォボックスを表示します。 | |||
=== 使い方 === | === 使い方 === | ||
| 8行目: | 8行目: | ||
| 名前 = | | 名前 = | ||
| 画像 = | | 画像 = | ||
| 画像サイズ | | 画像サイズ = | ||
| 画像説明 | | 画像説明 = | ||
| 種別 = | | 種別 = | ||
| 設立 = | | 設立 = | ||
| 生年月日 | | 生年月日 = | ||
| 住所 = | | 住所 = | ||
| 公式サイト | | 公式サイト = | ||
| メール = | | メール = | ||
| facebook = | | facebook = | ||
| 29行目: | 29行目: | ||
}} | }} | ||
</pre> | </pre> | ||
=== 注意事項 === | |||
* 各パラメータは省略可能です。入力がない項目は表示されません。 | * 各パラメータは省略可能です。入力がない項目は表示されません。 | ||
* | * '''facebook・youtube・twitter・instagram・tiktok・niconico・marshmallow''' はIDのみ入力してください(URLは自動生成されます)。 | ||
* | * '''メール''' はメールアドレスのみ入力してください(mailto: は不要)。 | ||
* '''公式サイト''' は https:// から始まるフルURLを入力してください。 | |||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
=========================================================== | =========================================================== | ||
SNSInfobox テンプレート本体 | SNSInfobox テンプレート本体 ver 2.0 | ||
Wikipedia風スタイル / バグ修正版 | |||
=========================================================== | =========================================================== | ||
--><table class="infobox" style="border-collapse:collapse; width: | --><table class="infobox" style="border-collapse:collapse; width:22em; font-size:88%; line-height:1.5em; background:#f8f9fa; border:1px solid #a2a9b1; float:right; clear:right; margin:0 0 1em 1.5em; color:#202122;"> | ||
<!-- | <!-- ========== ヘッダー(名前)========== --> | ||
{{#if:{{{名前|}}}| | {{#if:{{{名前|}}}| | ||
<tr> | <tr> | ||
<th colspan="2" style="background:#2c3e50; color:#ffffff; text-align:center; padding:8px | <th colspan="2" style="background:#2c3e50; color:#ffffff; text-align:center; padding:8px 10px; font-size:115%; font-weight:bold; letter-spacing:0.03em; border-bottom:3px solid #1a252f;"> | ||
{{{名前}}} | {{{名前}}} | ||
</th> | </th> | ||
| 47行目: | 51行目: | ||
}} | }} | ||
<!-- | <!-- ========== 画像 ========== --> | ||
{{#if:{{{画像|}}}| | {{#if:{{{画像|}}}| | ||
<tr> | <tr> | ||
<td colspan="2" style="text-align:center; padding:6px;"> | <td colspan="2" style="text-align:center; padding:8px 6px 4px; border-bottom:1px solid #a2a9b1;"> | ||
[[ファイル:{{{画像}}}|{{{画像サイズ|240px}}}|{{{画像説明|}}}]] | [[ファイル:{{{画像}}}|{{{画像サイズ|240px}}}|center|{{{画像説明|}}}]] | ||
{{#if:{{{画像説明|}}}|< | {{#if:{{{画像説明|}}}|<div style="font-size:90%; padding:3px 6px; color:#54595d;">{{{画像説明}}}</div>}} | ||
</td> | </td> | ||
</tr> | </tr> | ||
}} | }} | ||
<!-- | <!-- ========== セクション:基本情報 ========== --> | ||
{{#if:{{{種別|}}}{{{設立|}}}{{{生年月日|}}}{{{住所|}}}{{{公式サイト|}}}{{{メール|}}}| | |||
<tr> | <tr> | ||
<th colspan="2" style="background:#3d5a80; color:#ffffff; text-align:center; padding:4px; font-size: | <th colspan="2" style="background:#3d5a80; color:#ffffff; text-align:center; padding:4px 6px; font-size:93%; font-weight:bold; border-top:2px solid #2c3e50; border-bottom:1px solid #2c3e50;"> | ||
基本情報 | |||
</th> | </th> | ||
</tr> | </tr> | ||
}} | |||
<! | <!-- 種別 --> | ||
{{#if:{{{種別|}}}| | {{#if:{{{種別|}}}| | ||
<tr> | <tr style="border-bottom:1px solid #eaecf0;"> | ||
<th style="background:#eaecf0; padding:4px 8px; width: | <th style="background:#eaecf0; padding:4px 8px; width:7em; font-weight:bold; vertical-align:top; white-space:nowrap;">種別</th> | ||
<td style="padding:4px 8px;">{{{種別}}}</td> | <td style="padding:4px 8px; vertical-align:top;">{{{種別}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<! | <!-- 設立 --> | ||
{{#if:{{{設立|}}}| | {{#if:{{{設立|}}}| | ||
<tr> | <tr style="border-bottom:1px solid #eaecf0;"> | ||
<th style="background:#eaecf0; padding:4px 8px; white-space:nowrap;">設立</th> | <th style="background:#eaecf0; padding:4px 8px; font-weight:bold; vertical-align:top; white-space:nowrap;">設立</th> | ||
<td style="padding:4px 8px;">{{{設立}}}</td> | <td style="padding:4px 8px; vertical-align:top;">{{{設立}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<! | <!-- 生年月日 --> | ||
{{#if:{{{生年月日|}}}| | {{#if:{{{生年月日|}}}| | ||
<tr> | <tr style="border-bottom:1px solid #eaecf0;"> | ||
<th style="background:#eaecf0; padding:4px 8px; white-space:nowrap;">生年月日</th> | <th style="background:#eaecf0; padding:4px 8px; font-weight:bold; vertical-align:top; white-space:nowrap;">生年月日</th> | ||
<td style="padding:4px 8px;">{{{生年月日}}}</td> | <td style="padding:4px 8px; vertical-align:top;">{{{生年月日}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<! | <!-- 住所 --> | ||
{{#if:{{{住所|}}}| | {{#if:{{{住所|}}}| | ||
<tr> | <tr style="border-bottom:1px solid #eaecf0;"> | ||
<th style="background:#eaecf0; padding:4px 8px; white-space:nowrap;">住所</th> | <th style="background:#eaecf0; padding:4px 8px; font-weight:bold; vertical-align:top; white-space:nowrap;">住所</th> | ||
<td style="padding:4px 8px;">{{{住所}}}</td> | <td style="padding:4px 8px; vertical-align:top;">{{{住所}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<! | <!-- 公式サイト --> | ||
{{#if:{{{公式サイト|}}}| | {{#if:{{{公式サイト|}}}| | ||
<tr> | <tr style="border-bottom:1px solid #eaecf0;"> | ||
<th style="background:#eaecf0; padding:4px 8px; white-space:nowrap;">公式サイト</th> | <th style="background:#eaecf0; padding:4px 8px; font-weight:bold; vertical-align:top; white-space:nowrap;">公式サイト</th> | ||
<td style="padding:4px 8px;"> | <td style="padding:4px 8px; vertical-align:top;">[{{{公式サイト}}} 公式サイト]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<!-- | <!-- メール(メールアドレスのみ入力・mailto:は自動付与) --> | ||
{{#if:{{{メール|}}}| | {{#if:{{{メール|}}}| | ||
<tr> | <tr style="border-bottom:1px solid #eaecf0;"> | ||
<th style="background:#eaecf0; padding:4px 8px; white-space:nowrap;">メール</th> | <th style="background:#eaecf0; padding:4px 8px; font-weight:bold; vertical-align:top; white-space:nowrap;">メール</th> | ||
<td style="padding:4px 8px;">[ | <td style="padding:4px 8px; vertical-align:top;">[mailto:{{{メール}}} {{{メール}}}]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<!-- | <!-- ========== セクション:SNS・動画 ========== --> | ||
{{#if:{{{facebook|}}}{{{youtube|}}}{{{twitter|}}}{{{instagram|}}}{{{tiktok|}}}{{{niconico|}}}{{{marshmallow|}}}{{{その他SNS1URL|}}}{{{その他SNS2URL|}}}| | {{#if:{{{facebook|}}}{{{youtube|}}}{{{twitter|}}}{{{instagram|}}}{{{tiktok|}}}{{{niconico|}}}{{{marshmallow|}}}{{{その他SNS1URL|}}}{{{その他SNS2URL|}}}| | ||
<tr> | <tr> | ||
<th colspan="2" style="background:#3d5a80; color:#ffffff; text-align:center; padding:4px; font-size: | <th colspan="2" style="background:#3d5a80; color:#ffffff; text-align:center; padding:4px 6px; font-size:93%; font-weight:bold; border-top:2px solid #2c3e50; border-bottom:1px solid #2c3e50;"> | ||
SNS・動画 | |||
</th> | </th> | ||
</tr> | </tr> | ||
}} | }} | ||
<! | <!-- Facebook --> | ||
{{#if:{{{facebook|}}}| | {{#if:{{{facebook|}}}| | ||
<tr> | <tr style="border-bottom:1px solid #eaecf0;"> | ||
<th style="background:#eaecf0; padding: | <th style="background:#eaecf0; padding:5px 8px; font-weight:bold; vertical-align:middle; white-space:nowrap;"> | ||
<span style="display:inline-block; background:#1877f2; color:#fff; border-radius:4px; padding:0 7px; font-size:95%; font-weight:bold;">f</span> <span style="color:#1877f2;">Facebook</span> | |||
</th> | </th> | ||
<td style="padding: | <td style="padding:5px 8px; vertical-align:middle;">[https://www.facebook.com/{{{facebook}}} @{{{facebook}}}]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<! | <!-- YouTube --> | ||
{{#if:{{{youtube|}}}| | {{#if:{{{youtube|}}}| | ||
<tr> | <tr style="border-bottom:1px solid #eaecf0;"> | ||
<th style="background:#eaecf0; padding: | <th style="background:#eaecf0; padding:5px 8px; font-weight:bold; vertical-align:middle; white-space:nowrap;"> | ||
<span style="display:inline-block; background:#ff0000; color:#fff; border-radius:3px; padding:0 5px; font-size:90%;">▶</span> <span style="color:#cc0000;">YouTube</span> | |||
</th> | </th> | ||
<td style="padding: | <td style="padding:5px 8px; vertical-align:middle;">[https://www.youtube.com/@{{{youtube}}} @{{{youtube}}}]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<!-- | <!-- X (Twitter) --> | ||
{{#if:{{{twitter|}}}| | {{#if:{{{twitter|}}}| | ||
<tr> | <tr style="border-bottom:1px solid #eaecf0;"> | ||
<th style="background:#eaecf0; padding: | <th style="background:#eaecf0; padding:5px 8px; font-weight:bold; vertical-align:middle; white-space:nowrap;"> | ||
<span style="display:inline-block; background:#000; color:#fff; border-radius:4px; padding:0 5px; font-size:90%; font-weight:bold;">X</span> <span style="color:#000;">X (Twitter)</span> | |||
</th> | </th> | ||
<td style="padding: | <td style="padding:5px 8px; vertical-align:middle;">[https://x.com/{{{twitter}}} @{{{twitter}}}]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<! | <!-- Instagram --> | ||
{{#if:{{{instagram|}}}| | {{#if:{{{instagram|}}}| | ||
<tr> | <tr style="border-bottom:1px solid #eaecf0;"> | ||
<th style="background:#eaecf0; padding: | <th style="background:#eaecf0; padding:5px 8px; font-weight:bold; vertical-align:middle; white-space:nowrap;"> | ||
<span style="display:inline-block; background:#c13584; color:#fff; border-radius:6px; padding:0 5px; font-size:90%;">□</span> <span style="color:#c13584;">Instagram</span> | |||
</th> | </th> | ||
<td style="padding: | <td style="padding:5px 8px; vertical-align:middle;">[https://www.instagram.com/{{{instagram}}} @{{{instagram}}}]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<!-- | <!-- TikTok(@@バグ修正:URLのみ@付き、表示テキストは@+ID) --> | ||
{{#if:{{{tiktok|}}}| | {{#if:{{{tiktok|}}}| | ||
<tr> | <tr style="border-bottom:1px solid #eaecf0;"> | ||
<th style="background:#eaecf0; padding: | <th style="background:#eaecf0; padding:5px 8px; font-weight:bold; vertical-align:middle; white-space:nowrap;"> | ||
<span style="display:inline-block; background:#010101; color:#fff; border-radius:4px; padding:0 5px; font-size:88%; font-weight:bold; letter-spacing:-0.02em;">TT</span> <span style="color:#010101; font-weight:bold;">TikTok</span> | |||
</th> | </th> | ||
<td style="padding: | <td style="padding:5px 8px; vertical-align:middle;">[https://www.tiktok.com/@{{{tiktok}}} @{{{tiktok}}}]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<! | <!-- ニコニコ動画 --> | ||
{{#if:{{{niconico|}}}| | {{#if:{{{niconico|}}}| | ||
<tr> | <tr style="border-bottom:1px solid #eaecf0;"> | ||
<th style="background:#eaecf0; padding: | <th style="background:#eaecf0; padding:5px 8px; font-weight:bold; vertical-align:middle; white-space:nowrap;"> | ||
<span style="display:inline-block; background:#fff; border:2px solid #252525; border-radius:50%; color:#252525; width:1.3em; height:1.3em; line-height:1.2em; text-align:center; font-size:88%; font-weight:bold; vertical-align:middle;">N</span> <span style="color:#252525;">ニコニコ</span> | |||
</th> | </th> | ||
<td style="padding: | <td style="padding:5px 8px; vertical-align:middle;">[https://www.nicovideo.jp/user/{{{niconico}}} {{{niconico}}}]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<! | <!-- マシュマロ --> | ||
{{#if:{{{marshmallow|}}}| | {{#if:{{{marshmallow|}}}| | ||
<tr> | <tr style="border-bottom:1px solid #eaecf0;"> | ||
<th style="background:#eaecf0; padding: | <th style="background:#eaecf0; padding:5px 8px; font-weight:bold; vertical-align:middle; white-space:nowrap;"> | ||
<span style="display:inline-block; background:#ff7c7c; color:#fff; border-radius:4px; padding:0 5px; font-size:88%;">Q</span> <span style="color:#ff7c7c; font-weight:bold;">マシュマロ</span> | |||
</th> | </th> | ||
<td style="padding: | <td style="padding:5px 8px; vertical-align:middle;">[https://marshmallow-qa.com/{{{marshmallow}}} {{{marshmallow}}}]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<!-- | <!-- その他SNS 1 --> | ||
{{#if:{{{その他SNS1URL|}}}| | {{#if:{{{その他SNS1URL|}}}| | ||
<tr> | <tr style="border-bottom:1px solid #eaecf0;"> | ||
<th style="background:#eaecf0; padding: | <th style="background:#eaecf0; padding:5px 8px; font-weight:bold; vertical-align:middle; white-space:nowrap;"> | ||
<td style="padding: | <span style="display:inline-block; background:#555; color:#fff; border-radius:4px; padding:0 5px; font-size:88%;">↗</span> {{{その他SNS1名|その他}}} | ||
</th> | |||
<td style="padding:5px 8px; vertical-align:middle;">[{{{その他SNS1URL}}} {{{その他SNS1名|リンク}}}]</td> | |||
</tr> | </tr> | ||
}} | }} | ||
<!-- | <!-- その他SNS 2 --> | ||
{{#if:{{{その他SNS2URL|}}}| | {{#if:{{{その他SNS2URL|}}}| | ||
<tr> | <tr style="border-bottom:1px solid #eaecf0;"> | ||
<th style="background:#eaecf0; padding: | <th style="background:#eaecf0; padding:5px 8px; font-weight:bold; vertical-align:middle; white-space:nowrap;"> | ||
<td style="padding: | <span style="display:inline-block; background:#555; color:#fff; border-radius:4px; padding:0 5px; font-size:88%;">↗</span> {{{その他SNS2名|その他}}} | ||
</th> | |||
<td style="padding:5px 8px; vertical-align:middle;">[{{{その他SNS2URL}}} {{{その他SNS2名|リンク}}}]</td> | |||
</tr> | </tr> | ||
}} | }} | ||
</table></includeonly> | </table></includeonly> | ||
2026年2月18日 (水) 15:00時点における版
SNSインフォボックス テンプレート
このテンプレートは人物・団体・チャンネルなどの基本情報とSNSリンクをまとめたインフォボックスを表示します。
使い方
{{SNSInfobox
| 名前 =
| 画像 =
| 画像サイズ =
| 画像説明 =
| 種別 =
| 設立 =
| 生年月日 =
| 住所 =
| 公式サイト =
| メール =
| facebook =
| youtube =
| twitter =
| instagram =
| tiktok =
| niconico =
| marshmallow =
| その他SNS1名 =
| その他SNS1URL =
| その他SNS2名 =
| その他SNS2URL =
}}
注意事項
- 各パラメータは省略可能です。入力がない項目は表示されません。
- facebook・youtube・twitter・instagram・tiktok・niconico・marshmallow はIDのみ入力してください(URLは自動生成されます)。
- メール はメールアドレスのみ入力してください(mailto: は不要)。
- 公式サイト は https:// から始まるフルURLを入力してください。