Template talk:didyouknow

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(Some suggestions)
(pretty sure this is the wrong page)
 
Line 1: Line 1:
== Some suggestions ==
== Some suggestions ==
-
 
+
{{see|Template talk:dailyarticle#Some suggestions}}
-
Hi Gfd,<br/>
+
-
Thanks for making this template and adding documentation!  Now that I understand its purpose better I'd like to suggest a couple of things:
+
-
* Right now, the template maps the day of the year to a subset of the available FA articles.  I think we can improve this by having a separate mapping template that enumerates all FAs (weekly and daily) and assigns each a number from 1-400 (or however many there are) and provides the FA article based on that input number.  Ideally it should also be able to find the article by year/year-offset but I'm not sure yet what the application for that would be.
+
-
* The FAs are currently on a repeated rotation so every day of the year would give the same FA.  We could help 'randomize' this by using a [[Wikipedia:Linear_congruential_generator#Sample_Python_code|Linear_congruential_generator]] formula as a simple but predictable PRNG.  We can then feed the formula the current <code>date*1000+dayOfYear</code> or <code>date*10000+month*100+dayOfMonth</code> value so that we end up with a predictable pattern that won't repeat for many years! Oh, I guess we'd have to normalize the input and output so that all 400 entries have the roughly equal probability of appearing.  But these things can be solved I think!
+
-
Anyway, that's my two cents on my two ideas.  This can be worked on once the fate of the main page redesign is decided. Thanks for your hard work! --[[User:Stux|Stux]] 14:40, 4 December 2020 (UTC)
+

Current revision as of 21:23, 4 December 2020

[edit] Some suggestions

See Template talk:dailyarticle#Some suggestions