Difference between revisions of "Template:Fix-span"

From blackwiki
Jump to navigation Jump to search
imported>Czarkoff
(Implemented less parser-heavy version from sandbox)
imported>Nnemo
(Reinstating the fix of the bug of mishandling of the param "title" when it contains a character ")
Line 21: Line 21:
 
  |<sup class="noprint Inline-Template {{{class|}}}" style="white-space:nowrap;">&#91;<i>{{#if:{{{pre-text|}}}
 
  |<sup class="noprint Inline-Template {{{class|}}}" style="white-space:nowrap;">&#91;<i>{{#if:{{{pre-text|}}}
 
   |{{{pre-text}}}&#32;
 
   |{{{pre-text}}}&#32;
  }}[[{{{link|Wikipedia:Cleanup}}}|<span title="{{{title|{{{link|Wikipedia:Cleanup}}}}}}{{#if:{{{date|}}}|<nowiki/> ({{{date}}})}}">{{{text|}}}</span>]]{{#if:{{{post-text|}}}
+
  }}[[{{{link|Wikipedia:Cleanup}}}|<span title="{{replace|{{{title|{{{link|Wikipedia:Cleanup}}}}}}|"|&quot;}}{{#if:{{{date|}}}|<nowiki/> ({{{date}}})}}">{{{text|}}}</span>]]{{#if:{{{post-text|}}}
 
   |&#32;{{{post-text}}}
 
   |&#32;{{{post-text}}}
 
  }}</i>&#93;</sup>
 
  }}</i>&#93;</sup>

Revision as of 16:23, 23 August 2014

[]

Template documentation[view] [edit] [history] [purge]

This meta-template for inline cleanup/dispute template has the same purpose and parameters as {{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