Jump to content

Help talk:Editing/Archive 1

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Maurreen (talk | contribs) at 23:33, 27 September 2004 (Archived old stuff.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Wikipedia talk:How to edit a page

Archive

Archived old stuff. Maurreen 23:33, 27 Sep 2004 (UTC)

New approach to section headings example

Upon reading the following in Wikipedia:Section:

Sections in a template do not appear in the TOC of the referring page. The automatic section numbering restarts with 1 at the beginning of a template, and continues with the section numbering of the referring page itself after the template.

I hit on this idea to display the section headings example in the table:

What I typed in the page source What's displayed
{{Section headings example}}
Template:Section headings example

Benefits:

  • Shows section headings exactly as normally rendered (no kludges).
  • TOC not screwed up.
  • Template can be used anywhere this example appears (as in Wikipedia:Section).

Drawbacks:

The last drawback could be fixed (I assume) by using a second template containing <nowiki>.

- dcljr 20:22, 1 Sep 2004 (UTC)

With the template, just as with the bare wiki-style ==Headings==, the TOC included references to the example headings. With the template, the section edit links were messed up even worse than with the wiki-style headings. So I converted it to use font changes and bolding instead of real headings. —AlanBarrett 20:39, 19 Sep 2004 (UTC)
By the way, {{msgnw:Template:Whatever}} includes the content of a template, and wraps that in a nowiki context. —AlanBarrett 20:39, 19 Sep 2004 (UTC)