Difference between revisions of "Template:Fix-span/doc"

From Embroidery Machine WIKI
Jump to navigation Jump to search
m (1 revision)
 
(No difference)

Latest revision as of 16:20, 30 July 2013

{{#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:Fix-span.
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:Fix-span
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

This meta-template is just like {{fix}} with three exceptions:

  • It takes a content parameter containing wikitext to be placed within a <source lang=html4strict enclose=none></source> element before the superscripted notice.
  • It takes a span-class parameter specifying the HTML class name for the <source lang=html4strict enclose=none></source> element.
  • It gives special priority over text rather than the other way around.

The spanned content is displayed like this.

This is a separate template for now because this is an idea imported from the Italian Wikipedia (q.v.). Eventually, if this idea takes off, this mechanism could be folded into {{fix}}.

See also