Template:Fix-span: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Uncle G
(Added default.)
meta>Uncle G
(Swapped category generation and span. Made span class parameterizable. Made span disappear if no content parameter supplied.)
Line 1: Line 1:
{{cat handler
{{#if:{{{content|}}}|<span class="{{{span-class|cleanup-needed-content}}}" style="background:Cornsilk; color:SlateGray;">{{{content|}}}</span>|}}{{#if:{{{special|}}}
|{{{special|}}}
|<sup class="{{{class|noprint Inline-Template}}}" title="{{{title|}}}{{#if:{{{date|}}}
  |<nowiki/> from {{{date}}}
  }}" style="white-space:nowrap;">&#91;<i>{{#if:{{{pre-text|}}}
  |{{{pre-text}}}&#32;
  }}[[{{{link|Wikipedia:Cleanup}}}|{{{text|cleanup needed}}}]]{{#if:{{{post-text|}}}
  |&#32;{{{post-text}}}
}}</i>&#93;</sup>
}}{{cat handler
  |main={{{cat|[[Category:All pages needing cleanup]]}}}{{#if:{{{cat-date|}}}
  |main={{{cat|[[Category:All pages needing cleanup]]}}}{{#if:{{{cat-date|}}}
   |[[{{{cat-date}}} {{#if:{{{date|}}}
   |[[{{{cat-date}}} {{#if:{{{date|}}}
Line 10: Line 19:
  }}
  }}
  |subpage=no
  |subpage=no
}}<span class="citation-needed-content" style="background:Cornsilk; color:SlateGray;">{{{content|}}}</span>{{#if:{{{special|}}}
|{{{special|}}}
|<sup class="{{{class|noprint Inline-Template}}}" title="{{{title|}}}{{#if:{{{date|}}}
  |<nowiki/> from {{{date}}}
}}" style="white-space:nowrap;">&#91;<i>{{#if:{{{pre-text|}}}
  |{{{pre-text}}}&#32;
}}[[{{{link|Wikipedia:Cleanup}}}|{{{text|cleanup needed}}}]]{{#if:{{{post-text|}}}
  |&#32;{{{post-text}}}
}}</i>&#93;</sup>
}}<noinclude>
}}<noinclude>
{{Documentation}}
{{Documentation}}
<!-- Add cats and interwikis to the /doc subpage, not here! -->
<!-- Add cats and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 09:01, 4 November 2010

[cleanup needed]Template:Cat handler