Template:XMLElement
<{{{1}}}>...</{{{1}}}>
Usage
This is for list articles like HTML element.
{{XMLElement | tagname | name | content [|atr][|end][|nospace or |noslash][|deprecated] }}
|1 = tagname – name of tag (with or without namespace) to put in angle brackets, e.g. "ol" |2 = name – English-language name of the element in the spec, e.g. "Unordered List" |3 or |content = content data to put between open and start tags (defaults to "...")
Optional: |atr = XMLAttribute – use to display attributes and values. NOTE: This is run directly against the tag name, so you usually must include a non-breaking space:|atr= style="..."|end = "no" | "optional" – Use "no" to illustrate a void element like<br />. Use "optional" to display both markup types; output is like:<style>...</style>or<style />|nospace = "yes" ("y", etc.) – will suppress the space before the / in a void element:<br />instead of<br />|noslash = "yes" ("y", etc.) – will suppress both slash and space in a void element:<br>instead of<br />|deprecated = "yes" ("y", etc.) - strikes through the tag, and adds "(deprecated)" after it.
|end= also supports a special value of no_both that will show both the bare tag (e.g. <br>), as well as the version with the slash. By default, it provide the <br /> variant, labeled with "(XHTML compatible)". If used with |nospace=, it will show the <br /> version, labeled with "(XML compatible)".
See also
- {{tag}} — to produce a preformatted mention of an XML/HTML-style tag
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.