Difference between revisions of "Template:asic"
Firestar233 (talk | contribs) (this should make it work in italicised text blocks) |
|||
| Line 7: | Line 7: | ||
Display options for [sic] linked, unlinked(default) or hidden. | Display options for [sic] linked, unlinked(default) or hidden. | ||
| β | -->{{#if:{{{hide|}}}|| [ | + | -->{{#if:{{{hide|}}}||<span style="font-style:normal"> [<i>{{#if:{{{nolink|}}}|sic|{{w|sic}}}}{{#ifeq:{{{1|}}}|?|?}}</i>]</span>}}<!-- |
Categorisation options. Currently disabled - see [[Help talk:CS1 errors/Archive 1#%7B%7Bsic%7C?%7Cnolink=y%7D%7D]] | Categorisation options. Currently disabled - see [[Help talk:CS1 errors/Archive 1#%7B%7Bsic%7C?%7Cnolink=y%7D%7D]] | ||
| Line 16: | Line 16: | ||
It can normally take two parameters that are word fragments to obfuscate the text from automated correction systems. <!-- Looks like it also needs to be explained how the "?" and "nolink=..." options work (as demonstrated per examples, though note that "nolink=y" can clearly be "nolink=n" or "nolink=anythingYouDarnWish", almost, and do the same thing), and "hide=...whatever..." (obvious enough from inspecting the code, clearly for marking only at the editing level, but a completely undocumented feature at this point and might be better also with a "reason=", unless intendd to be like "FooBaz{{asic|hide=Do *not* 'correct' this to FooBar, this is how Randall wrote it!}}"). Also, perhaps make it very clear that {{asic}} is entirely sufficient on its own. --> | It can normally take two parameters that are word fragments to obfuscate the text from automated correction systems. <!-- Looks like it also needs to be explained how the "?" and "nolink=..." options work (as demonstrated per examples, though note that "nolink=y" can clearly be "nolink=n" or "nolink=anythingYouDarnWish", almost, and do the same thing), and "hide=...whatever..." (obvious enough from inspecting the code, clearly for marking only at the editing level, but a completely undocumented feature at this point and might be better also with a "reason=", unless intendd to be like "FooBaz{{asic|hide=Do *not* 'correct' this to FooBar, this is how Randall wrote it!}}"). Also, perhaps make it very clear that {{asic}} is entirely sufficient on its own. --> | ||
| + | |||
| + | The first parameter can be set to a "?" to append a "?" within the | ||
If the template is to be embedded within italicized text (<nowiki>'' quote ''</nowiki>), the way to make it display properly with the brackets non-italicized and the sic italicized is to add a parameter that just has <nowiki>''</nowiki> in it, or add <nowiki>''</nowiki> to the last parameter if two are already given, and place <nowiki>''</nowiki> after the template call. <!-- *That* sounds like a complex explanation I can see why (the inclusion of the pre-[sic] param(s), so that "<i>...italics FRAG-MENTS</i> [<i>Sic</i>]<i> more-itals</i> flips out-and-in/in-and-out accordingly) but it perhaps looks like far more trouble than it is worth, as currently suggested it be used. --> | If the template is to be embedded within italicized text (<nowiki>'' quote ''</nowiki>), the way to make it display properly with the brackets non-italicized and the sic italicized is to add a parameter that just has <nowiki>''</nowiki> in it, or add <nowiki>''</nowiki> to the last parameter if two are already given, and place <nowiki>''</nowiki> after the template call. <!-- *That* sounds like a complex explanation I can see why (the inclusion of the pre-[sic] param(s), so that "<i>...italics FRAG-MENTS</i> [<i>Sic</i>]<i> more-itals</i> flips out-and-in/in-and-out accordingly) but it perhaps looks like far more trouble than it is worth, as currently suggested it be used. --> | ||
| Line 28: | Line 30: | ||
::produces | ::produces | ||
:''Lorem ipsum dolor sit amet{{asic|''}}'', consectetur adipiscing elit'' | :''Lorem ipsum dolor sit amet{{asic|''}}'', consectetur adipiscing elit'' | ||
| + | *<nowiki>''Lorem ipsum dolor sit amet{{asic}}, consectetur adipiscing elit''</nowiki> | ||
| + | ::produces | ||
| + | :''Lorem ipsum dolor sit amet{{asic}}, consectetur adipiscing elit'' | ||
*<nowiki>''Lorem ipsum dolor sit {{asic|am|et''}}'', consectetur adipiscing elit''</nowiki> | *<nowiki>''Lorem ipsum dolor sit {{asic|am|et''}}'', consectetur adipiscing elit''</nowiki> | ||
::produces | ::produces | ||
Revision as of 05:50, 11 February 2025
Prints an actual [sic] indicator. Taken from Template:sic. The abbreviation "asic" is for "Actual SIC", like {{acn}} is an abbreviated alias of the {{Actual citation needed}} template.
It can normally take two parameters that are word fragments to obfuscate the text from automated correction systems.
The first parameter can be set to a "?" to append a "?" within the
If the template is to be embedded within italicized text ('' quote ''), the way to make it display properly with the brackets non-italicized and the sic italicized is to add a parameter that just has '' in it, or add '' to the last parameter if two are already given, and place '' after the template call.
Examples
- ''Lorem ipsum dolor sit amet{{asic|''}}'', consectetur adipiscing elit''
- produces
- Lorem ipsum dolor sit amet [sic], consectetur adipiscing elit
- ''Lorem ipsum dolor sit amet{{asic}}, consectetur adipiscing elit''
- produces
- Lorem ipsum dolor sit amet [sic], consectetur adipiscing elit
- ''Lorem ipsum dolor sit {{asic|am|et''}}'', consectetur adipiscing elit''
- produces
- Lorem ipsum dolor sit amet [sic], consectetur adipiscing elit
- ''Lorem ipsum dolor sit {{asic|?|am|et''}}'', consectetur adipiscing elit''
- produces
- Lorem ipsum dolor sit amet [sic?], consectetur adipiscing elit
- ''Lorem ipsum dolor sit {{asic|am|et''|nolink=y}}'', consectetur adipiscing elit''
- produces
- Lorem ipsum dolor sit amet [sic], consectetur adipiscing elit
