「テンプレート:Mapping/doc」の版間の差分
ナビゲーションに移動
検索に移動
Dummy index (トーク | 投稿記録) ページの作成:「{{dochead}} This '''mapping''' template eases typing mappings: it puts bra notation (<code>⟨</code> and <code>]</code>) around each of its arguments and left and right brackets outside (it also removes surrounding spaces). You may optionally include a legend. Mappings are supported up to rank-4. === Usage === ; You type : <code><nowiki>{{mapping| 31 49 72 87 }}</nowiki></code> : <code><nowiki>{{mapping| 1 0 -4 -13 | 0 1 4 10 }}</nowiki></code> :'''…」 |
Dummy index (トーク | 投稿記録) 編集の要約なし |
||
| 1行目: | 1行目: | ||
{{dochead}} | {{dochead}} | ||
This '''mapping''' template eases typing [[mapping]]s: it puts bra notation (<code>⟨</code> and <code>]</code>) around each of its arguments and left and right brackets outside (it also removes surrounding spaces). You may optionally include a legend. Mappings are supported up to rank-4. | This '''mapping''' template eases typing [[マッピング|mapping]]s: it puts bra notation (<code>⟨</code> and <code>]</code>) around each of its arguments and left and right brackets outside (it also removes surrounding spaces). You may optionally include a legend. Mappings are supported up to rank-4. | ||
=== Usage === | === Usage === | ||
| 30行目: | 30行目: | ||
* [[Template: Multival]] | * [[Template: Multival]] | ||
* [[Template: Bra]] | * [[Template: Bra]] | ||
[[カテゴリ:やるべきこと:translate from English]] | |||
2025年9月5日 (金) 15:31時点における最新版
This mapping template eases typing mappings: it puts bra notation (⟨ and ]) around each of its arguments and left and right brackets outside (it also removes surrounding spaces). You may optionally include a legend. Mappings are supported up to rank-4.
Usage
- You type
{{mapping| 31 49 72 87 }}{{mapping| 1 0 -4 -13 | 0 1 4 10 }}
- Tip: adding spaces improves readability of the wiki markup.
- You get
- [⟨31 49 72 87]]
- [⟨1 0 -4 -13], ⟨0 1 4 10]]
- To include a legend, type
{{mapping|legend=1| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}{{mapping|legend=2| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}{{mapping|legend=3| 1 0 0 0 | 0 1 1 2 | 0 0 2 -1 }}
- So you get
- Mapping: [⟨1 0 0 0], ⟨0 1 1 2], ⟨0 0 2 -1]]
- Subgroup-val mapping: [⟨1 0 0 0], ⟨0 1 1 2], ⟨0 0 2 -1]]
- Gencom mapping: [⟨1 0 0 0], ⟨0 1 1 2], ⟨0 0 2 -1]]
Technical note
This template calls Template: Bra to render the brackets.