Jump to: navigation, search

Template:Navbox list/Bullet

316 bytes added, 08:45, 31 October 2020
Add "default" as option to always return the default bullet
<noinclude><pre></noinclude>{{#switch: {{#ifeq:{{{1|}}}|default||{{CURRENTMONTHABBREV}}{{CURRENTDAY2}}}}
|Jan01={{#ifeq:{{{1|}}}|bare||<span title="Happy New Year!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}🎉{{#ifeq:{{{1|}}}|bare||</span>}}
}}<noinclude></pre>{{doc|content=Intended for use in Navboxes, but usable anywhere, this template simply returns a single character for use as a bullet or separator, returning a special character on special days. Inspect the code for an accurate list.
Pass The first unnamed parameter may change the parameter results:*Set to <code>bare</code> (as the first unnamed parameter) to suppress HTML output (i.e., only the bullet symbol with no styling) for use with the list-style-type property.*Set to <code>default</code> to return the default bullet symbol regardless of the current day.
NormalToday, the template will provide the following: {{Navbox list/Bullet}}
Normal: {{tlc|Navbox list/Bullet}} {{Navbox list/Bullet}} Bare: {{tlc|Navbox list/Bullet|bare}} {{Navbox list/Bullet|bare}} Default: {{tlc|Navbox list/Bullet|default}} {{Navbox list/Bullet|default}}
[[Category:Template namespace templates|{{PAGENAME}}]]

Navigation menu