Jump to content

Template:NickelBank: Difference between revisions

From LithoGraphica
Reversedragon (talk | contribs)
m DefaultSort
Reversedragon (talk | contribs)
m include h1 and DefaultSort using nickel parameter
Line 1: Line 1:
<includeonly><onlyinclude>{{ArticleTitle|[nickel] {{#if:{{{1|}}}| {{{1|}}} | {{{h2|}}} }}|h1={{{h1|}}}|h2={{{h2|}}}}}{{#if:{{{DefaultSort|}}} | {{DefaultSort|{{{DefaultSort|}}}}} }}{{Contents|class=nickel-bank}}{{HueCSS}}</onlyinclude></includeonly><!--
<includeonly><onlyinclude>{{ArticleTitle|[nickel] {{#if:{{{1|}}}|{{{1|}}}|{{{h2|}}}}}|h1={{#if:{{{h1|}}}|{{{h1|}}}|Research talk:5¢/{{{nickel|}}}}}|h2={{{h2|}}}}}{{#if:{{{nickel|}}}|{{DefaultSort|¢,05/{{{nickel|}}}}}}}{{#if:{{{Contents|}}}|{{Contents|class=nickel-bank}}}}{{HueCSS}}</onlyinclude></includeonly><!--


more readable version:
more readable version:
Line 5: Line 5:
{{ArticleTitle
{{ArticleTitle
  |[nickel] {{#if:{{{1|}}}| {{{1|}}} | {{{h2|}}} }}
  |[nickel] {{#if:{{{1|}}}| {{{1|}}} | {{{h2|}}} }}
  |h1 = {{{h1|}}}
  |h1 = {{#if:{{{h1|}}}| {{{h1|}}} | Research talk:5¢/{{{nickel|}}} }}
  |h2 = {{{h2|}}}
  |h2 = {{{h2|}}}
}}
}}
{{#if:{{{DefaultSort|}}} | {{DefaultSort|{{{DefaultSort|}}}}} }}
{{#if:{{{nickel|}}} | {{DefaultSort|¢,05/{{{nickel|}}}}} }}
{{#if:{{{Contents|}}} | {{Contents|class=nickel-bank}} }}
{{#if:{{{Contents|}}} | {{Contents|class=nickel-bank}} }}{{HueCSS}}


-->
-->
Line 23: Line 23:
* <code>NoContents</code>  - include magic word {{TTS|html=code|tts=double-lines-No-T.O.C.|<nowiki>__NOTOC__</nowiki>}}
* <code>NoContents</code>  - include magic word {{TTS|html=code|tts=double-lines-No-T.O.C.|<nowiki>__NOTOC__</nowiki>}}
* <code>Contents</code>    - include magic word {{TTS|html=code|tts=double-lines-T.O.C.|<nowiki>__TOC__</nowiki>}}, with option to hide it only on pages calling [[Template:NickelBank]]
* <code>Contents</code>    - include magic word {{TTS|html=code|tts=double-lines-T.O.C.|<nowiki>__TOC__</nowiki>}}, with option to hide it only on pages calling [[Template:NickelBank]]
* <code>DefaultSort</code> - include magic word {{TTS|html=code|tts=two-brackets-Default-Sort|<nowiki>{{DEFAULTSORT}}</nowiki>}}
* <code>nickel</code> - if provided, includes magic word {{TTS|html=code|tts=two-brackets-Default-Sort|<nowiki>{{DEFAULTSORT}}</nowiki>}}


== Templates called ==
== Templates called ==

Revision as of 09:40, 7 May 2026

Description

This template is for changing the title of a page, specifically for use on "nickel bank" pages. It has two purposes: being easier to remember, and potentially being more TTS-friendly when applicable.

Parameters

  • 1 - window title
  • h1 - nickel title to show in page heading, should markup and progressive enhancement be needed
  • h2 - nickel title to show for second heading
  • NoContents - include magic word pronounced double-lines-No-T.O.C.
  • Contents - include magic word pronounced double-lines-T.O.C., with option to hide it only on pages calling Template:NickelBank
  • nickel - if provided, includes magic word pronounced two-brackets-Default-Sort

Templates called