Template:LCARS-bar-heading: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
<includeonly>{{br|{{{3|}}}}}<h2 style="border-bottom: none;">
<includeonly>{{br|{{#switch:{{{2|}}}|clear=clear|}}<h2 style="border-bottom: none;">
{|align=center width="100%"
{|align=center width="100%"
|width="40px" style="background:{{{COLOR}}}; border:0px; border-radius: 20px 0px 0px 20px"|
|width="40px" style="background:{{{COLOR}}}; border:0px; border-radius: 20px 0px 0px 20px"|

Revision as of 18:36, 22 August 2019

Similar to Template:LCARS-bar, this template creates an LCARS style bar with large text (automatically put in all caps) but it does three things differently:

  • Puts the text on the left instead of the right (like Template:LCARS-bar-left)
  • Does not create an automatic link (although you can still manually put in a link using [[ and ]])
  • Is treated as a section heading by the wiki, so the label will show up in the table of contents of a page.

{{br|

Introduction

This is the introduction of a page.

{{LCARS-bar-heading|Introduction|COLOR=darkgoldenrod}}

{{br|

Middle

This is the middle of a page.

{{LCARS-bar-heading|Middle|COLOR=darkgoldenrod}}

{{br|

End

This is the end of a page.

{{LCARS-bar-heading|End|COLOR=darkgoldenrod}}

Clearing a Section

You can also add a <br clear=all> before the heading so that a thumbnail or sidebar will be displayed completely above it by adding "clear" to the end :

{{LCARS-bar-heading|Name of Heading|COLOR=Color|clear}}

{{br|

Before

{{LCARS-bar-heading|Before|COLOR=maroon}}
{{LCARS-bar-heading|After|COLOR=darkgoldenrod|clear}}

{{br|clear

After

Questions/Issues? ♫ Rich (Capt. Roshanara Rahman)REPLYWiki Ops TeamVeterans Affairs