Hytale Wiki

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

了解更多

Hytale Wiki
SQwatermark讨论 | 贡献
(更新至英文wiki的进度)
Magiczocker讨论 | 贡献
第1行: 第1行:
  +
<div class="{{#ifeq:{{{format|}}}|tiny|ambox-tiny|ambox}} {{#switch:{{{border|}}}
<includeonly>{{#vardefine: color
 
  +
| notice = ambox-blue
| {{#switch: {{{type|}}}
 
| notice = blue
+
| style | stub = ambox-yellow
| style | stub = yellow
+
| technical | move = ambox-purple
  +
| issue | mild issue | minor issue | content issue | content = ambox-orange
| technical | move = purple
 
| issue | mild issue | minor issue | content issue | content = orange
+
| serious issue | major issue | deletion | warning = ambox-red
 
| #default = ambox-green
| serious issue | major issue | deletion | warning = red
 
 
}}"><span class="ambox-image">{{{image|[[File:{{{icon|Information.svg}}}{{!}}{{{size|48px}}}|{{#ifeq:{{{format|}}}|tiny|x20px}}|alt=|link=]]}}}</span><!--
| #default = green
 
 
--><span class="ambox-type">{{{type}}}{{#if: {{{info|}}}
}}
 
 
| {{#ifeq: {{{format|}}} | tiny
}}<div
 
  +
|
style="{{#if: {{{inline|}}} | display: inline-flex; width: auto; | display: flex; }}{{{style|}}}"
 
class="plainlinks ambox ambox-{{#var:color}} {{{class|}}}"
+
| <span class="ambox-info">{{{info}}}</span>
 
}}
> {{#ifeq: {{{image|}}} | none ||
 
 
}}</span></div><noinclude>{{Doc}}</noinclude>
<div class="nomobile ambox-image">[[File:{{{image|Information.svg}}}|{{{size| {{#if:{{{inline|}}}|24px|48px}} }}}|alt=]]</div>
 
}}
 
<div class="ambox-text">{{{title|}}}{{
 
#if: {{{info| {{{text|}}} }}} |
 
<div class="amsmalltext">
 
{{{info|{{{text}}} }}}
 
</div>
 
}}
 
</div>
 
</div></includeonly><noinclude>{{doc}}</noinclude>
 

2021年10月2日 (六) 06:38的版本

{{{type}}}
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}}:
{{{type}}}
{{Ambox|type=issue|title=Title|text=Text}}:
issue
{{Ambox|title=I am inline|image=Icon-template.png|inline=true}}:
Icon-template.png{{{type}}}