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

From blackwiki
Jump to navigation Jump to search
imported>Czarkoff
(Rebased on {{fix}})
 
imported>Czarkoff
(Don't include span if no content was provided)
Line 5: Line 5:
 
  }}
 
  }}
 
  |SUBST=[[Category:Pages with incorrectly substituted templates]]
 
  |SUBST=[[Category:Pages with incorrectly substituted templates]]
}}<span class="{{{span-class|cleanup-needed-content}}}" style="background-color: #fff9f9; color: DarkSlateGray; border: 1px solid #ffdcdc;">{{{content|}}}</span>{{Category handler
+
}}{{#if:{{{content|}}}|<span class="{{{span-class|cleanup-needed-content}}}" style="background-color: #fff9f9; color: DarkSlateGray; border: 1px solid #ffdcdc;">{{{content|}}}</span>}}{{Category handler
 
  |main={{Fix/category
 
  |main={{Fix/category
 
   |cat-date={{{cat-date|}}}  
 
   |cat-date={{{cat-date|}}}  

Revision as of 12:42, 27 June 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