Talk:Scientific Blackpill: Difference between revisions

Jump to navigation Jump to search
Line 38: Line 38:
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:
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>
# Temporarily remove the <code>&#95;&#95;NOTOC&#95;&#95;</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
# In Firefox or Chrome, right click on the TOC, inspect element, then right-click on the first &#x3C;ul&#x3E; element, click Copy, then Outer HTML
# Replace links with MediaWiki syntax and remove bullet points using <code>list-style: none</code>
# 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 &#x27;s/&#x3C;a href=&#x22;/[[/; s/&#x22;&#x3E;&#x3C;span/|&#x3C;span/; s/&#x3C;\/a&#x3E;/]]/; s/&#x3C;ul&#x3E;/&#x3C;ul style=&#x22;list-style: none;&#x22;&#x3E;/&#x27; | xclip -sel c</code>. This command requires <code>sudo apt get install xclip</code> to be installed. The converted TOC is then in pasteboard.
## On Linux this can be done like so: <code>xclip -o| sed -e &#x27;s/&#x3C;a href=&#x22;/[[/; s/&#x22;&#x3E;&#x3C;span/|&#x3C;span/; s/&#x3C;\/a&#x3E;/]]/; s/&#x3C;ul&#x3E;/&#x3C;ul style=&#x22;list-style: none;&#x22;&#x3E;/&#x27; | xclip -sel c</code>. This command requires <code>sudo apt get install xclip</code> to be installed. The converted TOC is then in pasteboard.
17,538

edits

Navigation menu