Hytale Wiki

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

了解更多

Hytale Wiki
(Automated Import)
 
SQwatermark讨论 | 贡献
(复制英文页面)
 
第1行: 第1行:
 
{{doc/start}}
 
{{doc/start}}
   
The template is a notice template
+
The template is a generic notice template.
   
  +
;Parameters
===Named parameters===
 
:; |icon=: image file name for use on the left, e.g. "Stub.png"
+
*{{p|image}}: image file name for use on the left, e.g. "Stub.png"
 
*{{p|title}}: top line text
:; |image=: left (image) cell content, overrides <code>|icon=</code> if provided.
 
 
*{{p|text}}: list of extra info
:; |type=: top line text
 
  +
*{{p|type}}: border colour
:; |info=: list of extra info
 
  +
** deletion: red
:; |border=: border colour (defaults to green)
 
 
** stub: yellow
::; red : ambox-red (serious issue)
 
 
** default: green
::; yellow : ambox-yellow (mild issue)
 
  +
** technical: purple
::; green : ambox-green (good!)
 
  +
** notice: blue
::; purple : ambox-purple (technical change)
 
 
** issue: orange
::; blue : ambox-blue (notice)
 
  +
** other: gray
::; orange : ambox-orange (stub colour)
 
  +
*{{p|inline}}: display the ambox left aligned and small
::; gray : ambox-gray
 
 
*{{p|style}} extra style parameters
:; |format: <code>tiny</code> to display a small, left-aligned box showing only the <code>|type=</code> value; any other value displays the full ambox.
 
:; |style=: extra style parameters ''(unlikely to be used)''
 
   
== Examples ==
+
; Examples
  +
{{t|Ambox|title{{=}}Title|text{{=}}Text}}: {{Ambox|title=Title|text=Text}}
   
  +
{{t|Ambox|type{{=}}issue|title{{=}}Title|text{{=}}Text}}: {{Ambox|type=issue|title=Title|text=Text}}
=== Default ===
 
{{Ambox
 
| type = I am type
 
| info = I am info
 
}}
 
   
  +
{{t|Ambox|title{{=}}I am inline|image{{=}}Icon-template.png|inline{{=}}true}}:<br>{{Ambox|title=I am inline|image=Icon-template.png|inline=1}}
=== Tiny ===
 
{{Ambox
 
| type = I am tiny
 
| icon = Icon-template.png
 
| format = tiny
 
}}
 
   
 
{{doc/end}}
=== Red + image ===
 
{{Ambox
 
| image = [[Image:Icon-boilerplate.png]]
 
| border = red
 
| type = I am type
 
| info =
 
* I am info
 
}}
 
   
  +
<includeonly>[[Category: 通知模板]]</includeonly>
=== Yellow ===
 
{{Ambox
 
| border = yellow
 
| type = I am type
 
| info =
 
* I am info
 
}}
 
 
=== Green ===
 
{{Ambox
 
| border = green
 
| type = I am type
 
| info =
 
* I am info
 
}}
 
 
=== Purple ===
 
{{Ambox
 
| border = purple
 
| type = I am type
 
| info =
 
* I am info
 
}}
 
 
=== Blue ===
 
{{Ambox
 
| border = blue
 
| type = I am type
 
| info =
 
* I am info
 
}}
 
 
=== Orange ===
 
{{Ambox
 
| border = orange
 
| type = I am type
 
| info =
 
* I am info
 
}}
 
 
=== Gray ===
 
{{Ambox
 
| border = gray
 
| type = I am type
 
| info =
 
* I am info
 
}}
 
{{doc/end}}
 

2020年10月1日 (四) 14:49的最新版本

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