the change wiki:Expandables: Difference between revisions
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
|- | |- | ||
|Inline text | |Inline text | ||
|<code><nowiki>I went store {{x|to buy some bread}} and I saw your mother there!</nowiki></code> | |<code><nowiki>I went to the store {{x|to buy some bread}} and I saw your mother there!</nowiki></code> | ||
|I went store {{x|to buy some bread}} and I saw your mother there! | |I went to the store {{x|to buy some bread}} and I saw your mother there! | ||
|- | |- | ||
|Popup info | |Popup info | ||
Line 22: | Line 22: | ||
==Feature requests== | ==Feature requests== | ||
Non-logged-in users can also make feature requests | ''Non-logged-in users can also make feature requests on the {{tp}}.'' | ||
===Accessibility=== | ===Accessibility=== |
Latest revision as of 19:20, 26 March 2025
Expandables are a feature of this wiki, to help describe complex ideas simply.
Usage & examples
Type | Example code | Example result |
---|---|---|
Inline text | I went to the store {{x|to buy some bread}} and I saw your mother there!
|
I went to the store |
Popup info | Specified wattage {{p|This is defined as "power averaged over time", also known as "RMS wattage".}}
|
Specified wattage This is defined as "power averaged over time", also known as "RMS wattage". |
Talk bubble | I saw a unicorn today {{talk|Are you sure it was an actual unicorn and not just a horse?}}
|
I saw a unicorn today discussion Are you sure it was an actual unicorn and not just a horse? |
Feature requests
Non-logged-in users can also make feature requests on the talk page.
Accessibility
- Better fallback for non-javascript browsers. Maybe the content could be shown as footnotes?
- Compatibility with screen readers: When the text is being read, and an expandable is reached, there should be a beep and a short pause (perhaps 0.5 to 2.0 seconds long). During the pause, the listener could click/tap/press something to hear the expandable (else the screen reader automatically continues with the normal text flow). If the user missed the cue, they could use the screen reader's 'rewind' button.
Editability
- Make it work with multi-line text content: Currently, having multiple lines in the wikitext will break functionality. You have to use crap like
<br />
just to have multiple lines in a popup. Proper bullet lists don't work at all.- A solution would probably require implementing expandables as a MediaWiki extension instead of the current system of templates / spans / divs.
(...)( If we're gonna do that, then while we're at it, may as implement the calculator into the same extension (along with any Calculator/feature requests that would need the calculator to be implemented as an extension). Perhaps the extension could be called "academic features". )
- A solution would probably require implementing expandables as a MediaWiki extension instead of the current system of templates / spans / divs.
Other
- Change the way popups interact with the mouse: Instead of making a popup disappear when clicking on it, make it disappear when clicking outside of it. This is a pretty standard behavior on other websites, and it would help make it easier to select text within the popup.
- Have a third kind of expandable: A table where each cell can show a popup when clicked anywhere in the cell.
Author
Expandables were designed & coded by User:Elie, the founder of this wiki.