Template:Fake=/documentation: Difference between revisions

From The Languages of David J. Peterson
Jump to navigation Jump to search
(Created page with "{{documentation subpage}} {{tl|1=fake=}}, {{tl|1=fake==}}, {{tl|1=fake===}}, and {{tl|1=fake====}} are used to format text as if it were a heading without actually making it...")
 
m (Changed links to point to Wiktionary)
 
Line 18: Line 18:


==Examples==
==Examples==
* <code><nowiki>{{fake==|[[metalworks]]}}</nowiki></code> produces:
* <code><nowiki>{{fake==|{{wt|metalworks}}}}</nowiki></code> produces:
{{fake==|[[metalworks]]}}
{{fake==|{{wt|metalworks}}}}
* <code><nowiki>{{fake===|esthesiometer|style=text-decoration: line-through red}}</nowiki></code> produces:
* <code><nowiki>{{fake===|esthesiometer|style=text-decoration: line-through red}}</nowiki></code> produces:
{{fake===|esthesiometer|style=text-decoration: line-through red}}
{{fake===|esthesiometer|style=text-decoration: line-through red}}

Latest revision as of 02:17, 25 August 2024

Documentation for Template:Fake=. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

{{fake=}}, {{fake==}}, {{fake===}}, and {{fake====}} are used to format text as if it were a heading without actually making it one. This means, for example, that fake headings are not included in tables of contents and cannot be linked to directly using the usual [[Page#Section]] syntax.

In normal wikitext equals signs are used to produce headings (for example ==English==). Sometimes it is desirable to have all the visual appearance of a heading with none of the semantics. For example, the level 2 heading of a request for deletion should be included in the archive of that request on the associated entry's talk page, but should not be included in the talk page's table of contents.

The fake headings are implemented as <div>s.

Parameters

|1=
The text to display as a fake heading.
|class=
A CSS class to apply to the heading.
|style=
CSS styles to apply to the heading.

Examples

  • {{fake==|{{wt|metalworks}}}} produces:
metalworks
  • {{fake===|esthesiometer|style=text-decoration: line-through red}} produces:
esthesiometer