Jump to content

the change wiki:Expandables: Difference between revisions

(Created page with "Expandables are a feature of this wiki, to help describe complex ideas simply. ==Usage & examples== {{empty}} <!-- TODO: talk about "inline text" and "popups" --> ==Feature requests== Non-logged-in users can also make feature requests in 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, ther...")
 
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:


==Usage & examples==
==Usage & examples==
{{empty}}
{|class="wikitable"
<!-- TODO: talk about "inline text" and "popups" -->
!Type
!Example code
!Example result
|-
|Inline text
|<code><nowiki>I went to the store {{x|to buy some bread}} and I saw your mother there!</nowiki></code>
|I went to the store {{x|to buy some bread}} and I saw your mother there!
|-
|Popup info
|<code><nowiki>Specified wattage {{p|This is defined as "power averaged over time", also known as "RMS wattage".}}</nowiki></code>
|Specified wattage {{p|This is defined as "power averaged over time", also known as "RMS wattage".}}
|-
|Talk bubble
|<code><nowiki>I saw a unicorn today {{talk|Are you sure it was an actual unicorn and not just a horse?}}</nowiki></code>
|I saw a unicorn today {{talk|Are you sure it was an actual unicorn and not just a horse?}}
|}
<!-- TODO: add {{p2}} and {{t2}} too -->


==Feature requests==
==Feature requests==
Non-logged-in users can also make feature requests in the {{talk}} page.
''Non-logged-in users can also make feature requests on the {{tp}}.''


===Accessibility===
===Accessibility===