这是测试站点!!!!
不要保存重要内容!不要保存重要内容!不要保存重要内容!不要保存重要内容!不要保存重要内容!
模板:SATURN风格消息框:修订间差异
来自Limbo Wiki
小无编辑摘要 标签:(旧)WikiEditor |
修正模板中的重要bug 标签:(旧)WikiEditor |
||
| 第1行: | 第1行: | ||
<includeonly><div style="display:inline-block; background-color:#1b2228; padding:12px; padding-top:30px; box-sizing:border-box; color:#ffffff; line-height:1.2; font-size:13px; position:relative; overflow:visible; vertical-align:middle;"><div style="position:absolute; top:0; left:0; width:100%; height:14px; background-color:rgba(13, 140, 187, 0.4); z-index:1;"></div><div style="position:absolute; top:-3px; left:0; background-color:#0d8cbb; color:white; font-weight:bold; padding:1px 15px 1px 8px; clip-path:polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%); font-size:11px; z-index:2; line-height:1.3;">{{{2|{{{标签|//MESSAGE}}}}}}</div><div style="position:relative; z-index:3; white-space:nowrap;">{{{1|{{{内容|}}}}}}</div>{{#if:{{{3|}}}|<table style="position:relative; z-index:3; margin-left:auto; margin-top:10px; border-collapse:collapse; background-color:transparent !important; border:none !important;"><tr><td style="background-color:transparent !important; border:none !important; padding:0; text-align:right; font-size:10px; white-space:nowrap;">[[用户:{{{3}}}{{!}}<span style="color:#ffffff;">{{{4|{{{3}}}}}}</span>]]<span style="color:#86c6dd;"> {{!}} </span>[[用户讨论:{{{3}}}{{!}}<span style="color:#b6ddeb;">×Saturn私信</span>]] [[特殊:用户贡献/{{{3}}}{{!}}<span style="color:#b6ddeb;">×贡献</span>]]</td></tr><tr><td style="background-color:transparent !important; border:none !important; padding:0; text-align:right; font-size:8px; color:#999999;">{{ | <includeonly><div style="display:inline-block; background-color:#1b2228; padding:12px; padding-top:30px; box-sizing:border-box; color:#ffffff; line-height:1.2; font-size:13px; position:relative; overflow:visible; vertical-align:middle;"><div style="position:absolute; top:0; left:0; width:100%; height:14px; background-color:rgba(13, 140, 187, 0.4); z-index:1;"></div><div style="position:absolute; top:-3px; left:0; background-color:#0d8cbb; color:white; font-weight:bold; padding:1px 15px 1px 8px; clip-path:polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%); font-size:11px; z-index:2; line-height:1.3;">{{{2|{{{标签|//MESSAGE}}}}}}</div><div style="position:relative; z-index:3; white-space:nowrap;">{{{1|{{{内容|}}}}}}</div>{{#if:{{{3|}}}|<table style="position:relative; z-index:3; margin-left:auto; margin-top:10px; border-collapse:collapse; background-color:transparent !important; border:none !important;"><tr><td style="background-color:transparent !important; border:none !important; padding:0; text-align:right; font-size:10px; white-space:nowrap;">[[用户:{{{3}}}{{!}}<span style="color:#ffffff;">{{{4|{{{3}}}}}}</span>]]<span style="color:#86c6dd;"> {{!}} </span>[[用户讨论:{{{3}}}{{!}}<span style="color:#b6ddeb;">×Saturn私信</span>]] [[特殊:用户贡献/{{{3}}}{{!}}<span style="color:#b6ddeb;">×贡献</span>]]</td></tr><tr><td style="background-color:transparent !important; border:none !important; padding:0; text-align:right; font-size:8px; color:#999999;">{{{5|2026年9月27日 (日) 20:03 (CST)}}}</td></tr></table>|}}</div></includeonly><noinclude> | ||
== 简介 == | == 简介 == | ||
这是一个通用的收藏品风格消息框模板,带有深色扁底、半透明侧边阴影,左上角附带可自定义的小标签。框内可填充任意 wikitext 文字。可选地,在框内右下角自动生成带时间戳的签名。 | 这是一个通用的收藏品风格消息框模板,带有深色扁底、半透明侧边阴影,左上角附带可自定义的小标签。框内可填充任意 wikitext 文字。可选地,在框内右下角自动生成带时间戳的签名。 | ||
== 使用方法 == | == 使用方法 == | ||
'''请使用 subst 调用''',否则时间不会固定: | |||
<pre>{{subst:SATURN风格消息框|框内内容|标签文字|真实用户名|显示别名}}</pre> | |||
<pre>{{SATURN风格消息框| | |||
* 参数1(别名“内容”):框内要显示的文字,支持 wikitext。 | * 参数1(别名“内容”):框内要显示的文字,支持 wikitext。 | ||
* 参数2(别名“标签”):左上角小标签的文字,默认“//MESSAGE”。 | * 参数2(别名“标签”):左上角小标签的文字,默认“//MESSAGE”。 | ||
* 参数3:'''可选''' | * 参数3:'''可选'''。填入真实用户名后,会自动生成签名与时间戳。 | ||
* 参数4(别名“别名”):'''可选''' | * 参数4(别名“别名”):'''可选'''。签名中显示的用户名将使用此别名,链接仍指向参数3。 | ||
== 为什么必须用 subst == | |||
本模板的时间部分默认为 <code>2026年9月27日 (日) 20:03 (CST)</code>(五个波浪号)。只有通过 <code>subst:</code> 替换引用时,<code>2026年9月27日 (日) 20:03 (CST)</code> 才会在保存时被替换为固定时间戳。若直接以 <code>{{SATURN风格消息框|...}}</code> 调用(不带 subst),<code>2026年9月27日 (日) 20:03 (CST)</code> 不会被展开,会原样显示或行为异常。 | |||
== 效果预览 == | == 效果预览 == | ||
| 第17行: | 第19行: | ||
* 自定义标签(无签名):{{SATURN风格消息框|内容=你好,世界!|标签=//NOTICE}} | * 自定义标签(无签名):{{SATURN风格消息框|内容=你好,世界!|标签=//NOTICE}} | ||
* 带签名(无别名):{{SATURN风格消息框|内容=这是一条带签名的消息|标签=//REPLY|3=汐际}} | * 带签名(无别名):{{SATURN风格消息框|内容=这是一条带签名的消息|标签=//REPLY|3=汐际}} | ||
* 带签名(有别名):{{SATURN风格消息框|内容=这是一条带签名的消息|标签=//REPLY|3=汐际|4= | * 带签名(有别名):{{SATURN风格消息框|内容=这是一条带签名的消息|标签=//REPLY|3=汐际|4=小汐}} | ||
<templatedata> | <templatedata> | ||
| 第25行: | 第27行: | ||
"aliases": ["内容"], | "aliases": ["内容"], | ||
"required": true, | "required": true, | ||
"label": "框内内容 | "label": "框内内容" | ||
}, | }, | ||
"2": { | "2": { | ||
"aliases": ["标签"], | "aliases": ["标签"], | ||
"required": false, | "required": false, | ||
"label": "左上角标签 | "label": "左上角标签" | ||
}, | }, | ||
"3": { | "3": { | ||
"required": false, | "required": false, | ||
"label": "签名真实用户名 | "label": "签名真实用户名" | ||
}, | }, | ||
"4": { | "4": { | ||
"aliases": ["别名"], | "aliases": ["别名"], | ||
"required": false, | "required": false, | ||
"label": "签名显示别名", | "label": "签名显示别名" | ||
" | }, | ||
"5": { | |||
"required": false, | |||
"label": "时间戳(默认 ~~~~~)" | |||
} | } | ||
}, | }, | ||
2026年9月27日 (日) 20:03的版本
简介
这是一个通用的收藏品风格消息框模板,带有深色扁底、半透明侧边阴影,左上角附带可自定义的小标签。框内可填充任意 wikitext 文字。可选地,在框内右下角自动生成带时间戳的签名。
使用方法
请使用 subst 调用,否则时间不会固定:
{{subst:SATURN风格消息框|框内内容|标签文字|真实用户名|显示别名}}
- 参数1(别名“内容”):框内要显示的文字,支持 wikitext。
- 参数2(别名“标签”):左上角小标签的文字,默认“//MESSAGE”。
- 参数3:可选。填入真实用户名后,会自动生成签名与时间戳。
- 参数4(别名“别名”):可选。签名中显示的用户名将使用此别名,链接仍指向参数3。
为什么必须用 subst
本模板的时间部分默认为 2026年9月27日 (日) 20:03 (CST)(五个波浪号)。只有通过 subst: 替换引用时,2026年9月27日 (日) 20:03 (CST) 才会在保存时被替换为固定时间戳。若直接以
//MESSAGE... 调用(不带 subst),2026年9月27日 (日) 20:03 (CST) 不会被展开,会原样显示或行为异常。
效果预览
- 仅内容(无签名)://MESSAGE这是一段纯消息内容
- 自定义标签(无签名)://NOTICE你好,世界!
- 带签名(无别名):
- 带签名(有别名):
无描述。
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| 框内内容 | 1 内容 | 无描述 | 未知 | 必需 |
| 左上角标签 | 2 标签 | 无描述 | 未知 | 可选 |
| 签名真实用户名 | 3 | 无描述 | 未知 | 可选 |
| 签名显示别名 | 4 别名 | 无描述 | 未知 | 可选 |
| 时间戳(默认 ~~~~~) | 5 | 无描述 | 未知 | 可选 |
