Template:Memo/doc: Difference between revisions
Content added Content deleted
SecurityXP (talk | contribs) m (1 revision imported: Template) Tags: Mobile edit Mobile web edit |
SecurityXP (talk | contribs) 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| |
# {{Memo}}{{Tlx|Memo}}{{Hidden item|{{Memo|Prompt content|inline:}}}} |
||
# {{Memo|{{Tlx|Memo| |
# {{Memo|{{Tlx|Memo|Prompt content|inline:}}|inline:}} |
||
# {{Memo|{{Tlx|Memo| |
# {{Memo|{{Tlx|Memo|Prompt content|bookmark}}|bookmark}} |
||
# {{Memo|{{Tlx|Memo| |
# {{Memo|{{Tlx|Memo|Prompt content|inline:alert}}|inline:alert}} |
||
# {{Memo|{{Tlx|Memo| |
# {{Memo|{{Tlx|Memo|Prompt content|notice}}|notice}} |
||
# {{Memo|{{Tlx|Memo| |
# {{Memo|{{Tlx|Memo|Prompt content|inline:error}}|inline:error}} |
||
# {{Memo|{{Tlx|Memo| |
# {{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
Template:Strong for Template:Memo. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses TemplateStyles: |
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.