(Translated by https://www.hiragana.jp/)
Template:Yes - 维基百科,自由的百科全书 とべ转到内容ないよう

Template:Yes

被永久保护的模板
维基百科ひゃっか自由じゆうてき百科ひゃっかぜん
これ
文档图示 板文いたぶん[查看] [编辑] [历史] [きよしじょ缓存]

ほん系列けいれつちゅうてきいたよう于在ひょうかくちゅう创建一个含有文本以及适当的背景颜色的单元格。

它们どおり常用じょうよう较表なか

れい如,{{yes}}はた产生一个绿色背景的单元格。单元かくちゅうてきぶんほんだいいち个参すうれい如,{{yes|Sure}}はた输出“Sure”;ざい指定していだい一参数值的情况下,{{yes}}はた输出だま认值:“”。だい多数たすうばんまこと许编しゃ以这种方しきくつがえ盖默认文ほんゆう些模ばん需要じゅようざい调用きさき放置ほうちぶんほん{{table cell template}} ぶんほん),ゆう些模ばん需要じゅようざい两者使用しよう竖线({{table cell template}} | ぶんほん)。下表かひょうちゅう提供ていきょうりょう关于颜色だま认文ほんてきしんいき

如果您想对表かく单元かく使用しよう其他属性ぞくせいれいcolspanあるrowspan,则需要じゅようはた它们ざい调用てきばんまえ,并且あずか调用てきばん不能ふのうゆう竖线|れい如:

これ いや 適用てきよう
/いな
...
!{{Yes}} ||{{No}} ||rowspan=2 {{n/a}}
|-
|colspan=2 {{Yes-No}}
...

ばん

