Diferencia entre revisiones de «Plantilla:Midsize»

De Familia Sanchez Arjona
Saltar a: navegación, buscar
(created, as a full utility template with documentation, to easily set middle font-size (or size=n) & line-height (or height=n), as slightly larger text than Template:Small.)
 
m (2 revisiones importadas)
 
(No se muestra una edición intermedia de otro usuario)
Línea 1: Línea 1:
<span style="font-size:{{{size|92}}}%; line-height:{{{height|1.30}}}em">{{{1}}}</span><noinclude>
+
<span style="font-size:{{{size|92}}}%;line-height:{{{height|1.30}}}em;">{{{1}}}</span><noinclude>{{Documentation}}</noinclude>
 
 
<br>The '''[[Template:Midsize]]''' displays parameter 1 as mid-size text, at font-size 92%, slightly larger than [[Template:Small]], which shows text at 85% size. The optional parameter "height=1.1" can wrap multiple lines closer together. Parameter "size=70" can set other sizes, such as "<span style="font-size:70%">This is size-70 text</span>".
 
 
 
:: '''Usage:''' &nbsp; {&#123;midsize|This is middle-sized text.}} &rarr; <span style="font-size:92%; line-height:1.30em">This is middle-sized text.</span>
 
 
 
The line-height is also reduced so that the text wraps as less-tall lines, as in the following example of text with breaks in the lines:
 
 
 
::* {&#123;midsize|This example shows multiple lines of&lt;br>middle-sized text as being wrapped&lt;br><br>onto multiple lines, closer together.}} &rarr;<br><span style="font-size:92%; line-height:1.30em">This example shows multiple lines of<br>middle-sized text as being wrapped<br>onto multiple lines, closer together.</span>
 
 
 
::* {&#123;midsize|height=0.9|This 2nd example shows multiple lines of&lt;br>middle-sized text being wrapped&lt;br><br>onto multiple lines, even closer together.}} &rarr;<br><span style="font-size:92%; line-height:0.9em">This 2nd example shows multiple lines of<br>middle-sized text being wrapped<br>onto multiple lines, even closer together.</span>
 
 
 
Because many users are unaware of the style directives for changing both the font-size and the line-height attributes, then Template:Midsize provides an easy way to consistently reduce text as being middle-sized, but larger than small-font text, while also allowing "height=1.1" or "size=n" for other sizes.
 
 
 
==See also==
 
* [[Template:Small]] - for smaller text as: {&#123;small|This is small text.}} &rarr; {{small|This is small text.}}
 
 
 
[[Category:Wikipedia formatting and function templates]]
 
</noinclude>
 

Revisión actual del 22:20 7 jun 2016

{{{1}}}
50px Template documentation[create]