19,580
edits
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
:For example, this template, when transcluded, can display just the name of the variable or function in a monospace font, distinguishing between variables and functions either through a color scheme or through the use of parentheses, e.g., '''<code>am_invert</code>''' can imply a variable, whereas '''<code>ai2_passive(...)</code>''' can imply a function, even if in this context actual arguments for <tt>ai2_passive</tt> are not listed. Placing the mouse over that "code snippet" would call up a hoverbox with the full information about the signature and default values. | :For example, this template, when transcluded, can display just the name of the variable or function in a monospace font, distinguishing between variables and functions either through a color scheme or through the use of parentheses, e.g., '''<code>am_invert</code>''' can imply a variable, whereas '''<code>ai2_passive(...)</code>''' can imply a function, even if in this context actual arguments for <tt>ai2_passive</tt> are not listed. Placing the mouse over that "code snippet" would call up a hoverbox with the full information about the signature and default values. | ||
::[[User:Geyser|geyser]] ([[User talk:Geyser|talk]]) 11:26, 9 February 2018 (CET) | ::[[User:Geyser|geyser]] ([[User talk:Geyser|talk]]) 11:26, 9 February 2018 (CET) | ||
I agree that the system could use a visual redesign. I was never all that crazy about the size that the command boxes take up. I'll look into fitting all the info on one line. I can also probably create a "short listing" template that just shows the variable/function name with additional info as hovertext. --[[User:Iritscen|Iritscen]] ([[User talk:Iritscen|talk]]) 18:57, 10 February 2018 (CET) |