Jump to content

Template talk:Head/broken

Add topic
From Meta, a Wikimedia project coordination wiki

This page will show that the head template is not working as expected.

  1. This will be done by first calling the head template passing an abritrary value of 4 and a text. It will not be a h4 tag but an h3 with extra = signs around the title.
  2. Then call the example template to display how head templates are to work
  3. Finally call the head template again with the same level number. Now it works.
  4. Please view the code.

Not a level 4

It looks like this does not work properly at the first call on a page, unless the parameter is 1. See also Template talk:Head/broken.

{{head|1|abc}} gives: = abc =, or in a new paragraph:

abc

{{head|2|abc}} gives: == abc ==, or in a new paragraph:

abc

{{head|3|abc}} gives: === abc ===, or in a new paragraph:

abc

{{head|4|abc}} gives: ==== abc ====, or in a new paragraph:

abc

Is a level 4