Szablon:Stroke Wyświetl historię

mNie podano opisu zmian
m (9 wersji)
 
(Nie pokazano 5 wersji utworzonych przez jednego użytkownika)
Linia 1: Linia 1:
<includeonly>text-shadow:  
<includeonly>{{#if:{{{span|}}}|<span style="}}text-shadow:  
   -{{{tl|{{{distance|1}}}}}}px -{{{tl|{{{distance|1}}}}}}px 0 {{{tlcolor|{{{color|#000}}}}}},   
   -{{{tl|{{{distance|1}}}}}}px -{{{tl|{{{distance|1}}}}}}px 0 {{{tlcolor|{{{color|#000}}}}}},   
     {{{tr|{{{distance|1}}}}}}px -{{{tr|{{{distance|1}}}}}}px 0 {{{trcolor|{{{color|#000}}}}}},
     {{{tr|{{{distance|1}}}}}}px -{{{tr|{{{distance|1}}}}}}px 0 {{{trcolor|{{{color|#000}}}}}},
     -{{{bl|{{{distance|1}}}}}}px {{{bl|{{{distance|1}}}}}}px 0 {{{blcolor|{{{color|#000}}}}}},
     -{{{bl|{{{distance|1}}}}}}px {{{bl|{{{distance|1}}}}}}px 0 {{{blcolor|{{{color|#000}}}}}},
     {{{br|{{{distance|1}}}}}}px {{{br|{{{distance|1}}}}}}px 0 {{{brcolor|{{{color|#000}}}}}};</includeonly><noinclude>{{doc}}</noinclude>
     {{{br|{{{distance|1}}}}}}px {{{br|{{{distance|1}}}}}}px 0 {{{brcolor|{{{color|#000}}}}}},
-{{{l|{{{distance|1}}}}}}px {{{tl|{{{distance|0}}}}}}px 0 {{{lcolor|{{{color|#000}}}}}},
{{{r|{{{distance|1}}}}}}px {{{r|{{{distance|0}}}}}}px 0 {{{rcolor|{{{color|#000}}}}}},
{{{t|{{{distance|0}}}}}}px -{{{t|{{{distance|1}}}}}}px 0 {{{tcolor|{{{color|#000}}}}}},
{{{b|{{{distance|0}}}}}}px {{{b|{{{distance|1}}}}}}px 0 {{{bcolor|{{{color|#000}}}}}}; {{{style|}}} {{#if:{{{span|}}}|">{{{span}}}</span>}}</includeonly><noinclude>{{doc}}</noinclude>

Aktualna wersja na dzień 07:06, 20 cze 2016

Documentation icon Template documentation[view] [edit] [history] [purge]

This adds a css style parameter to put a stroke around text
Szablon:Pre2

This is text with a stroke

Usage

This template should be used inside a CSS style parameter. To use it on regular text, place the text inside a <span>...</span> using the following code:

<span style="{{stroke}}">YOUR TEXT</span>

You can optionally use the |span=YOUR TEXT parameter, or an unnamed |YOUR TEXT parameter to do this automatically: {{Stroke|span=YOUR TEXT GETS OUTLINED}} will produce YOUR TEXT GETS OUTLINED

When using |span=, you can also use |style= to add additional CSS styles to the text. {{Stroke|span=Your Styled Text|style=color: #93C4D3;}} will produce Your Styled Text

Parameters

This stroke is formed using eight shadows. To create unique effects, you can add this template multiple times with different options to the same text. You can specify the overall distance with |distance=, and color with |color=.

You can change individual distances and colors with:

  • |tl= top left distance
  • |tlcolor= top left color
  • |tr= top right distance
  • |trcolor= top right color
  • |bl= bottom left distance
  • |blcolor= bottom left color
  • |br= bottom right distance
  • |brcolor= bottom right color
  • |t= top distance
  • |tcolor= top color
  • |l= left distance
  • |lcolor= left color
  • |r= right distance
  • |rcolor= right color
  • |b= bottom distance
  • |bcolor= bottom color
  • |span=YOUR TEXT encloses you text inside <span>...</span> tags, with the stroke effect applied.
  • |style= will pass through any CSS style codes, and can be used to add additional styling in conjuction with the |span= parameter.

Examples

<span style="{{stroke|distance=0|br=4|color=red}}"><big>This is text with a stroke</big></span>

This is text with a stroke


{{Stroke|span=Text in red outline|color=red}}

Text in red outline

The above documentation is transcluded from Szablon:Stroke/doc.
Please add categories to the /doc subpage.
Subpages of this template.