Hytale Wiki

中文翻译项目已经上线,欲要参与本计划的用户请见中文Hytale Wiki本地化项目阅读详请。

了解更多

Hytale Wiki
Angrydog001讨论 | 贡献
(// Edit via Wikiplus)
SQwatermark讨论 | 贡献
(更新至英文wiki的进度)
第1行: 第1行:
{{#vardefine: type
+
<includeonly>{{#vardefine: color
 
| {{#switch: {{{type|}}}
 
| {{#switch: {{{type|}}}
 
| notice = blue
| notice | stub | issue | mild issue | mild-issue | issue-mild | serious issue | serious-issue | issue-serious | technical | default = color
 
| = null
+
| style | stub = yellow
| #default = text
+
| technical | move = purple
 
| issue | mild issue | minor issue | content issue | content = orange
 
| serious issue | major issue | deletion | warning = red
 
| #default = green
 
}}
 
}}
  +
}}<div
}}{{#vardefine: color
 
  +
style="{{#if: {{{inline|}}} | display: inline-flex; width: auto; | display: flex; }}{{{style|}}}"
| {{#switch: {{{type|}}}
 
  +
class="plainlinks ambox ambox-{{#var:color}} {{{class|}}}"
| notice = blue
 
 
> {{#ifeq: {{{image|}}} | none ||
| stub = yellow
 
  +
<div class="nomobile ambox-image">[[File:{{{image|Information.svg}}}|{{{size| {{#if:{{{inline|}}}|24px|48px}} }}}|alt=]]</div>
| technical = purple
 
 
}}
| default = green
 
 
<div class="ambox-text">{{{title|}}}{{
| issue | issue-mild | mild-issue | mild issue = orange
 
 
#if: {{{info| {{{text|}}} }}} |
| issue-serious | serious-issue | serious issue = red
 
 
<div class="amsmalltext">
 
{{{info|{{{text}}} }}}
 
</div>
 
}}
 
}}
}}<includeonly><table style="{{{style|}}}" class="nomobile plainlinks ambox {{#ifeq:{{{format|}}}|tiny|ambox-tiny}} ambox-{{
 
#if: {{{border|{{{color|}}}}}} | {{{border|{{{color}}}}}} | {{#var:color}}
 
}} {{{class|}}}">
 
<tr>
 
<td class="ambox-image">{{{image|[[File:{{{icon|{{{img|Information.png}}} }}}|{{
 
#ifeq: {{{format|}}} | tiny | x20px |{{
 
#if: {{{size|}}} | {{{size}}} | 48px
 
}} }}|alt=]]}}}
 
</td>
 
<td class="ambox-text">{{
 
#ifeq: {{#var:type}} | text | {{{type}}} | {{{title|}}}
 
}}{{
 
#if:{{{info|{{{text|}}} }}}|{{
 
#ifeq:{{{format|}}}|tiny||<div class="amsmalltext">
 
{{{info|{{{text|}}}}}}
 
</div>}}}}
 
</td>
 
</tr>
 
</table>
 
<div class="mobileonly plainlinks" style="text-align: center">
 
{{#ifeq: {{#var:type}} | text | '''{{{type}}}''' | {{#if: {{{title|}}} | <strong>{{{title|}}}</strong> }} }}<br>
 
{{{info|{{{text|}}} }}}
 
<hr/>
 
 
</div>
 
</div>
</includeonly><noinclude>
+
</div></includeonly><noinclude>{{doc}}</noinclude>
{{doc}}
 
[[Category:通知模板]]
 
</noinclude><noinclude>
 
 
</noinclude>
 

2020年10月1日 (四) 14:48的版本

Template-info.png文档

The template is a generic notice template.

Parameters
  • {{{image}}}: image file name for use on the left, e.g. "Stub.png"
  • {{{title}}}: top line text
  • {{{text}}}: list of extra info
  • {{{type}}}: border colour
    • deletion: red
    • stub: yellow
    • default: green
    • technical: purple
    • notice: blue
    • issue: orange
    • other: gray
  • {{{inline}}}: display the ambox left aligned and small
  • {{{style}}} extra style parameters
Examples
{{Ambox|title=Title|text=Text}}: {{Ambox|type=issue|title=Title|text=Text}}: {{Ambox|title=I am inline|image=Icon-template.png|inline=true}}: