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

From GodWiki
Jump to: navigation, search
m (Oops... *now* it's |1=bare, and documented.)
(Now automatically calculates the 4th Thursday in November as Thanksgiving)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
โˆ’
{{#switch: {{CURRENTMONTHABBREV}}{{CURRENTDAY2}}
+
<noinclude><pre></noinclude>{{#switch: {{#ifeq:{{{1|}}}|default||{{CURRENTMONTHABBREV}}{{CURRENTDAY2}}}}
 
|#default=โ€ข
 
|#default=โ€ข
 
|Jan01={{#ifeq:{{{1|}}}|bare||<span title="Happy New Year!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}๐ŸŽ‰{{#ifeq:{{{1|}}}|bare||</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>}}
Line 7: Line 7:
 
|Jun12={{#ifeq:{{{1|}}}|bare||<span title="ะ”ะตะฝัŒ ะ ะพััะธะธ!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}๐Ÿ‡ท๐Ÿ‡บ{{#ifeq:{{{1|}}}|bare||</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|}}}|bare||<span title="Happy Halloween!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}๐ŸŽƒ{{#ifeq:{{{1|}}}|bare||</span>}}
 
|Oct31={{#ifeq:{{{1|}}}|bare||<span title="Happy Halloween!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}๐ŸŽƒ{{#ifeq:{{{1|}}}|bare||</span>}}
 +
|Nov{{#expr: (({{#time:N|1 November {{#time:Y}}}} + 3) mod 7) + 23}}={{#ifeq:{{{1|}}}|bare||<span title="Happy Thanksgiving!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}๐Ÿฆƒ{{#ifeq:{{{1|}}}|bare||</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>}}
 
|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|}}}|bare||<span title="Merry Christmas!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}๐ŸŽ„{{#ifeq:{{{1|}}}|bare||</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></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 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.
+
The first unnamed parameter may change the results:
 +
*Set to <code>bare</code> 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.
  
โˆ’
Normal: {{Navbox list/Bullet}}
+
Today, the template will provide the following:
  
โˆ’
Bare: {{Navbox list/Bullet|bare}}
+
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:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Template namespace templates|{{PAGENAME}}]]
 
[[Category:Template namespace templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 13:10, 26 November 2020

</noinclude>{{#switch: {{#ifeq:{{{1|}}}|default||{{CURRENTMONTHABBREV}}{{CURRENTDAY2}}}}
|#default=โ€ข
|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|}}}|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|}}}|bare||<span title="Happy April Fools!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}๐Ÿคก{{#ifeq:{{{1|}}}|bare||</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|}}}|bare||<span title="ะ”ะตะฝัŒ ะ ะพััะธะธ!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}๐Ÿ‡ท๐Ÿ‡บ{{#ifeq:{{{1|}}}|bare||</span>}}
|Oct31={{#ifeq:{{{1|}}}|bare||<span title="Happy Halloween!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}๐ŸŽƒ{{#ifeq:{{{1|}}}|bare||</span>}}
|Nov{{#expr: (({{#time:N|1 November {{#time:Y}}}} + 3) mod 7) + 23}}={{#ifeq:{{{1|}}}|bare||<span title="Happy Thanksgiving!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}๐Ÿฆƒ{{#ifeq:{{{1|}}}|bare||</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
|Dec25={{#ifeq:{{{1|}}}|bare||<span title="Merry Christmas!" style="font-size: x-small; display: inline-block; vertical-align: middle;">}}๐ŸŽ„{{#ifeq:{{{1|}}}|bare||</span>}}
}}<noinclude>
๐Ÿ“š 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.

The first unnamed parameter may change the results:

  • Set to bare to suppress HTML output (i.e., only the bullet symbol with no styling) for use with the list-style-type property.
  • Set to default to return the default bullet symbol regardless of the current day.

Today, the template will provide the following:

Normal: {{Navbox list/Bullet}} โ€ข

Bare: {{Navbox list/Bullet|bare}} โ€ข

Default: {{Navbox list/Bullet|default}} โ€ข