Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
Template:Strip invisible characters/doc
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
Template
Discussion
More
More
Page actions
Read
Edit source
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
This template is designed to delete invisible characters within wikitext and uses substitution to do this. ==Usage== <code><nowiki>{{Strip invisible characters|''text string''|''linebreak''}}</nowiki></code> Parameters: * text string - the wikitext you want to remove invisible characters from * linebreak - set to yes if you want to preserve line breaks, set to no to replace line breaks with a single space character, defaults to yes ==Examples== *<nowiki>{{Strip invisible characters|text string}}</nowiki> → {{Strip invisible characters|text string}} *<nowiki>{{Strip invisible characters|adding soft hyphens to a very long word is a good idea, for example the longest word in the English language: pneumonoultramicroscoĀpicsilicovolcanoconiosis pneumonoultramicroscoĀpicsilicovolcanoconiosis pneumonoultramicroscoĀpicsilicovolcanoconiosis pneumonoultramicroscoĀpicsilicovolcanoconiosis pneumonoultramicroscoĀpicsilicovolcanoconiosis}}</nowiki> → {{Strip invisible characters|adding soft hyphens to a very long word is a good idea, for example the longest word in the English language: pneumonoultramicroscoĀpicsilicovolcanoconiosis pneumonoultramicroscoĀpicsilicovolcanoconiosis pneumonoultramicroscoĀpicsilicovolcanoconiosis pneumonoultramicroscoĀpicsilicovolcanoconiosis pneumonoultramicroscoĀpicsilicovolcanoconiosis}} *<nowiki>{{Strip invisible characters|text string}}</nowiki> → {{Strip invisible characters|text string}} *<nowiki>{{Strip invisible characters|text string|no}}</nowiki> → {{Strip invisible characters|text string|no}} ==Invisible characters list== The invisible characters checked for originally came from the list in [[Module:Citation/CS1/Configuration]]. The following invisible characters are removed: {| class="wikitable" |- ! Character !! Unicode !! Code string !! Replaced with |- | replacement || U+FFFD, EF BF BD || \239\191\189 || |- | zero width space || U+FFFD, EF BF BD || \226\128\139 || |- | zero width joiner || U+200B, E2 80 8B || \226\128\141 || |- | hair space || U+200A, E2 80 8A || \226\128\138 || |- | soft hyphen || U+00AD, C2 AD || \194\173 || ā <code>&shy;</code><br /> hyphen used to mark where to break long words |- | horizontal tab || U+0009 (HT), 09 || \009 || space |- | line feed || U+000A (LF), 0A || \010 || <<nowiki>br /></nowiki> (line break) |- | no-break space || U+00A0 (NBSP), C2 A0 || \194\160 || space |- | carriage return || U+000D (CR), 0D || \013 || <<nowiki>br /></nowiki> (line break) |- | delete || U+007F (DEL), 7F || \127 || |- | C0 control || || \000-\008\011\012\014-\031 || |- | C1 control || U+0000āU+001F (NULLāUS),<br /> 00ā1F (except HT, LF, CR (09, 0A, 0D)) || \194\128-\194\159 || |- |} ==See also == *{{t1|Substitution}} *{{t1|Cite journal}} *{{t1|Citation}} *[[Module:Citation/CS1]]
Summary:
Please make sure your edits are consistent with
MEpedia's guidelines
.
By saving changes, you agree to the
Terms of use
, and you irrevocably agree to release your contribution under the
CC BY-SA 3.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:MultiReplace
(
edit
)
Template:Strip invisible characters
(
edit
)
Template:T1
(
edit
)
Module:MultiReplace
(
edit
)
Navigation
Navigation
Skip to content
Main page
Browse
Become an editor
Random page
Popular pages
Abbreviations
Glossary
About MEpedia
Links for editors
Contents
Guidelines
Recent changes
Pages in need
Search
Help
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs