Template:Sometimes
偶尔 |
它们
{{yes}}
{{yes|Sure}}
{{yes}}
{{table cell template}}
),{{table cell template}} |
)。
如果您想对表colspan
rowspan
,则|
,
... !{{Yes}} ||{{No}} ||rowspan=2 {{n/a}} |- |colspan=2 {{Yes-No}} ...
模 板
[编辑]预览( |
预览( | |||
---|---|---|---|---|
table-rh |
{{rh}} | |
Row header | {{rh|align=right}} | |
|
{{rh2}} | |
{{rh2|align=right}} | |
|||
table-yes |
{{yes}} | {{yes| |
||
table-maybe |
{{maybe}} | {{maybe| |
||
table-no |
{{no}} | {{no| |
||
{{eliminated}} | {{eliminated| |
|||
{{active fire|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|A}} | ||
{{yes2}} | {{yes2|Text}} | Text | ||
{{ya}} | {{ya|text=Ya}} | Ya | ||
{{ya|Ya}} | {{ya|text|link=WP:ALT}} | |||
{{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|text|link=WP:ALT}} | |||
{{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}} | {{MaybeCheck|text|link=WP:ALT}} | |||
{{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]]}} | ||
{{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}} | {{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:
style="background: #b0c4de; color: black; vertical-align: middle; text-align: center; " class="partial table-partial skin-invert"|偶尔
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
[编辑]One of several templates for styling individual table cells with standard contents and colors.
描述 | 类型 | |||
---|---|---|---|---|
text | 1 | 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
| 单 | |
horizontal align | align | text alignment inside the cell, either 'left', 'right', 'center' or 'justified'
| 单 | |
style | style | a semicolon separated list of additional CSS rules to be applied to the table cell
| 单 | |
background color | color | a valid CSS color value or name to override the standard the cell background, only available with some templates
| 单 |
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}}