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

From blackwiki
Jump to navigation Jump to search
imported>Redrose64
(→‎top: span is an element; <span> is a tag)
imported>Nnemo
(Element. The subject here is the "span" element. Its opening tag is just a technical form, uninteresting. Saying "span" element, like in the first item of the list, and with a link.)
Line 4: Line 4:
 
This meta-template is just like {{tl|fix}} with three exceptions:
 
This meta-template is just like {{tl|fix}} with three exceptions:
 
* It takes a <tt>content</tt> parameter containing wikitext to be placed within a {{tag|span}} element before the superscripted notice.
 
* It takes a <tt>content</tt> parameter containing wikitext to be placed within a {{tag|span}} element before the superscripted notice.
* It takes a <tt>span-class</tt> parameter specifying the [[HTML]] class name for the {{tag|span|o}} tag.
+
* It takes a <tt>span-class</tt> parameter specifying the [[HTML]] class name for the [[Span element in HTML|{{tag|span|o}} element]].
 
* It gives <tt>special</tt> priority over <tt>text</tt> rather than the other way around.
 
* It gives <tt>special</tt> priority over <tt>text</tt> rather than the other way around.
  

Revision as of 17:29, 6 June 2014

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

  • It takes a content parameter containing wikitext to be placed within a <span>...</span> element before the superscripted notice.
  • It takes a span-class parameter specifying the HTML class name for the <span> 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