Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Function  





2 Simplest usage  





3 Adding formatting  





4 Examples  



4.1  Individual insertions  





4.2  Alternative syntax  







5 TemplateData  





6 See also  














Template:Soft hyphen






العربية

تۆرکجه
Basa Bali

Беларуская
Беларуская (тарашкевіца)

Български
Буряад
Català
Dansk
Español
فارسی
Føroyskt
Français
ГӀалгӀай


Bahasa Indonesia
Íslenska
Jawa

Latina
Македонски

Bahasa Melayu
Мокшень

Nederlands
Norsk bokmål

Русский
Scots
Simple English
سنڌي
Slovenščina
Српски / srpski
Srpskohrvatski / српскохрватски
Tagalog
 

Тоҷикӣ
Türkçe
اردو
Tiếng Vit
Yorùbá

 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

(Redirected from Template:Shy)

­

  • {{SHY}}
  • Function

    This template inserts ­, which is a U+00AD SOFT HYPHEN (­). A soft hyphen is an "optional" hyphen – a point at which a word may be broken over the end of a line, with a visible hyphen inserted at line end. The ultimate decision as to whether a particular word will be broken is made by the browser, and depends on a combination of text-layout heuristics, user preferences set in the browser, and hyphenation options embedded in the page being displayed. (Different browsers apply different heuristics, and some browsers ignore soft hyphens completely.)

    Simplest usage

    For example, if you want to add a break point to this word in a table header: Generation. Here is the wikitext:

    Gener{{shy}}ation
    

    If needed, it will wrap, and look like this to the reader:

    Gener-
    ation
    

    Adding formatting

    If you want to add italic or bold (or other) formatting to the whole word contained within this template, it is recommended that you place the formatting outside of the template. Although placing the formatting inside the template does work, editors and cleanup scripts may think it is an error and "fix" it incorrectly.

    DocheckY this:

    ''{{Soft hyphen|ital|icized}}''
    

    instead of ☒N this:

    {{Soft hyphen|''ital|icized''}}
    

    If you want to format only a portion of a word, for emphasis or styling, wrap one of the template parameters, like this:

    {{Soft hyphen|''ital''|icized}}
    

    Examples

    Individual insertions

    Soft hyphens have been inserted in the following text, like this:

    The effect will usually be visible when zooming your browser and/or adjusting the width of its window. Most browser configurations will cause this long string to be broken, using hyphens, over multiple lines:

    Pac Man goes wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka­wocka.

    Many or most browser configurations will break long words in the passage below using hyphens‍—‌whether and where will vary from browser to browser, and may depend on local settings and preferences:

    Mary Poppins, religious officials, and epidemiologists say super­califrag­ilistic­expiali­docious antidis­establish­mentarian­ism pneumono­ultra­micro­scopic­silico­volcano­conioses super­califrag­ilistic­expiali­docious antidis­establish­mentarian­ism pneumono­ultra­micro­scopic­silico­volcano­conioses super­califrag­ilistic­expiali­docious antidis­establish­mentarian­ism pneumono­ultra­micro­scopic­silico­volcano­conioses super­califrag­ilistic­expiali­docious antidis­establish­mentarian­ism pneumono­ultra­micro­scopic­silico­volcano­conioses super­califrag­ilistic­expiali­docious antidis­establish­mentarian­ism pneumono­ultra­micro­scopic­silico­volcano­conioses.

    Alternative syntax

    A word or phrase is enclosed within a single "shy", with each | being a potential hyphenation point:

    Avoid enclosing longer phrases or entire sentences, as that makes text difficult to edit in the visual editor.

    TemplateData

    Insert an optional hyphen – a point at which a word may be broken over the end of a line, with a visible hyphen inserted at line end. When parameters are specified, they are displayed in order, separated by optional hyphens. Any number of parameters can be used.

    Template parameters[Edit template data]

    This template prefers inline formatting of parameters.

    ParameterDescriptionTypeStatus
    Fragment 11

    no description

    Stringoptional
    Fragment 22

    no description

    Stringoptional
    Fragment 33

    no description

    Stringoptional
    Fragment 44

    no description

    Stringoptional
    Fragment 55

    no description

    Stringoptional

    See also


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Soft_hyphen&oldid=1064089884"

    Categories: 
    Lua-based templates
    Character-substitution templates
    Hidden category: 
    Wikipedia template-protected templates
     



    This page was last edited on 6 January 2022, at 14:32 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki