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 Screen reader only  





2 Usage  



2.1  Table captions  







3 Example  



3.1  Example table  





3.2  TemplateData  
















Template:Screen reader-only






العربية
Azərbaycanca
تۆرکجه
Basa Bali

 / Bân-lâm-gú
Беларуская

Bosanski
Català
Esperanto
فارسی
Galego

Bahasa Indonesia
Íslenska

Kurdî





Português
Shqip

Simple English
Slovenščina
کوردی
Српски / srpski
ி
 

Türkçe
Українська
اردو
Tiếng Vit


 
 

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
 




In other projects  



Wikisource
Wiktionary
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

(Redirected from Template:Sronly)

This template generates invisible text that will be read aloud by screen readers.

Screen reader only

The text supplied as the sole unnamed parameter is not to be displayed in a browser, but should be voiced by a screen reader.

First part. {{Screen reader-only|Second part only for a screen reader.}} Third part. → First part. Second part only for a screen reader. Third part.

Usage

This template should only be used to hide text from sighted readers when that text substantially duplicates adjacent text that is visible.

Table captions

The main usage case is when a table is placed immediately below a heading, where the heading is effectively identical to the table's caption. This template may be used to hide the caption from a sighted reader (as it would be duplicative), while allowing a screen reader to hear the caption – for example, if the screen reader reads a list of tables in the article to allow navigation directly to a particular table.

If the table is moved to another location away from the heading, then this template should be removed to allow sighted readers to see the table caption. This is a requirement of WCAG 1.3.1.

Example

The table below has a caption "Example table" that will be voiced by a screen reader.

|+ {{Screen reader-only|Example table}}

Example table

Example table
Header Information
Row hdr 1 data 1
Row hdr 2 data 2
Row hdr 3 data 3

TemplateData

See a monthly parameter usage report for Template:Screen reader-only in articles based on its TemplateData.

TemplateData for Screen reader-only

The text supplied is not to be displayed in a browser, but should be voiced by a screen reader.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text1

no description

Stringrequired

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Screen_reader-only&oldid=1208812510"

Categories: 
Templates using TemplateStyles
Accessibility templates
Wikipedia templates that change text based on client state
Hidden categories: 
Wikipedia template-protected templates
Templates using TemplateData
 



This page was last edited on 19 February 2024, at 01:29 (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