Template:Memo/doc: Difference between revisions

From TestWiki
Content added Content deleted
m (1 revision imported: Template)
Tags: Mobile edit Mobile web edit
No edit summary
 
Line 1: Line 1:
{{NoteTA/MediaWiki}}
{{Documentation subpage}}
{{Documentation subpage}}
{{Uses TemplateStyles|Template:Memo/styles.css|Template:Memo/icons.css}}
{{Uses TemplateStyles|Template:Memo/styles.css|Template:Memo/icons.css}}


== 簡介 ==
== Introduction ==
Use this template to generate prompt messages.
使用此模板產生提示訊息。


== 參數及使用方法 ==
== Parameters and usage ==
* {{IFUT|Memo|Prompt content|Prompt type}}:Inline-level elements, the subsequent content will be displayed in a new line.
* {{IFUT|Memo|提示內容|提示類型}}:區塊級元素,後續內容換行顯示。
* {{IFUT|Memo|Prompt content|inline:Prompt type}}:Inline-level elements, the subsequent content will not be displayed in a new line.
* {{IFUT|Memo|提示內容|inline:提示類型}}:行內級元素,後續內容不換行顯示。


== 範例 ==
== Example ==
# {{Memo}}{{Tlx|Memo}}{{Hidden item|{{Memo|提示內容|inline:}}}}
# {{Memo}}{{Tlx|Memo}}{{Hidden item|{{Memo|Prompt content|inline:}}}}
# {{Memo|{{Tlx|Memo|提示內容|inline:}}|inline:}}
# {{Memo|{{Tlx|Memo|Prompt content|inline:}}|inline:}}
# {{Memo|{{Tlx|Memo|提示內容|bookmark}}|bookmark}}
# {{Memo|{{Tlx|Memo|Prompt content|bookmark}}|bookmark}}
# {{Memo|{{Tlx|Memo|提示內容|inline:alert}}|inline:alert}}
# {{Memo|{{Tlx|Memo|Prompt content|inline:alert}}|inline:alert}}
# {{Memo|{{Tlx|Memo|提示內容|notice}}|notice}}
# {{Memo|{{Tlx|Memo|Prompt content|notice}}|notice}}
# {{Memo|{{Tlx|Memo|提示內容|inline:error}}|inline:error}}
# {{Memo|{{Tlx|Memo|Prompt content|inline:error}}|inline:error}}
# {{Memo|{{Tlx|Memo|提示內容|check}}|check}}
# {{Memo|{{Tlx|Memo|Prompt content|check}}|check}}

== 參數資料 ==
{{TemplateData header}}
<templatedata>
{
"params": {
"1": {
"label": "提示內容",
"description": "欲顯示的提示內容。",
"type": "content",
"required": true
},
"2": {
"label": "提示類型",
"description": "變更背景色和圖示。",
"type": "string",
"suggested": true,
"example": "inline:check"
}
}
}
</templatedata>

Latest revision as of 11:20, 4 October 2020

Introduction[edit]

Use this template to generate prompt messages.

Parameters and usage[edit]

  • {{MemoScript error: No such module "TemplateParameters".}}:Inline-level elements, the subsequent content will be displayed in a new line.
  • {{MemoScript error: No such module "TemplateParameters".}}:Inline-level elements, the subsequent content will not be displayed in a new line.

Example[edit]

  1. 注意 Attentions:{{Memo}}
    Prompt content
  2. {{Memo|Prompt content|inline:}}
  3. {{Memo|Prompt content|bookmark}}
  4. {{Memo|Prompt content|inline:alert}}
  5. {{Memo|Prompt content|notice}}
  6. {{Memo|Prompt content|inline:error}}
  7. {{Memo|Prompt content|check}}