User:PesachZ/SyncScratch View history

m (Copying text of wiki page for coparison with the "Template:Stroke/doc" page)
m (Copying text of wiki page for coparison with the "Maryland/Area Managers/Main" page)
Line 1: Line 1:
{{doc subpage}}
<!---------------------- DO NOT MODIFY THIS TOP CODE -------------------------------
<!-- ADD DOCUMENTATION BELOW THIS LINE -->
------------------------------------------------------------------------------------
This adds a css style parameter to put a stroke around text<br>{{pre2|text-shadow:  
--><noinclude>{{:USA/CommonState/ReturnPurge|{{#titleparts:{{PAGENAME}}|-1|-2}}}}</noinclude><includeonly><!--
  -1px -1px 0 #000, 
------------------------------------------------------------------------------------
    1px -1px 0 #000,
---- Area Managers: Cancel edit and use link on table next to "Area Managers". -----
    -1px 1px 0 #000,
---- Country/State Managers: Continue.
    1px 1px 0 #000,
------------------------------------------------------------------------------------
-1px 0px 0 #000,
---- This page is only transcluded into (displayed on) the main page for this
1px 0px 0 #000,
---- state. When first setting up this page, remove the example users for Country
0px -1px 0 #000,
---- and State managers. Area Managers are changed in a different section as noted
0px 1px 0 #000;}}
---- above. When adding a new user, use the following template:
{{AM/Editor|Username|Area Managed|Other Comment}}
---- If any fields are skipped, ensure all three the pipe "|" characters are present.
---- Note the badge1, badge2, badge3 entries are only what is defined under {{AM/Badge}}
---- When adding a new user, place the new template based on Rank (highest first)
---- and then alphabetical order in that rank.
------------------------------------------------------------------------------------
--------------------------- TABLE BEGINS BELOW -------------------------------------
---------------------------- EDIT BELOW LINE ---------------------------------------
----------------------------------------------------------------------------------->
{{AM/Top|gho=yes}}<!-- Top of the table -->
{{AM/Country}}<!-- Defines the start of the country manager section -->
{{AM/Editor|CBenson|6|Countrywide|badge1=rc|badge2=cm|badge3=gc|badge4=mgc|pic=File:Carlbenson.JPG|gho=Carl B}}
{{AM/Editor|nzahn1|5|Countrywide|badge1=CM|badge2=SM|badge3=AM|badge4=m|pic=File:Avatar_nzahn1.png|gho=Nick Z}}
{{AM/State}}<!-- Defines the start of the state manager section -->
{{AM/Editor|Kodi75|5|Countrywide|badge1=CM|badge2=SM|pic=File:Avatar_Kodi75.png|gho=David T}}
{{AM/AreaLink}}<!-- Defines the start of the area manager section -->
{{#ifexist: {{BasePage2}}/AM/Editor/Area |<!--
-->{{:{{BasePage2}}/AM/Editor/Area}}<!-- Area managers are edited through the main page link accessed from within the table itself. Do not add them here.-->
}}<!-- End ifexist -->
{{AM/Bottom}}<!-- Bottom of the table; must be the last line of table. -------------
------------------------------------------------------------------------------------
-->{{#ifexist: {{BasePage2}}/AM/Editor/Area2 <!-- If other table exists -->
| {{AM/Area2Link}}<!--then display Other Table, or skip -->
}} <!-- End ifexist -->


<span style="color: white; {{stroke}}">This is text with a stroke</span>
{{#widget:Iframe
|url=https://www.google.com/maps/d/embed?mid=1ZMwlCzjKwPLr0yVp_ZFvOUctN1c
|border=0
|width=712|height=534
}}


== Usage ==
</includeonly>
 
This template should be used inside a CSS style parameter. To use it on regular text, place the text inside a {{tag|span}} using the following code:
{{tag|span style{{=}}"{{tl|stroke}}"|open}}YOUR TEXT{{tag|span|close}}
 
You  can optionally use the {{para|span|YOUR TEXT}} parameter, or an unnamed {{para||YOUR TEXT}} parameter to do this automatically:
{{Tlx|Stroke|span{{=}}YOUR TEXT GETS OUTLINED}} will produce
{{Stroke|span=YOUR TEXT GETS OUTLINED}}


When using {{para|span}}, you can also use {{para|style}} to add additional CSS styles to the text.
<!----------------------------------------------------------------------------------->
{{Tlx|Stroke|span{{=}}Your Styled Text|style{{=}}color: #93C4D3;}} will produce
<!------------------------ DO NOT ADD CODE BELOW THE TABLE -------------------------->
{{Stroke|span=Your Styled Text|style=color: #93C4D3;}}
 
== 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 {{para|distance}}, and color with {{para|color}}.
 
You can change individual distances and colors with:
*{{para|tl}} top left distance
*{{para|tlcolor}} top left color
*{{para|tr}} top right distance
*{{para|trcolor}} top right color
*{{para|bl}} bottom left distance
*{{para|blcolor}} bottom left color
*{{para|br}} bottom right distance
*{{para|brcolor}} bottom right color
*{{para|t}} top distance
*{{para|tcolor}} top color
*{{para|l}} left distance
*{{para|lcolor}} left color
*{{para|r}} right distance
*{{para|rcolor}} right color
*{{para|b}} bottom distance
*{{para|bcolor}} bottom color
*{{Para|span|YOUR TEXT}} encloses you text inside {{tag|span}} tags, with the stroke effect applied.
*{{para|style}} will pass through any CSS style codes, and can be used to add additional styling in conjuction with the {{para|span}} parameter.
 
== Examples ==
<code><nowiki><span style="{{stroke|distance=0|br=4|color=red}}"><big>This is text with a stroke</big></span>
</nowiki></code>
 
<span style="{{stroke|distance=0|br=4|color=red}}"><big>This is text with a stroke</big></span>
----
{{Tlx|Stroke|span{{=}}Text in red outline|color{{=}}red}}
 
{{Stroke|span=Text in red outline|color=red}}
 
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
</includeonly>

Revision as of 18:52, 22 August 2016