Template:LCARS-bar-heading: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
m (Protected "Template:LCARS-bar-heading" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(added clear option)
Line 1: Line 1:
<includeonly><h2 style="border-bottom: none;">
<includeonly>{{br|{{{3|}}}}}<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"|
Line 35: Line 35:
</pre>
</pre>


===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 :
<pre>{{LCARS-bar-heading|Name of Heading|Width|COLOR=Color|clear}}</pre>
[[File:Trip.jpg|thumb|[[Template:Header|Hi, again!]]]]
{{LCARS-bar-heading|Before|90|COLOR=maroon}}
<pre>{{LCARS-bar-heading|Before|90|COLOR=maroon}}</pre>
[[File:Trip.jpg|thumb|[[Template:Header|Whoa!]]]]
<pre>{{LCARS-bar-heading|After|90|COLOR=darkgoldenrod|clear}}</pre>
{{LCARS-bar-heading|After|90|COLOR=darkgoldenrod|clear}}
Questions/Issues? [[User:Rich|'''♫ Rich''' <small>(Capt. Roshanara Rahman)</small>]] • [[User_talk:Rich|<small>'''REPLY'''</small>]] • [[118Wiki:Operations|<small>Wiki Ops Team</small>]] • [[Department of Veterans Affairs|<small>Veterans Affairs</small>]]
[[Category:Wiki System Templates]]</noinclude>
[[Category:Wiki System Templates]]</noinclude>

Revision as of 23:49, 13 October 2016

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.

Specify the width in pixels for your text label.

Introduction

This is the introduction of a page.

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

Middle

This is the middle of a page.

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

End

This is the end of a page.

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

Clearing a Section

You can also add a
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|Width|COLOR=Color|clear}}

Before

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


After

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