|
|
Line 33: |
Line 33: |
| :::This is an example response to a response to a response [[User:William|William]] ([[User talk:William|talk]]) 16:53, 24 July 2019 (UTC) | | :::This is an example response to a response to a response [[User:William|William]] ([[User talk:William|talk]]) 16:53, 24 July 2019 (UTC) |
| ::This is another example response to the first response [[User:William|William]] ([[User talk:William|talk]]) 16:51, 24 July 2019 (UTC) | | ::This is another example response to the first response [[User:William|William]] ([[User talk:William|talk]]) 16:51, 24 July 2019 (UTC) |
|
| |
| ==Issues with the table of contents and how to generate it==
| |
|
| |
| Since the MobileFrontend does not display a TOC (table of contents) for the long Scientific Blackpill article on mobile devices, we maintain a TOC manually. The TOC can, however also be copied from one generated by MediaWiki. The following steps are necessary:
| |
|
| |
| # Temporarily remove the <code>__NOTOC__</code>
| |
| # In Firefox or Chrome, right click on the TOC, inspect element, then right-click on the first <ul> element, click Copy, then Outer HTML
| |
| # Convert links only to MediaWiki syntax and remove bullet points style from the using <code>list-style: none</code>
| |
| ## On Linux this can be done like so: <code>xclip -o| sed -e 's/<a href="/[[/; s/"><span/|<span/; s/<\/a>/]]/; s/<ul>/<ul style="list-style: none;">/' | xclip -sel c</code>. This command requires <code>sudo apt get install xclip</code> to be installed. The converted TOC is then in pasteboard.
| |