Diferencia entre revisiones de «Plantilla:Tag»

De WikiEducator
Saltar a: navegación, buscar
(Usage)
Línea 1: Línea 1:
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
  
This template provides a quick way to mention an XML-style tag in a preformatted way. Mainly used in discussion/help pages.
 
 
=== Usage ===
 
 
*'''first parameter''' — ''(mandatory)''  the name of the HTML tag
 
*'''second parameter''' — what type of tag to display:
 
**<code>p</code> or <code>pair</code> – ''(default)'' display a matched pair of open-and-close tags: {{tag|font|pair}}
 
***To suppress the ellipsis which appears between the tags, add an empty {{para|content}} parameter
 
**<code>o</code> or <code>open</code> – display only the opening tag of an open-and-close pair: {{tag|span|open}}
 
**<code>c</code> or <code>close</code> – display only the closing tag of an open-and-close pair: {{tag|span|close}}
 
**<code>s</code> or <code>single</code> – display a single tag: {{tag|br|single}}
 
*'''content=''' — the text content of the tags
 
*'''params=''' — any parameters to be included in the opening tag
 
  
 
<includeonly>
 
<includeonly>

Revisión de 17:41 14 sep 2025