Template:LCARS-bar-left: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(Fix might break the template, so we'll notate it here.)
No edit summary
Line 1: Line 1:
<includeonly>{|style="width: 100%; align: center;"
<includeonly>{|style="width: 100%; align: center;"
|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"|
!width="{{{2}}}px" style="text-transform:uppercase; line-height: 130%;"|<font size="4">{{{1}}}</font>
!style="text-transform:uppercase; line-height: 130%;"|<font size="4">{{{1}}}</font>
|style="background:{{{COLOR}}}; border:0px;"|
|style="background:{{{COLOR}}}; min-width: 800px; 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"|
Line 8: Line 8:
* Puts the text on the left instead of the right.
* Puts the text on the left instead of the right.
* 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>).
Specify the width in pixels for your text label.


<pre>
<pre>
{{LCARS-bar-left|Taskforces|150|COLOR=#6699cc}}
{{LCARS-bar-left|Taskforces|COLOR=#6699cc}}
</pre>
</pre>


{{LCARS-bar-left|Taskforces|150|COLOR=#6699cc}}
{{LCARS-bar-left|Taskforces|COLOR=#6699cc}}


And to make it a link...
And to make it a link...


<pre>
<pre>
{{LCARS-bar-left|[[Taskforces]]|150|COLOR=#6699cc}}
{{LCARS-bar-left|[[Taskforces]]|COLOR=#6699cc}}
</pre>
</pre>


{{LCARS-bar-left|[[Taskforces]]|150|COLOR=#6699cc}}
{{LCARS-bar-left|[[Taskforces]]|COLOR=#6699cc}}


In order to make this template float with sidebars, add this code before:
In order to make this template float with sidebars, add this code before:

Revision as of 17:46, 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 two things differently:

  • Puts the text on the left instead of the right.
  • Does not create an automatic link (although you can still manually put in a link using [[ and ]]).
{{LCARS-bar-left|Taskforces|COLOR=#6699cc}}
Taskforces

And to make it a link...

{{LCARS-bar-left|[[Taskforces]]|COLOR=#6699cc}}
Taskforces

In order to make this template float with sidebars, add this code before:

<div style="overflow: hidden;">

and after

</div>