Hiding The Page Title from the Body
Posted: Sat Nov 17, 2018 11:14 am
There are a few drawbacks to Mediawiki when dealing with it "out of the box" and today I was editing the Robert Mandell interview written by Tara O'Shea. I wanted to title the page with the centered text, but it looks odd with the Page Title first, then a repeat below.
Sometimes Googling your problem is the way to go:
Mediawiki supports Templates, so let's make use of that:
https://betamountain.org/index.php/Template:HideTitle
Now I can use the by invoking {{HideTitle}} on the page and the page has the look that was originally desired!
Sometimes Googling your problem is the way to go:
- Google: mediawiki do not display title
- https://www.mediawiki.org/wiki/Topic:Th3xmiwyp8d7p7eg
Code: Select all
{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">{{FULLPAGENAME}}</span>}}
https://betamountain.org/index.php/Template:HideTitle
Code: Select all
{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">{{FULLPAGENAME}}</span>}}
<noinclude>[[Category:News Templates]]</noinclude>
Now I can use the by invoking {{HideTitle}} on the page and the page has the look that was originally desired!