无编辑摘要 |
无编辑摘要 |
||
第1行: | 第1行: | ||
< | <includeonly> | ||
{{#if: {{{start|}}}| | |||
<div class="mc-player-grid"> | |||
|}} | |||
<templatestyles src="Template:MCPlayerList/style.css" /> | |||
<a href="/wiki/{{{name|}}}" class="mc-player-card"> | |||
<div class="mc-player-avatar"> | <div class="mc-player-avatar"> | ||
<img src="{{{image|https://picsum.photos/200/200?random=1}}}" | |||
alt="{{{name|}}}的头像" /> | |||
</div> | </div> | ||
<div class="mc-player-info"> | <div class="mc-player-info"> | ||
<div class="mc-player-name">{{{name|}}}</div> | |||
<div class="mc-player-chinese">{{{chinese|}}}</div> | |||
<div class="mc-player-english">{{{english|}}}</div> | |||
</div> | </div> | ||
</a> | |||
{{#if: {{{end|}}}| | |||
</div> | |||
|}} | |||
</includeonly> | |||
<noinclude> | |||
== 横向玩家列表模板 == | |||
用于以横向卡片网格展示多个MC玩家信息,支持点击跳转和头像旋转动画。 | |||
== 使用方法 == | |||
{{MCPlayerList|start=1}} | |||
{{MCPlayerList | |||
| name = Notch | |||
| chinese = 马库斯·阿列克谢·泊松 | |||
| english = Creator of Minecraft | |||
| image = Notch_Avatar.png | |||
}} | }} | ||
{{MCPlayerList | |||
| name = Jeb_ | |||
| chinese = 延斯·伯根斯坦 | |||
| english = Lead Developer | |||
| image = Jeb_Avatar.png | |||
}} | |||
{{MCPlayerList|end=1}} | |||
== 参数说明 == | |||
* '''start=1''' - 放在列表开头,用于初始化网格容器 | |||
* '''end=1''' - 放在列表结尾,用于闭合网格容器 | |||
* '''name''' (必填) - 玩家名称(链接目标) | |||
* '''chinese''' (选填) - 中文介绍 | |||
* '''english''' (选填) - 英文介绍 | |||
* '''image''' (选填) - 头像图片URL | |||
== 效果特点 == | |||
* 横向卡片布局,左侧头像+右侧文字 | |||
* 点击卡片任意位置跳转至玩家页面 | |||
* 点击时头像会旋转360°动画 | |||
* 自动网格排列,适配不同屏幕宽度 | |||
* 悬停时卡片轻微上浮+阴影加深 | |||
</noinclude> |
2025年7月25日 (五) 23:39的版本
横向玩家列表模板
用于以横向卡片网格展示多个MC玩家信息,支持点击跳转和头像旋转动画。
使用方法
模板:MCPlayerList 模板:MCPlayerList 模板:MCPlayerList 模板:MCPlayerList
参数说明
- start=1 - 放在列表开头,用于初始化网格容器
- end=1 - 放在列表结尾,用于闭合网格容器
- name (必填) - 玩家名称(链接目标)
- chinese (选填) - 中文介绍
- english (选填) - 英文介绍
- image (选填) - 头像图片URL
效果特点
- 横向卡片布局,左侧头像+右侧文字
- 点击卡片任意位置跳转至玩家页面
- 点击时头像会旋转360°动画
- 自动网格排列,适配不同屏幕宽度
- 悬停时卡片轻微上浮+阴影加深