切换搜索
搜索
切换菜单
notifications
切换个人菜单
查看“模板:Em/doc”的源代码
来自星际公民中文百科
查看
阅读
查看源代码
查看历史
associated-pages
模板
讨论
更多操作
←
模板:Em/doc
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:确认用户
您可以查看和复制此页面的源代码。
{{Documentation}} {{Wikipedia template}} {{t|Em}} is used to put strong emphasis on the text as simple italicizing is purely typographic and is semantically meaningless. == Purpose == This template makes it faster and easier to apply HTML's <code><nowiki><em>...</em></nowiki></code> emphasis markup to text, and more importantly to indicate to human and bot editors they should not use <code><nowiki>''...''</nowiki></code> or <code><nowiki><i>...</i></nowiki></code> typographic italicization to replace the intentional and semantically meaningful <code><nowiki><em></nowiki></code>. Strong emphasis is usually rendered visually in an italic (oblique a.k.a. slanted) typeface by default on graphical browsers, but can be parsed and acted upon in customizable ways with style sheets, apps and text-to-speech screen readers. It is said to be semantic markup, i.e. markup that conveys meaning or context, not just visual appearance. Simple italicizing is purely typographic and is semantically meaningless. It is most often used for titles of publications (books, films, albums, etc.), foreign words and phrases, words as words (when quotation marks are not used for that purpose), names of ships, scientific names of organisms and other cases where stylistic conventions demand italics, but they convey no sense of emphasis. The average reader, and average editor, do not and need not care about this distinction most of the time, but it can be important and editors who understand it can use this template as a baseline insurance against accidental or careless replacement by bots and human editors. ==Usage== : {{tnull|em|<var>text to be emphasized</var>}} or, if the text to be emphasized contains an equals sign: : {{tnull|em|'''1{{=}}'''<var>text to be emphasized</var>}} These both render as: : {{em|text to be emphasized}} This template puts intentional and explicit {{tag|em}} (emphasis) [X]HTML markup around the text provided as the first parameter. It is safest to always use the {{para|1}} syntax. ===Optional parameters=== Advanced HTML values can be passed through the template to the HTML code: * {{para|role}} takes a WAI-ARIA role; adds <code>role="<var>rolename</var>"</code> to the HTML code * {{para|class}} takes a class name (or multiple class names, separated by spaces); adds <code>class="<var>classname[s]</var>"</code> to the HTML code * {{para|style}} takes inline CSS input; adds <code>style="<var>CSS directive[s]</var>"</code> to the HTML code * {{para|id}} takes a valid, unique HTML id (must begin with an alphabetic letter); adds <code>id="<var>name</var>"</code> to the HTML code * {{para|title}} takes text, which cannot be marked up in any way, and displays it as a pop-up "tooltip" (in most browsers) when the cursor hovers over the span <includeonly><!-- CATEGORIES BELOW THIS LINE, PLEASE: --> [[Category:Formatting and function templates]] </includeonly>
本页使用的模板:
模板:Documentation
(
查看源代码
)
模板:Em
(
查看源代码
)
模板:Hatnote/styles.css
(
查看源代码
)
模板:Mbox/styles.css
(
查看源代码
)
模板:Para
(
查看源代码
)
模板:T
(
查看源代码
)
模板:T/piece
(
查看源代码
)
模板:Tag
(
查看源代码
)
模板:Tnull
(
查看源代码
)
模板:Wikipedia template
(
查看源代码
)
模块:DPLlua
(
查看源代码
)
模块:DependencyList
(
查看源代码
)
模块:Documentation
(
查看源代码
)
模块:Enum
(
查看源代码
)
模块:Paramtest
(
查看源代码
)
模块:Yesno
(
查看源代码
)
返回
模板:Em/doc
。
Debug data: