Template:Technology/doc

这是Template:Technology的模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。
参见:Technology

Technology can be used to create a linked icon with text or info tooltips for each technology.

Parameters

Parameter Description Required Default
1 English localized technology name or technology script name Required none
index Tooltip index, for tooltip-in-a-tooltip use
  • 1, 2, or 3
Optional none
w Width of icon, no effect if used with table Optional 24px

Parameter 1 must be either the proper English localized name of the technology or it script name:

Tooltip usage

This template can be used in paragraphs by wrapping the paragraph in a <div></div> or <span></span> tag, otherwise it breaks the paragraph layout. It can be used in wiki lists or table cells without issue otherwise. If index is not set, this is not necessary.

Examples

{{Technology|Rationalism|index=1}} results in

Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted

Note the line break; wrapping the paragraph in <span></span> results in:

{{Technology|Pan-nationalism|index=1}} results in Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted

Setting the index to a non-number or a number above 3 prevents a tooltip and sets just a basic icon display:

{{Technology|Enclosure}} results in Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted