Jump to content

Template:Fake heading: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
adding support for subheading simulation
update to use TemplateStyles
 
(30 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{main other
<div style="{{#if:{{{sub|}}}|font-weight: bold; font-size: 115%; padding-top: .3em;|font-size: 120%; padding-bottom: .3em; border-bottom: 1px solid #666; width: 75%;}}">{{{1}}}</div><noinclude>
|1={{error|Per [[WP:PSEUDOHEADING]] fake headings should not be used in articles.}}[[Category:Pages with templates in the wrong namespace]]

|2=<templatestyles src="Template:Fake_heading/styles.css" /><div class="fake-heading {{#switch: {{{level|{{{sub|}}}}}}
&nbsp;
| 1 = h1

| 2 | #default = h2
{{Documentation}}
| 3 = h3
<!--Categories and interwikis go on the /doc subpage.-->
| 4 | 5 | 6 = h4
}}">{{{1|Section}}}</div>}}<noinclude>
{{documentation}}
<!-- Categories go on the /doc subpage and interwikis go on Wikidata. -->
</noinclude>
</noinclude>

Latest revision as of 17:05, 22 July 2024

Section