Template:Abbr

From Moegirlpedia
Revision as of 22:55, 15 March 2022 by LiaMinina (talk | contribs) (Created page with "<abbr {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} title="{{#tag:nowiki|{{#invoke:String|replace|{{{2|}}}|...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

Short for "abbreviation", this template is used to represent English abbreviations. It acts like the HTML <abbr> tag.

Usage

{{abbr}} has two unnamed parameters, in order:

  1. Abbreviated form: This form is displayed on the page with a dotted underline.
  2. Full form: Many web browsers display the full form in the popup window when the user moves the mouse cursor over the abbreviated form.

Example

{{abbr
| MSLP
| Mean Sea Level Pressure
}}

Will be displayed as MSLP. When you hover the mouse over the text, Mean Sea Level Pressure will be displayed in a pop-up window.

Metadata

{
        "description": "用於表示英文縮寫",
        "params": {
                "1": {
                        "label": "縮寫形",
                        "required": true,
                        "description": "該形在頁面上以文字加虛線底線顯示。"
                },
                "2": {
                        "label": "完整形",
                        "required": true,
                        "description": "許多網頁瀏覽器在使用者滑鼠游標移動到縮寫形上會把完整形顯示於快顯視窗。"
                }
        },
        "sets": [
                {
                        "label": "參數",
                        "params": ["1", "2"]
                }
        ]
}