Difference between revisions of "Template:Fix-span"
Jump to navigation
Jump to search
imported>Ahecht (Darken text color from #888 to #595959, which is the lightest color that passes WCAG AAA) |
imported>DMacks (Do not display the highlighted box if there is no text to put in it) |
||
| Line 1: | Line 1: | ||
| − | <span class="{{{span-class|cleanup-needed-content}}}" style="padding-left:0.1em; padding-right:0.1em; color:#595959; border:1px solid #DDD;">{{{content|}}}</span>{{#switch:{{{subst|¬}}} | + | {{#if:{{{content|}}}|<span class="{{{span-class|cleanup-needed-content}}}" style="padding-left:0.1em; padding-right:0.1em; color:#595959; border:1px solid #DDD;">{{{content|}}}</span>}}{{#switch:{{{subst|¬}}} |
|¬={{category handler | |¬={{category handler | ||
|template=[[Category:Templates needing substitution checking]] | |template=[[Category:Templates needing substitution checking]] | ||
Latest revision as of 09:01, 9 July 2018
| This template is used on approximately 45,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
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
| The above documentation is transcluded from Template:Fix-span/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |