切换搜索
搜索
切换菜单
notifications
切换个人菜单
查看“模板:XMLElement/doc”的源代码
来自决策链云智库
更多操作
←
模板:XMLElement/doc
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{Documentation subpage|[[Template:XMLElement]] and [[Template:HTMLElement]]}} <!-- Categories and interwikis go at the bottom of this page. --> == 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: {{para|atr|&nbsp;style{{=}}"..."}} |end = "no" | "optional" – Use "no" to illustrate a void element like {{tag|br|v}}. Use "optional" to display both markup types; output is like: {{tag|style}} or {{tag|style|v}} |nospace = "yes" ("y", etc.) – will suppress the space before the / in a void element: {{tag|br|v}} instead of {{tag|br|v}} |noslash = "yes" ("y", etc.) – will suppress both slash and space in a void element: {{tag|br|o}} instead of {{tag|br|v}} |deprecated = "yes" ("y", etc.) - strikes through the tag, and adds "(deprecated)" after it. {{para|end}} also supports a special value of <code>no_both</code> that will show both the bare tag (e.g. {{tag|br|o}}), as well as the version with the slash. By default, it provide the {{tag|br|v}} variant, labeled with "(XHTML compatible)". If used with {{para|nospace}}, it will show the {{tag|br|v}} version, labeled with "(XML compatible)". <!-- Planned: |support = (CSV of support clients) |dtd = "S"|"T"|"F"|[name of implementer] --><!-- leaving Planned here commented out, but there's no need to publish "planned" fields that aren't implemented --> == See also == * {{tl|tag}} — to produce a preformatted mention of an XML/HTML-style tag <includeonly>{{Sandbox other|| <!-- Categories and interwikis go here: --> [[Category:Wikipedia formatting and function templates]] [[sl:Predloga:XMLElement]] }}</includeonly>
本页使用的模板:
模板:Documentation subpage
(
查看源代码
)
模板:Mbox
(
查看源代码
)
模板:Para
(
查看源代码
)
模板:Strong
(
查看源代码
)
模板:Tag
(
查看源代码
)
模板:Terminate sentence
(
查看源代码
)
模板:Tl
(
查看源代码
)
模块:Arguments
(
查看源代码
)
模块:Message box
(
查看源代码
)
模块:Message box/configuration
(
查看源代码
)
模块:Message box/ombox.css
(
查看源代码
)
模块:Text
(
查看源代码
)
模块:Yesno
(
查看源代码
)
返回
模板:XMLElement/doc
。