Namespaces
Variants
Actions

Template:yes

From cppreference.com
Revision as of 02:37, 24 September 2011 by P12 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Yes
[edit] [{{purge}}] Template documentation

This is one of the templates used to provide consistent formatting for frequently used messages in table cells.

Template Result
{{yes|message (optional)|align=alignment (optional)|style=custom style (optional)}} Yes
{{no|message (optional)|align=alignment (optional)|style=custom style (optional)}} No
{{maybe|message (optional)|align=alignment (optional)|style=custom style (optional)}} Maybe
{{n/a|message (optional)|align=alignment (optional)|style=custom style (optional)}} N/A

message overrides the default text which is "Yes", "No", "Maybe" and "N/A" respectively.


{{popup|popup-text |cell-text (optional)}}

Adds a text area filled with cell-text plus one additional * (star character) appended. If cell-text is not provided, only the star * will appear. When a user hovers over the text area, a tooltip pops up filled with the popup-text. This template is converted to the raw HTML: <span title="popup-text">cell-text</span>.
{{popup}} is mainly intended for use in compiler support tables. In other cases where a tooltip is required, prefer {{tooltip}}.
Examples
  • {{popup|Additional info}} results in: *
  • {{popup|Additional info|*}} results in: **
  • {{popup|Additional info|READ ME}} results in: READ ME*