Diferencia entre revisiones de «Plantilla:LoadBox»
Línea 7: | Línea 7: | ||
class="mw-headline" id="{{{title|}}}" {{#if: {{{titlestyle|}}} | style="{{{titlestyle}}}" }} | class="mw-headline" id="{{{title|}}}" {{#if: {{{titlestyle|}}} | style="{{{titlestyle}}}" }} | ||
><b>{{{title|<strong class="error">Error: Title not specified ([[Template:LoadBox|help]])</strong>}}}</b><span | ><b>{{{title|<strong class="error">Error: Title not specified ([[Template:LoadBox|help]])</strong>}}}</b><span | ||
− | class="editsection plainlinks" title=" | + | class="editsection plainlinks" title="Editar: {{{page|}}}">[<nowiki />[{{fullurl: {{{page|}}} | action=edit }} edit]<nowiki />]</span |
></p | ></p | ||
><div | ><div |
Revisión actual del 19:05 19 oct 2015
Esta plantilla ha sido protegido de ediciones para prevenir futuros vandalismos.. Si deseas, puedes discutir este cambio en la página de discusión.
|
LoadBox Example[edit]
This template creates a box able to load content from another page.
Usage
{{LoadBox |page=<page> |title=<title> |float=<float> }}
The page parameter specifies the wiki link text of the content to be loaded (e.g., page=Namespace:Article/subpage
).
The title parameter specifies the identifying text to be displayed in the box, and its link target string (e.g., title=Loaded Content Title
). Leaving title unspecified will generate an error message and should be corrected.
The optional float parameter specifies how the box should be positioned. The only two valid values are left
, which creates a left-floated box, and none
, which creates an un-floated box spanning the available width. If float is not specified, or an invalid value provided, LoadBox creates a right-floated box.
Considerations
The generated box will change its size when its content is loaded by the reader. Consider using {{-}} to ensure that the box doesn't overlap or push aside other content on the page inappropriately (for example, the Usage heading above has a {{-}} before it so that the example won't overlap it when its content is loaded). Don't necessarily put {{-}} directly after LoadBox -- it may be better to put it below the content the LoadBox accompanies.
Alternatives
The preferred method for initially hiding content that won't significantly impact server load times is a table with class="collapsible"
, because it keeps all of an article's content in one place.
LoadBox is intended for small article fragments which could impact server load times if placed in the article directly. For large article fragments, which could actually constitute article sections, consider {{LoadPage}}.
La documentación anterior se transcluye de Plantilla:LoadBox/doc. (edit | history)