Diferencia entre revisiones de «Ayuda»

De musiki
Ir a la navegación Ir a la búsqueda
[versión sin revisar][versión sin revisar]
Línea 2: Línea 2:
  
 
ver en [[Como citar]]
 
ver en [[Como citar]]
 +
 +
= Como agregar Imágenes =
 +
 +
== Rendering a single image ==
 +
 +
=== Sintaxis ===
 +
 +
La sintaxis completa para mostrar una imagen es:
 +
<nowiki>[[</nowiki>File:''filename.extension''|''options''|''caption'']]
 +
 +
where ''options'' can be zero or more of the following, separated by pipes ('''|'''):
 +
 +
* ''[[#Format|Format]]'' option: one of '''border''' and/or '''frameless''', '''frame''', '''thumb''' (or '''thumbnail''');
 +
*: Controls how the rendered image is formatted and embedded in the rest of the page.
 +
* ''[[#Size and frame|Resizing]]'' option: one of
 +
** ''{width}'''''px''' — Resizes the image to fit within the given maximum width in pixels, without restricting its height;
 +
** '''x'''''{height}'''''px''' — Resizes the image to fit within the given maximum height in pixels, without restricting its width;
 +
** ''{width}'''''x'''''{height}'''''px''' — Resizes the image to fit within the given width and height in pixels;
 +
** '''upright''' — Resizes an image to fit within reasonable dimensions, according to user preferences (suitable for images whose height is larger than width).
 +
*: Note that the image will always retain its aspect ratio, and can only be reduced (not increased) in size unless it's in a scalable media type (bitmap images cannot be scaled up).
 +
*: The default maximum size depends on the ''format'' and the internal image dimensions (according to its media type).
 +
* ''[[#Horizontal alignment|Horizontal alignment]]'' option: one of '''left''', '''right''', '''center''', '''none''';
 +
*: Controls the horizontal alignment (and inline/block or floating styles) of the image within a text (no default value).
 +
* ''[[#Vertical alignment|Vertical alignment]] option'': one of '''baseline''', '''sub''', '''super''', '''top''', '''text-top''', '''middle''', '''bottom''', '''text-bottom''';
 +
*: Controls the vertical alignment of a non-floating inline image with the text before or after the image, and in the same block (the default vertical alignment is '''middle''').
 +
* ''[[#Altering the default link target|Link]] option'': one of
 +
** '''link='''''{target}'' — Allows to change the target (to an arbitrary page title, or URL) of the generated link, activable on the rendered image surface; e.g. <code><nowiki>[[File:Example.jpg|20px|link=http://www.wikipedia.org]]</nowiki></code> renders as [[File:Example.jpg|20px|link=http://www.wikipedia.org]] (external link), or <code><nowiki>[[File:Example.jpg|20px|link=MediaWiki]]</nowiki></code> renders as [[File:Example.jpg|20px|link=MediaWiki]] (internal link).
 +
** '''link=''' (with an empty value) —  ({{mediawiki|rev:41727|MediaWiki 1.14+}}) Displays an image without any activable link; e.g. <code><nowiki>[[</nowiki>File:Example.jpg|20px|link=]]</code> renders as [[File:Example.jpg|20px|link=]].
 +
<!--*** '''!''' Link does '''not''' work with thumb, thumbnail or frame. (This works for external and internal links)-->
 +
*** '''!''' for MW 1.24 and lower: If you set <code>|link=|</code> (empty), then no <code>title</code> will be rendered. (See [[phabricator:T23454]].)
 +
* Other specific options:
 +
** '''alt='''''{alternative text}'' — ({{mediawiki|rev:41837|MediaWiki 1.14+}}) Defines the alternative text (maps to the HTML attribute <code>alt="..."</code> of the generated <code>&lt;img /&gt;</code> element) of an image that will be rendered if either the referenced image cannot be downloaded and embedded, or if the support media must use the alternative description text (e.g. when using a Braille reader or with accessibility options set by the user in its browser).
 +
** '''page='''''{number}'' — Renders the specified page number (currently only applicable when showing a .djvu or .pdf file).
 +
** '''class='''''{html class}'' — (MediaWiki 1.20+) Defines classes (maps to the HTML attribute <code>class="..."</code> of the generated <code>&lt;img /&gt;</code> element).
 +
** '''lang='''''{language code}'' — (MediaWiki 1.22+) For SVG files containing [http://www.w3.org/TR/SVG/struct.html#SwitchElement &lt;switch&gt;] statements varying on a ''systemLanguage'' attribute, selects what language to render the file in. The default is always English, even on non-English wikis.
 +
 +
If a parameter does not match any of the other possibilities, it is assumed to be the caption text.
 +
Caption text shows below the image in '''thumb''' and '''frame''' formats, or as tooltip text in any other format.
 +
Caption text displayed in the '''thumb''' and '''frame''' formats may contain wiki links and other formatting.
 +
MediaWiki extensions can add additional options.
 +
 +
If 'alt' is not specified and a caption is provided, the alternative text will be created automatically from the caption, stripped of formatting.
 +
 +
{{anchor|Format}}
 +
=== Formato ===
 +
 +
The following table shows the effect of all available formats.
 +
 +
{|class="wikitable plainlinks"
 +
|-
 +
!Descripción
 +
!Escribes
 +
!Obtienes
 +
{{ {{TNTN|Help:Images/frame}}|frame=|ex=sin formato especificado|float=no|inline=yes|render caption=no}}
 +
{{ {{TNTN|Help:Images/frame}}|frame=border|ex='''border''' results in a very small gray border|float=no|inline=yes|render caption=no}}
 +
{{ {{TNTN|Help:Images/frame}}|frame=frameless|ex='''frameless''', like thumbnail, respect user preferences for image width, but without border and no right float|float=no|inline=yes|render caption=no}}
 +
{{ {{TNTN|Help:Images/frame}}|frame=frameless|2=border|ex='''frameless''' and '''border'''|float=no|inline=yes|render caption=no}}
 +
{{ {{TNTN|Help:Images/frame}}|frame=frame|ex='''frame'''|float=yes|inline=no|render caption=yes}}
 +
{{ {{TNTN|Help:Images/frame}}|frame=thumb|ex='''thumb''' or '''thumbnail'''|float=yes|inline=no|render caption=yes}}
 +
|}
 +
 +
When the height of an image in thumbnail is bigger than its width (i.e. in portrait orientation rather than landscape) and you find it too large, you may try the option <code>upright=N</code>, where N is the image's aspect ratio (its width divided by its height, defaulting to 0.75).
 +
The alternative is to specify the desired maximum height (in pixels) explicitly.
 +
 +
Note that by writing <code>thumb={filename}</code>, you can use a different image for the thumbnail.
 +
 +
{{anchor|Size and frame}}
 +
=== Size and frame ===
 +
 +
Among different formats, the effect of the size parameter may be different, as shown below.
 +
 +
* For how it appears when its size is not specified, see [[#Format|Format]] section above.
 +
* When the format is not specified, or only <code>border</code>ed, the size can be both reduced and enlarged to any specified size.
 +
* In the examples below, the original size of the image is 400 × 267 pixels.
 +
* An image with <code>frame</code> always '''ignores''' the size specification, the original image will be reduced if it exceeds the maximum size defined in user preferences.
 +
* The size of an image with <code>thumb</code> can be reduced, but can not be enlarged beyond the original size of the image.
 +
 +
{|class="wikitable"
 +
|-
 +
! Formato !! Reduced !! Enlarged
 +
{{ {{TNTN|Help:Images/size}}|frame=}}
 +
{{ {{TNTN|Help:Images/size}}|frame=border}}
 +
{{ {{TNTN|Help:Images/size}}|frame=frame}}
 +
{{ {{TNTN|Help:Images/size}}|frame=thumb}}
 +
{{ {{TNTN|Help:Images/size}}|frame=frameless}}
 +
|}
 +
 +
{{anchor|Horizontal alignment}}
 +
=== Alineación horizontal ===
 +
 +
Note that when using the <code>frame</code> or <code>thumb[nail]</code> formats, the default horizontal alignment will be <code>right</code>.
 +
 +
{|class="wikitable"
 +
|-
 +
!Descripción
 +
!Escribes
 +
!Obtienes
 +
{{ {{TNTN|Help:Images/frame}}|2=100px|frame=|ex='''no horizontal alignment specified''', or default alignment|inline=yes|float=no}}
 +
{{ {{TNTN|Help:Images/frame}}|2=100px|frame=none|ex=specify horizontal alignment as: '''none'''|inline=no|float=no}}
 +
{{ {{TNTN|Help:Images/frame}}|2=100px|frame=center|ex=specify horizontal alignment as: '''center'''|inline=no|float=no}}
 +
{{ {{TNTN|Help:Images/frame}}|2=100px|frame=left|ex=specify horizontal alignment as: '''left'''|inline=no|float=yes}}
 +
{{ {{TNTN|Help:Images/frame}}|2=100px|frame=right|ex=specify horizontal alignment as: '''right'''|inline=no|float=yes}}
 +
|}
 +
 +
{{anchor|Vertical alignment}}
 +
=== Alineación vertical ===
 +
 +
The vertical alignment options take effect only if the image '''is''' rendered as an inline element and '''is not''' floating.
 +
They alter the way the inlined image will be vertically aligned with the text present in the same block before and/or after this image on the same rendered row.
 +
 +
Note that the rendered line of text where inline images are inserted (and the lines of text rendered after the current one) may be moved down (this will increase the line-height conditionally by additional line spacing, just as it may occur with spans of text with variable font sizes, or with superscripts and subscripts) to allow the image height to be fully displayed with this alignment constraint.
 +
 +
<div class="mw-collapsible mw-collapsed"><div class="mw-collapsible-toggle toccolours" style="float:none;text-align:center">'''{{Blue|Toggle source code view}}'''</div>
 +
<div class="mw-collapsible-content">
 +
<source lang="html4strict" enclose="div">
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
'''top:''' [[File:Example.jpg|20px|top]] [[File:Example.jpg|40px|top]] [[File:Example.jpg|100px|top]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
'''text-top:''' [[File:Example.jpg|20px|text-top]] [[File:Example.jpg|40px|text-top]] [[File:Example.jpg|100px|text-top]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
<sup>super:</sup> [[File:Example.jpg|20px|super]] [[File:Example.jpg|40px|super]] [[File:Example.jpg|100px|super]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
'''baseline:''' [[File:Example.jpg|20px|baseline]] [[File:Example.jpg|40px|baseline]] [[File:Example.jpg|100px|baseline]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
<sub>'''sub:'''</sub> [[File:Example.jpg|20px|sub]] [[File:Example.jpg|40px|sub]] [[File:Example.jpg|100px|sub]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
'''default:''' [[File:Example.jpg|20px]][[File:Example.jpg|40px]] [[File:Example.jpg|100px]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
'''middle:''' [[File:Example.jpg|20px|middle]] [[File:Example.jpg|40px|middle]] [[File:Example.jpg|100px|middle]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
'''text-bottom:''' [[File:Example.jpg|20px|text-bottom]] [[File:Example.jpg|40px|text-bottom]] [[File:Example.jpg|100px|text-bottom]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
'''bottom:'' [[File:Example.jpg|20px|bottom]] [[File:Example.jpg|40px|bottom]] [[File:Example.jpg|100px|bottom]]
 +
<del>text</del></u></span></p>
 +
</source></div></div>
 +
 +
To show the alignment result more clearly, the text spans are overlined and underlined, the font-size is increased to 200%, and the paragraph block is outlined with a thin border; additionally images of different sizes are aligned:
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
'''top:''' [[File:Example.jpg|20px|top]] [[File:Example.jpg|40px|top]] [[File:Example.jpg|100px|top]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
'''text-top:''' [[File:Example.jpg|20px|text-top]] [[File:Example.jpg|40px|text-top]] [[File:Example.jpg|100px|text-top]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
<sup>'''super:'''</sup> [[File:Example.jpg|20px|super]] [[File:Example.jpg|40px|super]] [[File:Example.jpg|100px|super]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
'''baseline:''' [[File:Example.jpg|20px|baseline]] [[File:Example.jpg|40px|baseline]] [[File:Example.jpg|100px|baseline]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
<sub>'''sub:'''</sub> [[File:Example.jpg|20px|sub]] [[File:Example.jpg|40px|sub]] [[File:Example.jpg|100px|sub]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
'''default:''' [[File:Example.jpg|20px]] [[File:Example.jpg|40px]] [[File:Example.jpg|100px]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
'''middle:''' [[File:Example.jpg|20px|middle]] [[File:Example.jpg|40px|middle]] [[File:Example.jpg|100px|middle]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
'''text-bottom:''' [[File:Example.jpg|20px|text-bottom]] [[File:Example.jpg|40px|text-bottom]] [[File:Example.jpg|100px|text-bottom]]
 +
<del>text</del></u></span></p>
 +
 +
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
 +
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
 +
'''bottom:''' [[File:Example.jpg|20px|bottom]] [[File:Example.jpg|40px|bottom]] [[File:Example.jpg|100px|bottom]]
 +
<del>text</del></u></span></p>
 +
 +
Notas:
 +
 +
# The "middle" vertical alignment position of the image (which is also the default) usually refers to the middle between the x-height and the baseline of the text (on which the vertical middle of the image will be aligned, and on which usually the text may be overstroke), but not to the middle of the line-height of the font-height that refers to the space between the "text-top" and "text-bottom" positions ; the font-height excludes:
 +
#* the additional line separation spacing normally divided equally into two line-margins (here 0.5em, according to line-height set to 200%) above and below the font-height).
 +
#* the additional line spacing which may be added by superscripts and subscripts.
 +
# However, if the image height causes its top or bottom position to go above or below the normal full line-height of text, the middle position will be adjusted after the increasing the top and/or bottom line-margins so that the image can fit and align properly, and all images (including those with smaller heights) will be vertically centered on the adjusted middle position (for computing the effective line-height, the text of each rendered row with the larger font-height will be considered).
 +
# The "text-top" and "text-bottom" alignment positions also excludes the extra line spacing added by superscripts and subscripts, but not the additional line-spacing defined by the line-height.
 +
# The "top" and "bottom" alignment positions take into account all these extra line spacings (including superscripts and subscripts, if they are present in a rendered line span). When the image alignment constrains the image to grow above or below the normal line-spacing, and the image is not absolutely positioned, the image will cause the "top" and "bottom" positions to be adjusted (just like superscripts and subscripts), so the effective line-height between rendered lines of text will be higher.
 +
# The "underline", "overline" and "overstrike" text-decoration positions should be somewhere within these two limits and ''may'' depend on the type and height of fonts used (the superscript and subscript styles may be taken into account in some browsers, but usually these styles are ignored and the position of these decorations may not be adjusted); so these decorations normally don't affect the vertical position of images, relatively to the text.
 +
 +
=== Stopping the text flow ===
 +
 +
On occasion it is desirable to stop text (or other inline non-floating images) from flowing around a floating image.
 +
Depending on the web browser's screen resolution and such, text flow on the right side of an image may cause a section header (for instance, <nowiki>== My Header ==</nowiki>) to appear to the right of the image, instead of below it, as a user may expect.
 +
The text flow can be stopped by placing '''<nowiki><br clear=all></nowiki>''' (or if you prefer, <nowiki><div style="clear: both"></div></nowiki>) before the text that should start below the floating image.
 +
(This may also be done without an empty line by wrapping the section with the floating images with <nowiki><div style="overflow: hidden">…</div></nowiki>, which clears all floats inside the <code>div</code> element.)
 +
 +
All images rendered as blocks (including non-floating '''center'''ed images, '''left'''- or '''right'''-floating images, as well as '''framed''' or '''thumbnail'''ed floating images) are implicitly breaking the surrounding lines of text (terminating the current block of text before the image, and creating a new paragraph for the text after them).
 +
They will then stack vertically along their left or right alignment margin (or along the center line between these margins for '''center'''ed images).
 +
 +
{{anchor|Altering the default link target}}
 +
=== Altering the default link target ===
 +
 +
The following table shows how to alter the link target (whose default is the image description page) or how to remove it.
 +
Changing the link does not alter the format described in the previous sections.
 +
 +
{|class="wikitable plainlinks"
 +
|-
 +
!Descripción
 +
!Escribes
 +
!Obtienes
 +
{{ {{TNTN|Help:Images/frame}}|2=link=Main Page|ex=enlace interno}}
 +
{{ {{TNTN|Help:Images/frame}}|2=link=http://wikipedia.org/wiki/Test|ex=enlace externo}}
 +
{{ {{TNTN|Help:Images/frame}}|2=link=|ex=sin enlace (página externa o de archivo)}}
 +
|}
  
  

Revisión del 08:44 12 mar 2017

Como Citar[editar]

ver en Como citar

Como agregar Imágenes[editar]

Rendering a single image[editar]

Sintaxis[editar]

La sintaxis completa para mostrar una imagen es:

[[File:filename.extension|options|caption]]

where options can be zero or more of the following, separated by pipes (|):

  • Format option: one of border and/or frameless, frame, thumb (or thumbnail);
    Controls how the rendered image is formatted and embedded in the rest of the page.
  • Resizing option: one of
    • {width}px — Resizes the image to fit within the given maximum width in pixels, without restricting its height;
    • x{height}px — Resizes the image to fit within the given maximum height in pixels, without restricting its width;
    • {width}x{height}px — Resizes the image to fit within the given width and height in pixels;
    • upright — Resizes an image to fit within reasonable dimensions, according to user preferences (suitable for images whose height is larger than width).
    Note that the image will always retain its aspect ratio, and can only be reduced (not increased) in size unless it's in a scalable media type (bitmap images cannot be scaled up).
    The default maximum size depends on the format and the internal image dimensions (according to its media type).
  • Horizontal alignment option: one of left, right, center, none;
    Controls the horizontal alignment (and inline/block or floating styles) of the image within a text (no default value).
  • Vertical alignment option: one of baseline, sub, super, top, text-top, middle, bottom, text-bottom;
    Controls the vertical alignment of a non-floating inline image with the text before or after the image, and in the same block (the default vertical alignment is middle).
  • Link option: one of
    • link={target} — Allows to change the target (to an arbitrary page title, or URL) of the generated link, activable on the rendered image surface; e.g. [[File:Example.jpg|20px|link=http://www.wikipedia.org]] renders as Example.jpg (external link), or [[File:Example.jpg|20px|link=MediaWiki]] renders as Example.jpg (internal link).
    • link= (with an empty value) — (Plantilla:Mediawiki) Displays an image without any activable link; e.g. [[File:Example.jpg|20px|link=]] renders as Example.jpg.
      • ! for MW 1.24 and lower: If you set |link=| (empty), then no title will be rendered. (See phabricator:T23454.)
  • Other specific options:
    • alt={alternative text} — (Plantilla:Mediawiki) Defines the alternative text (maps to the HTML attribute alt="..." of the generated <img /> element) of an image that will be rendered if either the referenced image cannot be downloaded and embedded, or if the support media must use the alternative description text (e.g. when using a Braille reader or with accessibility options set by the user in its browser).
    • page={number} — Renders the specified page number (currently only applicable when showing a .djvu or .pdf file).
    • class={html class} — (MediaWiki 1.20+) Defines classes (maps to the HTML attribute class="..." of the generated <img /> element).
    • lang={language code} — (MediaWiki 1.22+) For SVG files containing <switch> statements varying on a systemLanguage attribute, selects what language to render the file in. The default is always English, even on non-English wikis.

If a parameter does not match any of the other possibilities, it is assumed to be the caption text. Caption text shows below the image in thumb and frame formats, or as tooltip text in any other format. Caption text displayed in the thumb and frame formats may contain wiki links and other formatting. MediaWiki extensions can add additional options.

If 'alt' is not specified and a caption is provided, the alternative text will be created automatically from the caption, stripped of formatting.

Plantilla:Anchor

Formato[editar]

The following table shows the effect of all available formats.

When the height of an image in thumbnail is bigger than its width (i.e. in portrait orientation rather than landscape) and you find it too large, you may try the option upright=N, where N is the image's aspect ratio (its width divided by its height, defaulting to 0.75). The alternative is to specify the desired maximum height (in pixels) explicitly.

Note that by writing thumb={filename}, you can use a different image for the thumbnail.

Plantilla:Anchor

Size and frame[editar]

Among different formats, the effect of the size parameter may be different, as shown below.

  • For how it appears when its size is not specified, see Format section above.
  • When the format is not specified, or only bordered, the size can be both reduced and enlarged to any specified size.
  • In the examples below, the original size of the image is 400 × 267 pixels.
  • An image with frame always ignores the size specification, the original image will be reduced if it exceeds the maximum size defined in user preferences.
  • The size of an image with thumb can be reduced, but can not be enlarged beyond the original size of the image.
Formato Reduced Enlarged

{{ Plantilla:TNTN|frame=}} {{ Plantilla:TNTN|frame=border}} {{ Plantilla:TNTN|frame=frame}} {{ Plantilla:TNTN|frame=thumb}} {{ Plantilla:TNTN|frame=frameless}}

Plantilla:Anchor

Alineación horizontal[editar]

Note that when using the frame or thumb[nail] formats, the default horizontal alignment will be right.

Descripción Escribes Obtienes

{{ Plantilla:TNTN|2=100px|frame=|ex=no horizontal alignment specified, or default alignment|inline=yes|float=no}} {{ Plantilla:TNTN|2=100px|frame=none|ex=specify horizontal alignment as: none|inline=no|float=no}} {{ Plantilla:TNTN|2=100px|frame=center|ex=specify horizontal alignment as: center|inline=no|float=no}} {{ Plantilla:TNTN|2=100px|frame=left|ex=specify horizontal alignment as: left|inline=no|float=yes}} {{ Plantilla:TNTN|2=100px|frame=right|ex=specify horizontal alignment as: right|inline=no|float=yes}}

Plantilla:Anchor

Alineación vertical[editar]

The vertical alignment options take effect only if the image is rendered as an inline element and is not floating. They alter the way the inlined image will be vertically aligned with the text present in the same block before and/or after this image on the same rendered row.

Note that the rendered line of text where inline images are inserted (and the lines of text rendered after the current one) may be moved down (this will increase the line-height conditionally by additional line spacing, just as it may occur with spans of text with variable font sizes, or with superscripts and subscripts) to allow the image height to be fully displayed with this alignment constraint.

<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
'''top:''' [[File:Example.jpg|20px|top]] [[File:Example.jpg|40px|top]] [[File:Example.jpg|100px|top]]
<del>text</del></u></span></p>
 
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
'''text-top:''' [[File:Example.jpg|20px|text-top]] [[File:Example.jpg|40px|text-top]] [[File:Example.jpg|100px|text-top]]
<del>text</del></u></span></p>
 
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
<sup>super:</sup> [[File:Example.jpg|20px|super]] [[File:Example.jpg|40px|super]] [[File:Example.jpg|100px|super]]
<del>text</del></u></span></p>
 
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
'''baseline:''' [[File:Example.jpg|20px|baseline]] [[File:Example.jpg|40px|baseline]] [[File:Example.jpg|100px|baseline]]
<del>text</del></u></span></p>
 
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
<sub>'''sub:'''</sub> [[File:Example.jpg|20px|sub]] [[File:Example.jpg|40px|sub]] [[File:Example.jpg|100px|sub]]
<del>text</del></u></span></p>
 
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
'''default:''' [[File:Example.jpg|20px]][[File:Example.jpg|40px]] [[File:Example.jpg|100px]]
<del>text</del></u></span></p>
 
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
'''middle:''' [[File:Example.jpg|20px|middle]] [[File:Example.jpg|40px|middle]] [[File:Example.jpg|100px|middle]]
<del>text</del></u></span></p>
 
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
'''text-bottom:''' [[File:Example.jpg|20px|text-bottom]] [[File:Example.jpg|40px|text-bottom]] [[File:Example.jpg|100px|text-bottom]]
<del>text</del></u></span></p>
 
<p style="border:1px solid #AAA;padding:0;font-size:150%;line-height:2">
<span style="background:#FFF;color:#000;text-decoration:overline"><u><del>text</del>
'''bottom:'' [[File:Example.jpg|20px|bottom]] [[File:Example.jpg|40px|bottom]] [[File:Example.jpg|100px|bottom]]
<del>text</del></u></span></p>

To show the alignment result more clearly, the text spans are overlined and underlined, the font-size is increased to 200%, and the paragraph block is outlined with a thin border; additionally images of different sizes are aligned:

text top: Example.jpg Example.jpg Example.jpg text

text text-top: Example.jpg Example.jpg Example.jpg text

text super: Example.jpg Example.jpg Example.jpg text

text baseline: Example.jpg Example.jpg Example.jpg text

text sub: Example.jpg Example.jpg Example.jpg text

text default: Example.jpg Example.jpg Example.jpg text

text middle: Example.jpg Example.jpg Example.jpg text

text text-bottom: Example.jpg Example.jpg Example.jpg text

text bottom: Example.jpg Example.jpg Example.jpg text

Notas:

  1. The "middle" vertical alignment position of the image (which is also the default) usually refers to the middle between the x-height and the baseline of the text (on which the vertical middle of the image will be aligned, and on which usually the text may be overstroke), but not to the middle of the line-height of the font-height that refers to the space between the "text-top" and "text-bottom" positions ; the font-height excludes:
    • the additional line separation spacing normally divided equally into two line-margins (here 0.5em, according to line-height set to 200%) above and below the font-height).
    • the additional line spacing which may be added by superscripts and subscripts.
  2. However, if the image height causes its top or bottom position to go above or below the normal full line-height of text, the middle position will be adjusted after the increasing the top and/or bottom line-margins so that the image can fit and align properly, and all images (including those with smaller heights) will be vertically centered on the adjusted middle position (for computing the effective line-height, the text of each rendered row with the larger font-height will be considered).
  3. The "text-top" and "text-bottom" alignment positions also excludes the extra line spacing added by superscripts and subscripts, but not the additional line-spacing defined by the line-height.
  4. The "top" and "bottom" alignment positions take into account all these extra line spacings (including superscripts and subscripts, if they are present in a rendered line span). When the image alignment constrains the image to grow above or below the normal line-spacing, and the image is not absolutely positioned, the image will cause the "top" and "bottom" positions to be adjusted (just like superscripts and subscripts), so the effective line-height between rendered lines of text will be higher.
  5. The "underline", "overline" and "overstrike" text-decoration positions should be somewhere within these two limits and may depend on the type and height of fonts used (the superscript and subscript styles may be taken into account in some browsers, but usually these styles are ignored and the position of these decorations may not be adjusted); so these decorations normally don't affect the vertical position of images, relatively to the text.

Stopping the text flow[editar]

On occasion it is desirable to stop text (or other inline non-floating images) from flowing around a floating image. Depending on the web browser's screen resolution and such, text flow on the right side of an image may cause a section header (for instance, == My Header ==) to appear to the right of the image, instead of below it, as a user may expect. The text flow can be stopped by placing <br clear=all> (or if you prefer, <div style="clear: both"></div>) before the text that should start below the floating image. (This may also be done without an empty line by wrapping the section with the floating images with <div style="overflow: hidden">…</div>, which clears all floats inside the div element.)

All images rendered as blocks (including non-floating centered images, left- or right-floating images, as well as framed or thumbnailed floating images) are implicitly breaking the surrounding lines of text (terminating the current block of text before the image, and creating a new paragraph for the text after them). They will then stack vertically along their left or right alignment margin (or along the center line between these margins for centered images).

Plantilla:Anchor

Altering the default link target[editar]

The following table shows how to alter the link target (whose default is the image description page) or how to remove it. Changing the link does not alter the format described in the previous sections.


específicos de musiki[editar]

Para embeber videos[editar]

para youtube: <embedvideo service="youtube">"link de youtube"</embedvideo>


para vimeo: <embedvideo service="vimeo">https://vimeo.com/13290269</embedvideo>
ejemplo:

<embedvideo service="youtube">https://www.youtube.com/watch?v=7vQgXsY0PbE</embedvideo>

Para renombrar páginas[editar]

<embedvideo service="youtube">https://youtu.be/2fI2erk-UnA</embedvideo>


Para agregar cuestionarios[editar]

ir a [1]

Ejemplo[editar]




  

Falando-se em validade qual a Diferença entre o certificado A1 e o A3?

O Certificado A1 possui 1 ano de validade, já o A3 tem de 1 a 3 anos.
O certificado A1 possui 1 ano de validade, já o A3 pode ter de 1,5 anos a 3 anos.
Não há diferença entre validades, a única diferença é a mídia de armazenamento.
A1 tem maior validade.


Para fórmulas matemáticas[editar]

[math] [/math] </nowiki>

Para aprender la sintaxis de ecuaciones \latex recomendamos https://www.codecogs.com/latex/eqneditor.php

Algunos ejemplos:

[math]pi= \frac{3}{4} \sqrt{3}+24 \int_0^{1/4}{\sqrt{x-x^2}dx}[/math] <math>pi= \frac{3}{4} \sqrt{3}+24 \int_0^{1/4}{\sqrt{x-x^2}dx}</math>


[math]\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)[/math] <math>\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)</math>

[math]\sqrt{1-e^2}[/math] <math>\sqrt{1-e^2}</math>

Para poemas[editar]

Input text Output <poem> Une terre au flanc maigre, âpre, avare, inclément Où les vivants pensifs travaillent tristement,

Et qui donne à regret à cette race humaine

Un peu de pain pour tant de labeur et de peine ;

Des hommes durs, éclos sur ces sillons ingrats ;

Des cités d’où s’en vont, en se tordant les bras,

La charité, la paix, la foi, sœurs vénérables ;

L’orgueil chez les puissants et chez les misérables ; </poem>

<poem> Une terre au flanc maigre, âpre, avare, inclément Où les vivants pensifs travaillent tristement, ::Et qui donne à regret à cette race humaine Un peu de pain pour tant de labeur et de peine ; ::Des hommes durs, éclos sur ces sillons ingrats ; Des cités d’où s’en vont, en se tordant les bras, ::La charité, la paix, la foi, sœurs vénérables ; L’orgueil chez les puissants et chez les misérables ; </poem>

Para organizar un artículo con cabeceras[editar]

Introducir en la página en cualquier lugar la palabra clave: <headertabs /> Luego se organizarán los tabs desde la primer jerarquia. Ejemplo: = tab1 = contenido tab 1 = tab 2 = contenido tab 2


generales extraido de [2][editar]

Es posible dar formato al texto mediante el lenguaje de marcado de wiki. Este consiste de caracteres convencionales como asteriscos, apóstrofos o signos de igualdad, los cuales realizan una función especial en el wiki, a veces según su posición. Por ejemplo, para aplicar el estilo itálico a una palabra, escribe un par de apóstrofos a cada lado, ''así''.

El formato de etiquetas[editar]

Descripción Escribes Obtienes
Formato de caracter (en la misma linea) – aplicable en cualquier lado
Texto en cursivas
''cursiva''

cursiva

Texto en negrita
'''negrita'''

negrita

Negrita y cursiva
'''''negrita y cursiva'''''

negrita y cursiva

Texto tachado
<strike> texto tachado </strike>
texto tachado
Evitar formato de etiquetas
<nowiki>sin ''etiquetas''</nowiki>

sin ''etiquetas''

Evitar etiquetas wiki una única vez
[[Special:MyLanguage/API:Main page|API]]<nowiki/> extensión

API extensión

Formato de sección – solo al comienzo de la linea
Cabeceras de diferentes niveles
== Nivel 2 ==

=== Nivel 3 ===

==== Nivel 4 ====

===== Nivel 5 =====

====== Nivel 6 ======

Plantilla:Note

Nivel 2

Nivel 3

Nivel 4

Nivel 5
Nivel 6
División horizontal
Texto anterior
----
Texto posterior

Texto anterior


Texto posterior

Lista no numerada
* Comienza cada línea
* con un [[Wikipedia:asterisk|asterisco]] (*).
** Más asteriscos dan niveles más profundos
*** y más profundos aún.
* Los cortes de línea <br />no cortan los niveles.
*** Pero saltearse niveles crea espacios vacíos.
Cualquier otro comienzo, termina la lista.
  • Comienza cada línea
  • con un asterisco (*).
    • Más asteriscos dan niveles más profundos
      • y más profundos aún.
  • Los cortes de línea
    no cortan los niveles.
      • Pero saltearse niveles crea espacios vacíos.

Cualquier otro comienzo, termina la lista.

Lista numerada
# Comienza cada línea
# con un [[Wikipedia:Number_sign|numeral]] (#).
## Más numerales dan niveles más profundos
### y más profundos aún.
# Los cortes de línea <br />no cortan los niveles.
### Pero saltearse niveles crea espacios vacíos.
# Líneas en blanco

# termina la lista y empieza otra.
Cualquier otro comienzo también
termina la lista.
Comienza cada línea
  1. con un numeral (#).
    1. Más numerales dan niveles más profundos
      1. y más profundos aún.
  2. Los cortes de línea
    no cortan los niveles.
      1. Pero saltearse niveles crea espacios vacíos.
  3. Líneas en blanco
  1. termina la lista y empieza otra.

Cualquier otro comienzo también termina la lista.

  1. termina la lista y empieza otra.

Cualquier otro comienzo también termina la lista.

Lista de definición
;ítem 1
: definición 1
;ítem 2
: definición 2-1
: definición 2-2
ítem 1
definición 1
ítem 2
definición 2-1
definición 2-2
Aumentar Sangría/Tabulación
: Sangría simple
:: Sangría doble
::::: Sangría multiple

Plantilla:Note

Sangría simple
Sangría doble
Sangría multiple
Mezcla de diferentes tipos de lista
# uno
# dos
#* dos punto uno
#* dos punto dos
# tres
#; tres item uno
#: tres parte dos
# cuatro
#: cuatro parte uno
#: esto parece una continuación
#: y es usado frecuentemente
#: en vez <br />de <nowiki><br /></nowiki>
# cinco
## cinco sub 1
### cinco sub 1 sub 1
## cinco sub 2

Plantilla:Note

  1. uno
  2. dos
    • dos punto uno
    • dos punto dos
  3. tres
    tres item uno
    tres parte dos
  4. cuatro
    cuatro parte uno
    esto parece una continuación
    y es usado frecuentemente
    en vez
    de <br />
  5. cinco
    1. cinco sub 1
      1. cinco sub 1 sub 1
    2. cinco sub 2 Plantilla:Anchor
Texto preformateado
  Empezar cada linea con un espacio.
 Texto esta '''preformateado''' y las
 ''etiquetas'' '''''pueden''''' usarse.

Plantilla:Note

 Empezar cada linea con un espacio.
Texto esta preformateado y las
etiquetas pueden usarse.
Bloques de texto preformateado
 <nowiki>Empezar con un espacio en la primera columna, (antes del <nowiki>).

Entonces se mantendrá el
    formato.
 
Esto es ideal para copiar códigos:

def funcion():
    """cadena de documentación"""

    if True:
        print True
    else:
        print False</nowiki>
<nowiki>Empezar con un espacio en la primera columna, (antes del <nowiki>).

Entonces se mantendrá el
    formato.

Esto es ideal para copiar códigos:

def funcion():
    """cadena de documentación"""

    if True:
        print True
    else:
        print False

Párrafos[editar]

MediaWiki ignora los saltos simples de linea. Para empezar un nuevo párrafo, deje una linea vacía. Se puede forzar un salto de linea en medio de un párrafo con la etiqueta HTML <br />.

Etiquetas HTML[editar]

Algunas etiquetas HTML se permiten en MediaWiki, por ejemplo <code>, <div>, <span> y <font>. Esto aplica en cualquier lado que sean insertadas.

Descripción Escribes Obtienes
Subrayado
(Muestra un subrayado en la mayoria de navegadores)
<ins>Insertado</ins>

o

<u>Subrayado</u>

Insertado

o

Subrayado

Borrado
(Muestra un tachado en la mayoria de navegadores)
<s>Tachado</s>

o

<del>Borrado</del>

Tachado

o

Borrado

Ancho de texto fijo
<code>Código fuente</code>

o

<tt>Ancho de texto fijo</tt>

Código fuente

o

Ancho de texto fijo

Texto citado
Texto anterior
<blockquote>Texto citado</blockquote>
Texto posterior

Texto anterior

Texto citado

Texto posterior

Comentario
<!-- Esto es un comentario -->
Los comentarios son visibles
solo en el área de edición.

Los comentarios son visibles solo en el área de edición.

Texto completamente preformateado
<pre>Texto está '''preformateado''' y
''etiquetas'' '''''no pueden''''' ser realizadas</pre>

Plantilla:Note

Texto está '''preformateado''' y
''etiquetas'' '''''no pueden''''' ser realizadas
Texto preformateado personalizado
<pre style="color: red">Texto está '''preformateado'''
con un estilo y las
''etiquetas'' '''''no pueden''''' ser realizadas</pre>

Plantilla:Note

Texto está '''preformateado'''
con un estilo y las
''etiquetas'' '''''no pueden''''' ser realizadas

continuación:

Descripción Escribes Obtienes
Default preformatted text has a CSS attribute (white-space: pre-wrap;) to wrap the text according to available width
<pre>
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.
</pre>
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer.
Customized preformatted text with disabled text wrapping
<pre style="white-space: pre; 
white-space: -moz-pre; 
white-space: -pre; 
white-space: -o-pre;">
Esta sentencia larga es usada para demostrar el ajuste de texto. Esta sentencia adicional hace el texto más largo.
</pre>
Esta sentencia larga es usada para demostrar el ajuste de texto. Esta sentencia adicional hace el texto más largo.

Inserción de símbolos[editar]

Símbolos y otros caracteres especiales no disponibles en su teclado pueden ser insertados mediante de una serie especial de caracteres. Esas secuencias se llaman entidades HTML. Por ejemplo, la siguiente sequencia &rarr; cuando es insertada se muestra como el símbolo HTML flecha derecha → y cuando se inserta &mdash; se va a mostrar como un guión largo —.


Plantilla:Note

HTML symbol entities
Á á Â â ´ Æ æ À à Α α & Å å Ã ã Ä ä Β β ¦ Ç ç ¸ ¢
Χ χ ˆ © ¤ ° Δ δ ÷ É é Ê ê È è Ε ε Η η
Ð ð Ë ë ƒ ½ ¼ ¾ Γ γ > Í í Î î ¡ Ì ì Ι ι
¿ Ï ï Κ κ Λ λ « < ¯ µ · Μ μ  
¬ Ñ ñ Ν ν Ó ó Ô ô Œ œ Ò ò Ω ω Ο ο ª º Ø ø Õ õ Ö
ö Φ φ Π π ϖ ± £ Ψ ψ " » ® Ρ ρ
Š š § ­ Σ σ ς ¹ ² ³ ß Τ τ Θ θ ϑ Þ þ ˜
× Ú ú Û û Ù ù ¨ ϒ Υ υ Ü ü Ξ ξ Ý ý ¥ ÿ Ÿ Ζ ζ
Descripción Escribes Obtienes
Símbolo de derechos de autor
&copy;
©
Símbolo de la letra griega delta
&delta;
δ
Símbolo de la moneda Euro
&euro;

Ver la lista de todas las entidades HTML en el articulo de Wikipedia List of HTML entities. Adicionalmente, MediaWiki soporta dos referencias no-estandar: &רלמ; y &رلم; las cuales son consideradas equivalentes a &rlm; que es right-to-left mark.

Etiquetas HTML y símbolos mostrados (con y sin ser interpretados)[editar]

&amp;euro;  → &euro;
<span style="color: red; text-decoration: line-through;">Texto a corregir</span>  → Texto a corregir
&lt;span style="color: red; text-decoration: line-through;">Texto a corregir</span>  → <span style="color: red; text-decoration: line-through;">Texto a corregir</span>

Nowiki para HTML[editar]

<nowiki /> pueden prohibir etiquetas (HTML):

  • <<nowiki />pre>  → <pre>

Pero no puede evitar el símbolo &:

  • &<nowiki />amp;  → &

Para mostrar el símbolo & como texto, usar "&amp;" para replazar el caracter "&" (ej. escribir "&amp;nbsp;", lo cual resulta como "&nbsp;").

Otros formatos[editar]

Más allá del margen de beneficio de formato de texto se muestra anteriormente, éstas son algunas otras referencias de formato:

autor
autor

Puedes encontrar más referencias en Ayuda:Contenidos. [[Category:HelpPlantilla:Langcat|Formatting]]

Cascading Style Sheet