Szablon:Dropinitial: Różnice pomiędzy wersjami

[wersja nieprzejrzana][wersja nieprzejrzana]
Usunięta treść Dodana treść
-nits; idea is to make next diff cleaner
what the heck; giving it a go.
Linia 1:
<includeonly><divspan class="dropinitial" style="display: block; font-size: {{#ifeq:{{{2|3em}}}|3em|3em|{{{2}}}}}; line-height: 1em; float: left; margin: {{#ifeq:{{{3|0em}}}|0em|0em|{{{3}}}}} {{#ifeq:{{{4|.1em}}}|.1em|.1em|{{{4}}}}} {{#ifeq:{{{5|0em}}}|0em|0em|{{{5}}}}} {{#ifeq:{{{6|0em}}}|0em|0em|{{{6}}}}};">{{#ifeq:{{{1|A}}}|A|A|{{{1}}}}}</divspan></includeonly><noinclude><br style="clear:both;" />
This template is for creating the "drop [[w:initial|initial]]" effect that is common in both modern and antiquated typography:
 
Linia 32:
== Technical Notes ==
 
This template simply generates a left-floated divspan (w/style <tt>display: block;</tt>) containing ''content'' with the proper CSS styles applied to it. Unfortunately the [http://www.w3.org/TR/css3-linebox/#Initial CSS 3 styles specifically directed at formatting drop initials] are not implemented in browsers at this point. In planning for the future this template applies a class "dropinitial" to the output divspan.
 
{{DEFAULTSORT:Dropinitial}}
[[Category:Typography templates]]</noinclude>