Template:ArticleTitle: Difference between revisions
Appearance
parameter 1 - browser title |
make each title optional / parameters |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#if: {{{h1|}}} | | <includeonly><onlyinclude>{{#if: {{{h1|}}} | {{DISPLAYTITLE:{{{h1|h1}}}}} }}{{#if: {{{1|}}} | <seo title="{{{1}}}" /> }}{{#if: {{{NoContents|}}} | __NOTOC__ }}</onlyinclude></includeonly><!-- | ||
--> | --> | ||
== Description == | == Description == | ||
This template is for changing the | This template is for changing the title of a page. It has two purposes: being easier to remember, and being more TTS-friendly. | ||
== Parameters == | |||
* <code>1</code> - Browser title shown at the top of the window. The name of the wiki and probably the browser will be appended to the end. | |||
* <code>h1</code> - Article title. It is recommended you make this something which is nearly indistinguishable from the internal title, such as the same title with formatting inside or the same title with a lowercase letter. | |||
* <code>NoContents</code> - disable table of contents using the magic word {{TTS|html=code|tts=No T.O.C.|_<nowiki/>_NOTOC_<nowiki/>_}}. This was on a lot of Item pages, but it was potentially very TTS-unfriendly, so from now on those thousand pages will use "NoContents". | |||
[[Category:Templates for markup]] | [[Category:Templates for markup]] |
Latest revision as of 08:30, 24 August 2025
Description[edit]
This template is for changing the title of a page. It has two purposes: being easier to remember, and being more TTS-friendly.
Parameters[edit]
1
- Browser title shown at the top of the window. The name of the wiki and probably the browser will be appended to the end.h1
- Article title. It is recommended you make this something which is nearly indistinguishable from the internal title, such as the same title with formatting inside or the same title with a lowercase letter.NoContents
- disable table of contents using the magic wordpronounced __NOTOC__
. This was on a lot of Item pages, but it was potentially very TTS-unfriendly, so from now on those thousand pages will use "NoContents".