Template:LCARS-bar-heading: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{|align=center width="100%" | <includeonly>{{br|{{#switch:{{{2|}}}|clear=clear|}}}}<h2 style="border-bottom: none;"> | ||
{|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"| | ||
! | !style="width:1px; padding-top: 0px; padding-bottom: 0px; padding-left: 5px; padding-right: 5px; white-space:nowrap; text-transform:uppercase; font-family:Arial, Helvetica, sans-serif; font-size:large; font-weight:bold; line-height: 100%;"|{{{1}}} | ||
|style="background:{{{COLOR}}}; border:0px;"| | |style="background:{{{COLOR}}}; border:0px;"| | ||
|width="5px"| | |width="5px"| | ||
|width="40px" style="background:{{{COLOR}}}; border:0px; border-radius: 0px 20px 20px 0px"| | |width="40px" style="background:{{{COLOR}}}; border:0px; border-radius: 0px 20px 20px 0px"| | ||
|}</includeonly><noinclude>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: | |}</h2></includeonly><noinclude>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]]) | * 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 <nowiki>[[ and ]]</nowiki>) | * Does not create an automatic link (although you can still manually put in a link using <nowiki>[[ and ]]</nowiki>) | ||
* Is treated as a section heading by the wiki, so the label will show up in the table of contents of a page. | * Is treated as a section heading by the wiki, so the label will show up in the table of contents of a page. | ||
__TOC__ | __TOC__ | ||
{{LCARS-bar-heading|Introduction | {{LCARS-bar-heading|Introduction|COLOR=darkgoldenrod}} | ||
This is the introduction of a page. | This is the introduction of a page. | ||
<pre> | <pre> | ||
{{LCARS-bar-heading|Introduction | {{LCARS-bar-heading|Introduction|COLOR=darkgoldenrod}} | ||
</pre> | </pre> | ||
{{LCARS-bar-heading|Middle | {{LCARS-bar-heading|Middle|COLOR=darkgoldenrod}} | ||
This is the middle of a page. | This is the middle of a page. | ||
<pre> | <pre> | ||
{{LCARS-bar-heading|Middle | {{LCARS-bar-heading|Middle|COLOR=darkgoldenrod}} | ||
</pre> | </pre> | ||
{{LCARS-bar-heading|End | {{LCARS-bar-heading|End|COLOR=darkgoldenrod}} | ||
This is the end of a page. | This is the end of a page. | ||
<pre> | <pre> | ||
{{LCARS-bar-heading|End | {{LCARS-bar-heading|End|COLOR=darkgoldenrod}} | ||
</pre> | </pre> | ||
==Clearing a Section== | |||
You can also add a <nowiki><br clear=all></nowiki> 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|COLOR=Color|clear}}</pre> | |||
[[File:Trip.jpg|thumb|[[Template:Header|Hi, again!]]]] | |||
{{LCARS-bar-heading|Before|COLOR=maroon}} | |||
<pre>{{LCARS-bar-heading|Before|COLOR=maroon}}</pre> | |||
[[File:Trip.jpg|thumb|[[Template:Header|Whoa!]]]] | |||
<pre>{{LCARS-bar-heading|After|COLOR=darkgoldenrod|clear}}</pre> | |||
{{LCARS-bar-heading|After|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> |
Latest revision as of 18:38, 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.
Introduction
This is the introduction of a page.
{{LCARS-bar-heading|Introduction|COLOR=darkgoldenrod}}
Middle
This is the middle of a page.
{{LCARS-bar-heading|Middle|COLOR=darkgoldenrod}}
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}}
Before
{{LCARS-bar-heading|Before|COLOR=maroon}}
{{LCARS-bar-heading|After|COLOR=darkgoldenrod|clear}}
After
Questions/Issues? ♫ Rich (Capt. Roshanara Rahman) • REPLY • Wiki Ops Team • Veterans Affairs