Table cell templates
属性ぞくせい[1] だま认语ほう 预览(だま认) てい义语ほう 预览(てい义)
table-rh {{rh}} | あるき标题[2] Row header {{rh|align=right}} | あるき标题 くだり标题
{{rh2}} | あるき标题[2] くだり标题 {{rh2|align=right}} | あるき标题 くだり标题
table-yes {{yes}} これ {{yes|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
table-maybe {{maybe}} 可能かのう {{maybe|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
table-no {{no}} いや {{no|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
{{eliminated}} 淘汰とうた {{eliminated|きょく}} きょく
{{active fire|12%}} かつ(12%)
{{lost}} しつ {{lost|しつ败}} しつ
{{safe}} 安全あんぜん {{safe|护}}
table-active {{active}} かつ {{active|かつ跃中}} かつ跃中
table-siteactive {{site active}} かつ {{site active|Up}} Up
{{coming soon}} そくはた到来とうらい {{coming soon|半年はんとしない}} 半年はんとしない
table-siteinactive {{site inactive}} かつ {{site inactive|Down}} Down
table-yes2 {{good}} {{good}} {{good|A}} {{good|A}}
{{yes2}} {{yes2|Text}} Text
{{ya}} 是 {{ya|text=Ya}} Ya
{{ya|Ya}} Ya {{ya|text|link=WP:ALT}} text
{{won}} {{won|text=white|color=darkblue}}
{{won|place=1}} 1 {{won|place=Gold}} Gold
{{won|place=2}} 2 {{won|place=Silver}} Silver
{{won|place=3}} 3 {{won|place=Bronze}} Bronze
table-no2 {{no2}} {{no2|Text}} Text
{{na}} 否 {{na|text=Na}} Na
{{na|Na}} Na {{na|text|link=WP:ALT}} text
{{nom}} ひさげめい {{nom|5}} 5
{{sho}} にゅうかこえたんめいたん {{sho|Proposed}} Proposed
{{longlisted}} にゅうかこえはつ选名单 {{longlisted|Rejected}} Rejected
{{TBA}} まち公布こうふ {{TBA|To be announced}} To be announced
table-success {{success}} 成功せいこう {{success|Mission complete}} Mission complete
{{operational}} 运作ちゅう {{operational|Returning data}} Returning data
table-failure {{failure}} しつ {{failure|Wrong orbit}} Wrong orbit
table-partial {{partial}} {{partial|Almost done}} Almost done
{{Regional}} 区域くいき {{Regional|Uyghur}} Uyghur
{{MaybeCheck}} 也许 {{MaybeCheck|text=Possibly}} Possibly
{{MaybeCheck|Possibly}} Possibly {{MaybeCheck|text|link=WP:ALT}} text
{{MaybeQuestion}} 也许 {{MaybeQuestion|text=Possibly?}} Possibly?
{{partial success}} 部分ぶぶん成功せいこう {{partial success|Reached orbit and returned pictures}} Reached orbit and returned pictures
{{partial failure}} 部分ぶぶんしつ {{partial failure|[[Cubesat]] not deployed}} Cubesat not deployed
{{okay}} 中立ちゅうりつ {{okay|C}} C
{{Yes-No}} /いな {{Yes-No|Yes with an if; no with a but}} Yes with an if; no with a but
{{some}} ぼう {{some|Many}} Many
{{nonpartisan}} Nonpartisan {{nonpartisan|Impartial}} Impartial
{{pending}} まちじょう {{pending|Awaiting}} Awaiting
{{unofficial}} かんかた {{unofficial|''De facto''}} De facto
{{unofficial2}} かんかた {{unofficial2|''De facto''}} De facto
{{usually}} 普遍ふへん {{usually|Commonly}} Commonly
{{rarely}} 罕见 {{rarely|Seldom}} Seldom
{{sometimes}} 偶尔 {{sometimes|Occasionally}} Occasionally
table-any {{any}} 任意にんい {{any|Anyone}} Anyone
table-na {{n/a}} 適用てきよう {{n/a|Unavailable}} Unavailable
{{varies}} 不定ふてい {{varies|Differs}} Differs
{{sdash}} {{sdash|[[File:Dash.svg|13px|link=|dash icon]]}} dash
{{BLACK}} 适用 {{BLACK|Banned}} Banned
{{non-album single}} 专辑单曲 {{non-album single|てい [[じゅん文字もじ|文字もじ]]}} 专辑单曲
{{unreleased}} 发布 {{unreleased|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
table-unknown {{unknown}} 未知みち {{unknown|?}} ?
{{dunno}} ? {{dunno|Not sure}} Not sure
table-automatic {{perhaps}} 也许 {{perhaps|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
table-depends {{depends}} 情況じょうきょう {{depends|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
table-included {{included}} にゅう {{included|Incorporated}} Incorporated
table-dropped {{dropped}} ほう {{dropped|Discontinued}} Discontinued
{{terminated}} 终止 {{terminated|Fired}} Fired
table-beta {{beta}} Beta {{beta|Preview}} Preview
table-experimental {{table-experimental}} 實驗じっけん性質せいしつ {{table-experimental|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
table-free {{free}} めん {{free|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
table-proprietary {{proprietary}} 专有 {{proprietary|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
table-nonfree {{nonfree}} づけ {{nonfree|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
table-needs {{needs}} 需要じゅよう {{needs|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
table-nightly {{nightly}} 每日まいにち构建 {{nightly|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
table-release-candidate {{release-candidate}} こう版本はんぽん {{release-candidate|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
table-draw {{draw}} {{draw|Text}} Text
table-planned {{planned}} 计划 {{planned|July 2018}} July 2018
table-scheduled {{scheduled}} はいてい日程にってい {{scheduled|3 March 2017}} 3 March 2017
incorrect {{incorrect}} 不正ふせいかく {{incorrect|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
noresult {{no result}} 无结はて {{no result|N.R.}} N.R.
no class {{CMain}} 主演しゅえん {{CMain|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
{{CAlso starring}} ぐんえんじ {{CAlso starring|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
{{CRecurring}} 常設じょうせつ {{CRecurring|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
{{CGuest}} きゃくくし {{CGuest|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
{{CNone}} Does not appear {{CNone|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
{{nocontest}} {{nocontest|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
{{not yet}} なお可用かよう {{not yet|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ
{{optional}} {{optional|てい [[じゅん文字もじ|文字もじ]]}} てい 文字もじ

Code

Common code to most if not all the templates in this series:

style="background: #abcdef; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="automatic table-automatic skin-invert"| {{{1|text}}}

Code specific to this template:

class="table-yes skin-invert" style="text-align:center; background:#90FF90"|

To make a new table cell template you can use: {{subst:Table cell templates|text= default text |bg= background color |class= a class name without prefix |align= standard horizontal alignment}}

You should leave out the align parameter and often the class parameter is unnecessary, too.

Add the new template to the table in the common documentation afterwards. Please consider reusing one of the other templates and please choose the color sensibly.

If you find a table cell template that does not take a parameter and you want to be able to change the text in the cell, do not duplicate the template! Instead, edit the template and change the text to a default parameter substitution. For example, if a template's text is Dropped, change that to {{{1|Dropped}}}.

style="background: #abcdef; color: black; vertical-align: middle; text-align: center; " class="automatic table-automatic"| text

TemplateData

以下いか该模いたてきかたぎいたすうすえ,适用于视化编辑とう工具こうぐ

Yesいたすうすえ

One of several templates for styling individual table cells with standard contents and colors.

ばんさんすう[编辑いたすうすえ]

さんすう描述类型じょう
text1

text to be displayed instead of the default, if this doesn't work put the text after the template, possibly with a vertical bar | in between

だま认值
(template dependent)
行文こうぶんほん
horizontal alignalign

text alignment inside the cell, either 'left', 'right', 'center' or 'justified'

だま认值
center
行文こうぶんほん
stylestyle

a semicolon separated list of additional CSS rules to be applied to the table cell

だま认值
行文こうぶんほん
background colorcolor

a valid CSS color value or name to override the standard the cell background, only available with some templates

だま认值
(template dependent)
行文こうぶんほん

See also

  • {{Change}} – calculates, displays and color-codes changes between two values
  • {{BSD-lic}} – specialized redirect for {{free}}
  • {{GPL-lic}} – specialized redirect for {{free}}
  • {{LGPL-lic}} – specialized redirect for {{free}}

Notes

  1. ^ 以在よう户样しきひょうちゅう引用いんようひょうかく单元かくばんてきHTML属性ぞくせい更改こうかいがい观。
  2. ^ 2.0 2.1 带参すう内容ないよう放置ほうちざい调用てきばんきさき,并以竖线(|)ぶんへだた