Template:Both

来自Valve Developer Community
跳转到导航 跳转到搜索
English (en)Deutsch (de)Hrvatski (hr)Tiếng Việt (vi)
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Icon-translate.png Available doc translations
Info.png
文档页面 Template:Yes/doc/zh 不存在。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。

Usage

This template is designed to be used in comparison tables.


Parameters

  • {{{1}}} – The first unnamed parameter overrides the displayed text;
  • {{{align}}} – Overrides the alignment of the text in the table cell;
  • {{{style}}} – Override any style attributes of the table cell.

Examples

class = standard-table
Table Cell Wikitext Result
{{Both}} Both
{{Both|Text}} Text
{{Both|[[Main Page]]}} Main Page
{{Both|align=left}} Both
{{Both|style=color:#FFF}} Both
class = wikitable
Table Cell Wikitext Result
{{Both}} Both
{{Both|Text}} Text
{{Both|[[Main Page]]}} Main Page
{{Both|align=left}} Both
{{Both|style=color:#FFF}} Both
no class
Table Cell Wikitext Result
{{Both}} Both
{{Both|Text}} Text
{{Both|[[Main Page]]}} Main Page
{{Both|align=left}} Both
{{Both|style=color:#FFF}} Both

See Also

Table Cell Wikitext Result Indicates... Color Code
{{Yes}} Yes positive #385038
{{No}} No negative #503838
{{N/A}} N/A not applicable or
not available
#585838
{{Both}} Both multiple possibilities #383850