Difference between revisions of "Template:Navbox list/Bullet"

From GodWiki
Jump to: navigation, search
(Add switch |1=bare to output without html styling, for use in ul list-style-type properties)
m (Oops... *now* it's |1=bare, and documented.)
Line 1: Line 1:
 
{{#switch: {{CURRENTMONTHABBREV}}{{CURRENTDAY2}}
 
{{#switch: {{CURRENTMONTHABBREV}}{{CURRENTDAY2}}
 
|#default=•
 
|#default=•
|Jan01={{#ifeq:{{{1|}}}|ul||<span title="Happy New Year!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}🎉{{#ifeq:{{{1|}}}|ul||</span>}}
+
|Jan01={{#ifeq:{{{1|}}}|bare||<span title="Happy New Year!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}🎉{{#ifeq:{{{1|}}}|bare||</span>}}
|Feb14={{#ifeq:{{{1|}}}|ul||<span title="Happy Valentine's Day!" style="font-size: x-small; display: inline-block; vertical-align: middle;"}}>💘{{#ifeq:{{{1|}}}|ul||</span>}}
+
|Feb14={{#ifeq:{{{1|}}}|bare||<span title="Happy Valentine's Day!" style="font-size: x-small; display: inline-block; vertical-align: middle;"}}>💘{{#ifeq:{{{1|}}}|bare||</span>}}
|Apr01={{#ifeq:{{{1|}}}|ul||<span title="Happy April Fools!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}🤡{{#ifeq:{{{1|}}}|ul||</span>}}
+
|Apr01={{#ifeq:{{{1|}}}|bare||<span title="Happy April Fools!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}🤡{{#ifeq:{{{1|}}}|bare||</span>}}
|May10={{#ifeq:{{{1|}}}|ul||<span title="Happy Birthday Godville!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}🎂{{#ifeq:{{{1|}}}|ul||</span>}}
+
|May10={{#ifeq:{{{1|}}}|bare||<span title="Happy Birthday Godville!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}🎂{{#ifeq:{{{1|}}}|bare||</span>}}
|Jun12={{#ifeq:{{{1|}}}|ul||<span title="День России!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}🇷🇺{{#ifeq:{{{1|}}}|ul||</span>}}
+
|Jun12={{#ifeq:{{{1|}}}|bare||<span title="День России!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}🇷🇺{{#ifeq:{{{1|}}}|bare||</span>}}
|Oct31={{#ifeq:{{{1|}}}|ul||<span title="Happy Halloween!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}🎃{{#ifeq:{{{1|}}}|ul||</span>}}
+
|Oct31={{#ifeq:{{{1|}}}|bare||<span title="Happy Halloween!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}🎃{{#ifeq:{{{1|}}}|bare||</span>}}
|Dec23={{#ifeq:{{{1|}}}|ul||<span title="Festivus for the restivus!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}💪{{#ifeq:{{{1|}}}|ul||</span>}}
+
|Dec23={{#ifeq:{{{1|}}}|bare||<span title="Festivus for the restivus!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}💪{{#ifeq:{{{1|}}}|bare||</span>}}
 
|Dec24
 
|Dec24
|Dec25={{#ifeq:{{{1|}}}|ul||<span title="Merry Christmas!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}🎄{{#ifeq:{{{1|}}}|ul||</span>}}
+
|Dec25={{#ifeq:{{{1|}}}|bare||<span title="Merry Christmas!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}🎄{{#ifeq:{{{1|}}}|bare||</span>}}
}}<noinclude>{{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.}}
+
}}<noinclude>{{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 parameter <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.
 +
 
 +
Normal: {{Navbox list/Bullet}}
 +
 
 +
Bare: {{Navbox list/Bullet|bare}}
 +
}}
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Template namespace templates|{{PAGENAME}}]]
 
[[Category:Template namespace templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 07:37, 31 October 2020

📚 Documentation

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 parameter bare (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.

Normal: •

Bare: •