Trusted, Automoderated users
17,538
edits
No edit summary |
|||
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) | ||
==How to generate the TOC== | |||
Since the MobileFrontend does not display a TOC (table of contents) for the long Scientific Blackpill article, 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 #toc div, click Copy, then Outer HTML | |||
# Now one can use various online tools (search for "convert html to mediawiki") or Pandoc to convert the HTML to MediaWiki syntax. | |||
# On Linux: <code>pandoc -f html -t mediawiki <(xclip -o) | xclip -sel c</code>. This command requires <code>sudo apt get install pandoc xclip</code> to be installed. | |||
## The converted TOC is then in pasteboard. | |||
# Only replace the list part since the div container) |