您似乎还未注册一个账号?我们强烈推荐您点击此处创建一个账户。|如果您在H萌娘上发现某些内容错误/空缺/不中立,请勇于按右上角编辑按钮!

Template:Userpage:修订间差异

H萌娘,万物皆可H的百科全书!
跳转到导航 跳转到搜索
StellralMist留言 | 贡献
无编辑摘要
StellralMist留言 | 贡献
无编辑摘要
 
(未显示同一用户的2个中间版本)
第32行: 第32行:
             </div>
             </div>
              
              
             <!-- 右侧头像区域 -->
             <!-- 右侧头像区域 - 使用标准的File语法 -->
             <div style="text-align: center; margin-left: 20px;">
             <div style="text-align: center; margin-left: 20px;">
                 {{#if:{{{用户头像|}}}
                 {{#if:{{{用户头像|}}}
                     |<img src="{{{用户头像}}}" style="width: 120px; height: 120px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.2);" alt="用户头像" />
                     |<div style="width: 120px; height: 120px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.2); overflow: hidden; display: flex; align-items: center; justify-content: center;">
                        [[File:{{{用户头像}}}|120x120px|class=user-avatar]]
                      </div>
                     |<div style="width: 120px; height: 120px; border-radius: 50%; border: 4px solid #fff; background: rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2); font-size: 40px; color: #ccc;">?</div>
                     |<div style="width: 120px; height: 120px; border-radius: 50%; border: 4px solid #fff; background: rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2); font-size: 40px; color: #ccc;">?</div>
                 }}
                 }}
第51行: 第53行:
     </div>
     </div>
      
      
     <!-- 底部导航 - 修复链接 -->
     <!-- 底部导航 -->
     <div style="display: flex; justify-content: center; margin-top: 25px; border-top: 1px solid rgba(255,255,255,0.5); padding-top: 15px;">
     <div style="display: flex; justify-content: center; margin-top: 25px; border-top: 1px solid rgba(255,255,255,0.5); padding-top: 15px;">
         <div style="display: flex; gap: 20px; flex-wrap: wrap;">
         <div style="display: flex; gap: 20px; flex-wrap: wrap;">
第61行: 第63行:
     </div>
     </div>
</div>
</div>
</includeonly>
</includeonly>

2025年8月23日 (六) 18:05的最新版本

模板文档  [查看] [编辑] [历史] [刷新]

这是一个用于H萌娘Wiki用户页的二次元风格顶部横幅模板。该模板设计精美,包含渐变背景、装饰元素和用户信息展示区域,适合作为用户页的顶部引导区域。

在用户页面中使用以下语法:

{{Userpage
|用户昵称      = 
|用户头像      = 
|称号          = 
|个性签名      = 
|加入时间      = 
|编辑数        = 
|用户组        = 
|在线状态      = 
}}

参数说明

[编辑源代码]
参数 说明 是否必填 默认值
用户昵称 用户的昵称或爱称 可选
用户头像 用户头像的URL 可选 显示默认占位图
称号 用户的称号或头衔 可选
个性签名 用户的个性签名或座右铭 可选
加入时间 用户加入Wiki的时间 可选
编辑数 用户的编辑次数 可选
用户组 用户所在的用户组 可选
在线状态 用户的在线状态(在线/离线) 可选

基本用法

[编辑源代码]
{{Userpage
|用户昵称 = 星尘雾
|用户头像 = StellralMist-avatar.jpg
|称号 = 星空魔法使
|个性签名 = 「星空の霧が漂い、幻想の扉を開く」
|加入时间 = 2025年8月
|编辑数 = idk
|用户组 = 用户
|在线状态 = 在线
}}

效果预览

[编辑源代码]

StellralMist (星尘雾)

「星空魔法使」
「星空の霧が漂い、幻想の扉を開く」
                   加入时间: 2025年8月
                   编辑数: idk
                   用户组: 用户
?
                   ● 在线
           <a href="#" style="color: #ff4a8d; text-decoration: none; font-weight: bold;">主页</a>
           <a href="#" style="color: #5c6bc0; text-decoration: none; font-weight: bold;">讨论页</a>
           <a href="#" style="color: #26a69a; text-decoration: none; font-weight: bold;">贡献</a>
           <a href="#" style="color: #ffa726; text-decoration: none; font-weight: bold;">监视列表</a>


注意事项

[编辑源代码]
  • 在线状态参数只能填写"在线"或"离线",其他值将不会显示状态指示器
  • 模板会自动获取当前用户名,无需填写用户名参数

相关模板

[编辑源代码]