Template:Navbox Example.
From Funkinchan
<script>
function toggleNavbox(element) { var content = element.parentElement.parentElement.nextElementSibling; if (content.style.display === "none" || content.style.display === "") { content.style.display = "block"; element.textContent = "hide"; } else { content.style.display = "none"; element.textContent = "show"; } }
</script>