Template:RandomSelection: Difference between revisions

From ZelligWiki
Jump to navigation Jump to search
Created page with "<includeonly><span class="random-selection" data-choices="{{{1|}}}"></span></includeonly> <noinclude>{{Template:RandomSelection|first choice;second choice;third choice}} When using the template put the available choices after a <nowiki>|</nowiki> character, separated by semicolons, for example: <nowiki>{{Template:RandomSelection|first value;second value;third value}}</nowiki> Category:Templates </noinclude>"
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span class="random-selection" data-choices="{{{1|}}}"></span></includeonly>
<includeonly><span class="random-selection" style="display:none;">{{{choices|}}}</span></includeonly><noinclude>
<noinclude>{{Template:RandomSelection|first choice;second choice;third choice}}
When using the template put the available choices after the <nowiki>"|choices="</nowiki> part, separated by semicolons, for example <nowiki>{{Template:RandomSelection|choices=first choice;second choice;third choice}}</nowiki> will result in {{Template:RandomSelection|choices=first choice;second choice;third choice}}. Note that if you use an HTML tag as an input, it will be ignored and its contents will be printed without applying formatting.
When using the template put the available choices after a <nowiki>|</nowiki> character, separated by semicolons, for example: <nowiki>{{Template:RandomSelection|first value;second value;third value}}</nowiki>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 08:01, 4 October 2024

When using the template put the available choices after the "|choices=" part, separated by semicolons, for example {{Template:RandomSelection|choices=first choice;second choice;third choice}} will result in . Note that if you use an HTML tag as an input, it will be ignored and its contents will be printed without applying formatting.