このテンプレートは、モジュール:Loomingを使用しています。また、このスクリプトはLuaで書かれています。
Using this template, you can create tables like those commonly used in the “Loom ingredient” section of articles about items. It can be used similarly to {{Loom}}
, except it creates the table for you.
By default, the table generates with 3 columns: Name, Ingredients, and the main column containing {{Loom}}
. You can set the parameter {{{showname=1}}}
or {{{showname=0}}}
in the first template of the table to show or hide the Name column. To group multiple looming templates into one table, you also need to set {{{head=1}}}
in the first template of the table, and {{{foot=1}}}
in the last.
Example usage:
{{Looming |head=1 |name=[[Banner|Base Banner]] |showdescription=1 |White Banner |Black Dye | |Base |Black Base Banner |Blink=Banner |Olink=Banner |description=Emblazons a base (bottom third colored) }} {{Looming |name=[[Banner|Dyed Globe Banner]] |White Banner |Blue Dye |Banner Pattern Globe |Globe |Blue Globe Banner |Blink=Banner |Olink=Banner |description=Emblazons a dyed globe (cube shaped earth) |foot=1 }}
produces:
名前 | 材料 | 旗の模様のレシピ | 説明 |
---|---|---|---|
Base Banner | 白色の旗 + 黒色の染料 |
Emblazons a base (bottom third colored) | |
Dyed Globe Banner | 白色の旗 + 青色の染料 + 地球の模様の旗の模様 |
Emblazons a dyed globe (cube shaped earth) |
[閲覧 | 編集 | 履歴 | キャッシュ破棄]上記の解説は、テンプレート:Looming/docから参照されています。