模板:TBA
待定 |
其列之牘從於表格,以置文與彩幕於單元格。適於比較之表。
For example, {yes}
makes a cell with a green background. The text in the cell is taken from the first parameter; {yes|Sure}
would output "Sure" otherwise it defaults to "Yes". Most templates allow authors to override the default text in this way, some require text put after the template call and some also need a vertical bar in between: {table cell template} text
or {table cell template} | text
. This information, the colors and default texts are found in the table below.
If you want to use other attributes for the table cells, e.g. colspan
or rowspan
, they need to be put before the template call and there must be no vertical bar |
in between them:
然 | 否 | 不適用 |
---|---|---|
是或否 |
... !{Yes} ||{No} ||rowspan=2 {n/a} |- |colspan=2 {Yes-No} ...
牘列
類[一] | 默認文法 | 預覽
(默認) |
自訂文法 | 預覽
(自訂) |
---|---|---|---|---|
table-rh |
{rh} | 行頭[二] | 行頭 | {rh|align=right} | 行頭 | 行頭 |
{rh2} | 行頭[二] | 行頭 | {rh2|align=right} | 行頭 | 行頭 | |
table-yes |
{yes} | 然 | {yes|自訂[[純文字|內文]]} | 自訂內文 |
table-maybe |
{maybe} | 或然 | {maybe|自訂[[純文字|內文]]} | 自訂內文 |
table-no |
{no} | 否 | {no|自訂[[純文字|內文]]} | 自訂內文 |
{eliminated} | 模板:Eliminated | {eliminated|輟} | 模板:Eliminated | |
{active fire|12%} | 模板:Active fire | |||
{lost} | 模板:Lost | {lost|失} | 模板:Lost | |
{safe} | 模板:Safe | {safe|護} | 模板:Safe | |
table-active |
{active} | 模板:Active | {active|存} | 模板:Active |
table-siteactive |
{site active} | 模板:Site active | {site active|增} | 模板:Site active |
{coming soon} | 或臨 | {coming soon|下半年} | 下半年 | |
table-siteinactive |
{site inactive} | 模板:Site inactive | {site inactive|跌} | 模板:Site inactive |
table-yes2 |
{good} | {good} |
{good|甲級} | {good|甲級}
|
{yes2} | 模板:Yes2 | {yes2|內文} | 模板:Yes2 | |
{ya} | 模板:Ya | {ya|text=Ya} | 模板:Ya | |
{ya|Ya} | 模板:Ya | {ya|text} | 模板:Ya | |
{won} | 獲獎 | {won|text=white|color=darkblue} | 獲獎 | |
{won|place=1} | 1 | {won|place=冠} | 冠 | |
{won|place=2} | 2 | {won|place=亞} | 亞 | |
{won|place=3} | 3 | {won|place=季} | 季 | |
table-no2 |
{no2} | 模板:No2 | {no2|Text} | 模板:No2 |
{na} | 模板:Na | {na|text=Na} | 模板:Na | |
{na|Na} | 模板:Na | {na|text} | 模板:Na | |
{nom} | 模板:Nom | {nom|5} | 模板:Nom | |
{sho} | 模板:Sho | {sho|Proposed} | 模板:Sho | |
{longlisted} | 模板:Longlisted | {longlisted|Rejected} | 模板:Longlisted | |
{TBA} | 待定 | {TBA|To be announced} | To be announced | |
table-success |
{success} | 模板:Success | {success|Mission complete} | 模板:Success |
{operational} | 模板:Operational | {operational|Returning data} | 模板:Operational | |
table-failure |
{failure} | 模板:Failure | {failure|Wrong orbit} | 模板:Failure |
table-partial |
{partial} | 模板:Partial | {partial|Almost done} | 模板:Partial |
{Regional} | 模板:Regional | {Regional|Uyghur} | 模板:Regional | |
{MaybeCheck} | 模板:MaybeCheck | {MaybeCheck|text=Possibly} | 模板:MaybeCheck | |
{MaybeCheck|Possibly} | 模板:MaybeCheck | {MaybeCheck|text} | 模板:MaybeCheck | |
{partial success} | 模板:Partial success | {partial success|Reached orbit and returned pictures} | 模板:Partial success | |
{partial failure} | 模板:Partial failure | {partial failure|[[Cubesat]] not deployed} | 模板:Partial failure | |
{okay} | 模板:Okay | {okay|C} | 模板:Okay | |
{Yes-No} | 是或否 | {Yes-No|Yes with an if; no with a but} | Yes with an if; no with a but | |
{some} | 模板:Some | {some|Many} | 模板:Some | |
{nonpartisan} | 模板:Nonpartisan | {nonpartisan|Impartial} | 模板:Nonpartisan | |
{pending} | 模板:Pending | {pending|Awaiting} | 模板:Pending | |
{unofficial} | 非官方 | {unofficial|''De facto''} | De facto | |
{unofficial2} | 模板:Unofficial2 | {unofficial2|''De facto''} | 模板:Unofficial2 | |
{usually} | 泛常 | {usually|常} | 常 | |
{rarely} | 模板:Rarely | {rarely|Seldom} | 模板:Rarely | |
{sometimes} | 模板:Sometimes | {sometimes|Occasionally} | 模板:Sometimes | |
table-any |
{any} | 模板:Any | {any|Anyone} | 模板:Any |
table-na |
{n/a} | 不適用 | {n/a|Unavailable} | Unavailable |
{varies} | 模板:Varies | {varies|差異} | 模板:Varies | |
{sdash} | 模板:Sdash | {sdash|[[File:Dash.svg|13px|link=|dash icon]]} | 模板:Sdash | |
{BLACK} | 模板:BLACK | {BLACK|黜} | 模板:BLACK | |
{non-album single} | 模板:Non-album single | {non-album single|自訂[[純文字|內文]]} | 模板:Non-album single | |
{unreleased} | 模板:Unreleased | {unreleased|自訂[[純文字|內文]]} | 模板:Unreleased | |
table-unknown |
{unknown} | 模板:Unknown | {unknown|?} | 模板:Unknown |
{dunno} | 模板:Dunno | {dunno|不明} | 模板:Dunno | |
table-automatic |
{perhaps} | 模板:Perhaps | {perhaps|自訂[[純文字|內文]]} | 模板:Perhaps |
table-depends |
{depends} | 模板:Depends | {depends|自訂[[純文字|內文]]} | 模板:Depends |
table-included |
{included} | 模板:Included | {included|Incorporated} | 模板:Included |
table-dropped |
{dropped} | 模板:Dropped | {dropped|Discontinued} | 模板:Dropped |
{terminated} | 模板:Terminated | {terminated|罷免} | 模板:Terminated | |
table-beta |
{beta} | 模板:Beta | {beta|Preview} | 模板:Beta |
table-experimental |
{table-experimental} | 模板:Table-experimental | {table-experimental|自訂[[純文字|內文]]} | 模板:Table-experimental |
table-free |
{free} | 免費 | {free|自訂[[純文字|內文]]} | 自訂內文 |
table-proprietary |
{proprietary} | 模板:Proprietary | {proprietary|自訂[[純文字|內文]]} | 模板:Proprietary |
table-nonfree |
{nonfree} | 模板:Nonfree | {nonfree|自訂[[純文字|內文]]} | 模板:Nonfree |
table-needs |
{needs} | 模板:Needs | {needs|自訂[[純文字|內文]]} | 模板:Needs |
table-nightly |
{nightly} | 模板:Nightly | {nightly|自訂[[純文字|內文]]} | 模板:Nightly |
table-release-candidate |
{release-candidate} | 模板:Release-candidate | {release-candidate|自訂[[純文字|內文]]} | 模板:Release-candidate |
table-draw |
{draw} | 模板:Draw | {draw|Text} | 模板:Draw |
table-planned |
{planned} | 模板:Planned | {planned|July 2018} | 模板:Planned |
table-scheduled |
{scheduled} | 模板:Scheduled | {scheduled|3 March 2017} | 模板:Scheduled |
incorrect |
{incorrect} | 模板:Incorrect | {incorrect|自訂[[純文字|內文]]} | 模板:Incorrect |
noresult |
{no result} | 模板:No result | {no result|N.R.} | 模板:No result |
無類 | {CMain} | 模板:CMain | {CMain|自訂[[純文字|內文]]} | 模板:CMain |
{CAlso starring} | 模板:CAlso starring | {CAlso starring|自訂[[純文字|內文]]} | 模板:CAlso starring | |
{CRecurring} | 模板:CRecurring | {CRecurring|自訂[[純文字|內文]]} | 模板:CRecurring | |
{CGuest} | 模板:CGuest | {CGuest|自訂[[純文字|內文]]} | 模板:CGuest | |
{CNone} | 模板:CNone | {CNone|自訂[[純文字|內文]]} | 模板:CNone | |
{nocontest} | {nocontest|自訂[[純文字|內文]]} | 自訂內文 | ||
{not yet} | 模板:Not yet | {not yet|自訂[[純文字|內文]]} | 模板:Not yet | |
{optional} | 模板:Optional | {optional|自訂[[純文字|內文]]} | 模板:Optional |
碼
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"| {1|text}
Code specific to this template:
style="background: #DDF; color: black; vertical-align: middle; text-align: center; " class="no table-no2"|待定
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
疏
TBA模板數據
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
| 行 | 非必填 |
他牘
- {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}
註
- ↑ The HTML class of table cell templates may be referenced in a user stylesheet to change appearance.
- ↑ 二點〇 二點一 Does not take a parameter; the content should be placed after the template call, separated by a pipe (|) character.
是案含於Template:Table cell templates/doc。(纂 | 史) 纂者可測於是模之試灶(立 | 鏡)與測(立)。 是模之子頁。 |