Template:Redact2
# # # # # # # #
Rationale Edit
This template is designed for representing sections of blocked-out ("redacted") text. It is similar to the {{redact}} template but has more options, wraps like normal text, and degrades gracefully in color-free or non-CSS situations.
Advantages Edit
- Bar color and/or bar outline color can be specified
- Bar can wrap across multiple lines; no running off the right side of the window or page
- Provides a textual representation (# # # # #) for HTML clients without CSS or color capability
Disadvantages Edit
- Unit of measure for bar extent is not precisely defined, so some trial and error may be required in layout
- Bar extent has an upper limit (although this can be adjusted in the template code)
Examples Edit
{{redact2}} {{redact2|12}} {{redact2|color=red}} {{redact2|32|color=white|bordercolor=black}}
Parameters Edit
- first, unnamed parameter = size, in units slightly less than 1 em (default: 8; sizes greater than 400 are truncated)
- color = bar color (default: black)
- bordercolor = bar outline color (default: none)
See also Edit
The above documentation is transcluded from Template:Redact2/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |