Difference between revisions of "Template:HeadingStrip"

From Wikicarpedia
Jump to navigation Jump to search
 
Line 11: Line 11:
  | 5
  | 5
  | 6 = h{{{heading}}}
  | 6 = h{{{heading}}}
  | h3 }} }}>{{#if:{{{icon|}}}|<div class="wica-banner-icon floatright" style="margin-right: 1em; {{#if: {{{top|}}} | top:{{{top}}} }}">{{{icon}}}</div><br class="wica-banner-spacer" />}}</includeonly><noinclude>{{Breadcrumbs|link1={{EditorManualLink}}}}[[Category:Editor Manual]]
  | h3 }} }}>{{#if:{{{icon|}}}|<div class="wica-banner-icon" style="margin-right: 1em; position:relative;"><div style="position:absolute; right: 0;{{#if: {{{top|}}} | top:{{{top}}} }}>{{{icon}}}</div></div>}}</includeonly><noinclude>{{Breadcrumbs|link1={{EditorManualLink}}}}[[Category:Editor Manual]]
== Description ==
== Description ==
Create heading with an element icon<br />
Create heading with an element icon<br />

Latest revision as of 22:11, 22 April 2024

Description

Create heading with an element icon
Note: It works on pages with Section Styling

Params

  • title (mandatory): content for title
  • heading (optional): [1 | 2 | 3 | 4 | 5 | 6 | none ] heading type of HeadingStrip, when none, heading will not be generated in Table of Contents.
  • icon (optional): content for icon box
  • id (optional): include HTML id for create anchors to requested id, useful when wanted identical id for all translations

Examples

{{HeadingStrip|title=Builder|icon={{Figure|name=Builder|variant=image|size=x50px}} }}

Builder

Figure Builder red.png

{{HeadingStrip|title=Builder|heading=3}}

Builder

{{HeadingStrip|title=Builder which is not in Table of Content|heading=none}}

Builder which is not in Table of Content

{{HeadingStrip|title=Heading with extra example id|id=this_is_example_id}}

Heading with extra example id