Diferencia entre revisiones de «Plantilla:Infobox/Meter»
De Inkipedia
m (Adjusting default behavior of contents) |
m (Texto reemplazado: «{{SiteColor|Generic}}» por «{{SiteColor|Generico}}») |
||
(No se muestran 9 ediciones intermedias de 2 usuarios) | |||
Línea 1: | Línea 1: | ||
<includeonly> | <includeonly>{{Infobox/MeterEx | ||
|color = {{{color|}}} | |||
|style = {{{style|}}} | |||
|contents = {{{contents|'''{{Trim|{{#if:{{{1|}}}|{{{1}}}|75}}}} / {{#if:{{{2|}}}|{{{2}}}|100}}'''}}} | |||
|{{#expr:{{#if:{{{1|}}}|{{{1}}}|75}}*100/{{#if:{{{2|}}}|{{{2}}}|100}}}}}}</includeonly><noinclude>__NOTOC__ | |||
{{Traducir}} | |||
<!-- Do not delete the following hidden elements. The resulting images are used by this template. --> | <!-- Do not delete the following hidden elements. The resulting images are used by this template. --> | ||
<div style="display: none;"> | <div style="display: none;"> | ||
Línea 6: | Línea 11: | ||
[[File:InfoboxMeter.svg|x24px]] | [[File:InfoboxMeter.svg|x24px]] | ||
</div> | </div> | ||
Displays a "progress bar" style meter for an infobox. | Displays a "progress bar" style meter for an infobox. This template is a proxy that pre-calculates parameters for [[Template:Infobox/MeterEx|Infobox/MeterEx]]. | ||
== Parameters == | == Parameters == | ||
{| | {| | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code> | |<code>value</code>||Unnamed.||The numeric value of the meter. | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code> | |<code>max</code>||Unnamed, optional.||The numeric maximum value of the meter. The default value is 100. | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code>color</code>||Optional.||An RGB triplet for the base color to use for formatting. The default value is {{SiteColor| | |<code>contents</code>||Optional.||Content to appear inside the meter. Belongs to the outermost element, overlapping the bar graphic. If absent, the text "<code>value</code> / <code>max</code>" will be used. | ||
|- style="vertical-align: top;" | |||
|<code>color</code>||Optional.||An RGB triplet for the base color to use for formatting. The default value is {{SiteColor|Generico}}, defined in [[Template:SiteColor|SiteColor]] as "Generic". | |||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code>style</code>||Optional.||A list of CSS values to apply to the outermost container. By default, the meter takes up 100% of the width of its parent container. | |<code>style</code>||Optional.||A list of CSS values to apply to the outermost container. By default, the meter takes up 100% of the width of its parent container. | ||
Línea 25: | Línea 32: | ||
|style = width: 250px; | |style = width: 250px; | ||
|color = {{SiteColor|Splatoon 2}} | |color = {{SiteColor|Splatoon 2}} | ||
| | |123 | ||
|210 | |||
}}</nowiki> | }}</nowiki> | ||
Línea 32: | Línea 40: | ||
|style = width: 250px; | |style = width: 250px; | ||
|color = {{SiteColor|Splatoon 2}} | |color = {{SiteColor|Splatoon 2}} | ||
| | |123 | ||
|210 | |||
}} | }} | ||
</noinclude> | </noinclude> |
Revisión actual - 22:49 24 sep 2023
Necesita traducir la información
La siguiente página necesita traducirse al español.
Demuestra tu compromiso con la wiki traduciendo la página.
Demuestra tu compromiso con la wiki traduciendo la página.
Displays a "progress bar" style meter for an infobox. This template is a proxy that pre-calculates parameters for Infobox/MeterEx.
Parameters
value |
Unnamed. | The numeric value of the meter. |
max |
Unnamed, optional. | The numeric maximum value of the meter. The default value is 100. |
contents |
Optional. | Content to appear inside the meter. Belongs to the outermost element, overlapping the bar graphic. If absent, the text "value / max " will be used.
|
color |
Optional. | An RGB triplet for the base color to use for formatting. The default value is 0, 153, 255, defined in SiteColor as "Generic". |
style |
Optional. | A list of CSS values to apply to the outermost container. By default, the meter takes up 100% of the width of its parent container. |
Example
Markup
{{Infobox/Meter |style = width: 250px; |color = {{SiteColor|Splatoon 2}} |123 |210 }}