Like the title says.
**Steps to replicate the issue** (include links if applicable):
* Create a template with the following content:
Template:List output
```
* This is
* A list
```
* Create a second template with the following content:
Template:Empty output
```
[[Category:This is my unique category name]]
```
* Create a page with the following content:
```
{{List output}}
{{Empty output}}
[[Category:My test category]]
```
Sandbox link replicating this: https://en.wikipedia.org/w/index.php?title=User:Jon_Harald_S%C3%B8by/sandbox&oldid=1123212798
* After saving or previewing, switch to the visual editor.
**What happens?**:
* When editing in the visual editor, no categories are visible at the bottom of the screen.
* Additionally, when you click the hamburger icon and then "Categories", no categories are there. You can add new ones, but the existing category ("My test category") is not in the list so you can remove it or change its sortkey.
* Also, the template with the empty output (a category in this case) is not available for manipulation from Visual Editor at all. There is no placeholder for it.
**What should have happened instead?**:
* Categories should be visible and editable
* The template with the invisible output should have a placeholder so it can be manipulated or removed
**Software version** (skip for WMF-hosted wikis like Wikipedia):
**Other information** (browser name/version, screenshots, etc.):
= Original description
**Steps to replicate the issue** (include links if applicable):
* Go to https://no.wikipedia.org/wiki/Karl-Bertil_Jonssons_jul
* Edit with visual editor
* Click the hamburger icon and then Categories ("Kategorier")
**What happens?**:
* No categories are visible at the bottom of the page in edit mode, like they normally are
* Additionally, you can't edit any categories when you go to the category edit menu (hamburger icon » Categories)
**What should have happened instead?**:
* Categories should be visible and editable
**Software version** (skip for WMF-hosted wikis like Wikipedia):
**Other information** (browser name/version, screenshots, etc.):