Template:Spaces/doc

From Embroidery Machine WIKI
Jump to navigation Jump to search

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

         | {{
 {{#invoke:Namespace detect|main}}

| type = notice | image = File:Edit-copy green.svg | imageright = | class = | style = margin-bottom:1.0em; | textstyle = | text = This is a documentation subpage for Template:Spaces.
It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Template |User |template template page |{{#if:Template |template page|article}}}}}}}}. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }}

        }}{{#if: |
         |   {{#ifexist:Template:Spaces
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

{{#invoke:Lua banner|main}}

Template to produce single or multiple non-breaking spaces (" "s).

Syntax
{{spaces|N}}
where the optional parameter N is the desired number of consecutive non-breaking spaces (numeric, with a range of 1 and larger).
{{spaces}}
produces a single non-breaking space. You may also use {{nbsp}} (which redirects to this template) as a shortcut for a single non-breaking space.

Template data

<templatedata> {

   "description": "Inserts one or more non-breaking spaces",
   "params": {
       "1": {
           "label": "Quantity",
           "description": "How many non non-breaking spaces to insert",
           "type": "number",
           "default": "1"
       }
   }

} </templatedata>

See also

  • {{pad}}; add spacing in px, em or ex