Шаблон:Dialog/button/1-val
[преглед] [редактиране] [история] [опресняване]
Документация
This is a dialog formatting template. It is meant for use on interactive dialog pages, and may involve interactions between wiki markup, html, and javascript. Please carefully test any edits before making them. |
This шаблон is used on over 1000 pages. Changes to this шаблон may cause some server load, and mistakes will be visible on many pages. Please carefully test any edits before making them, and avoid making unnecessary edits. |
This is a subtemplate of {{dialog/button}}. Given the specification of a single dialog parameter for the button, it extracts the literal value provided for the parameter, if any. Uses {{evalx}}.
Internals
When a template returns a string starting with colon, as this subtemplate is sometimes ordinarily expected to do, the wiki platform prefixes a linebreak to it. Functions within a Wikilisp expression are not subject to this limitation since the entire Wikilisp expression is within a single template call; the result from this template can therefore be renormalized by Wikilisp function trim
, stripping off the prefixed linebreak, but must then be further processed within the Wikilisp expression to avoid re-prefixing by the wiki platform.