#Removing date of most recent edit from search results.
1 messages · Page 1 of 1 (latest)
That's google being lazy and not crawling
If the domain is super popular, crawl time would be each hours instead of years
Our wiki doesn't have AutoDescription (just SEO + TextExtracts + PageImages) and the dates also appear. What's interesting is that a few newer pages don't have it
oh that is interesting, huh
Oh so it's due to the search engine crawling? We get it on duckduckgo and bing as well
no idea but should be
Surely the date would remain the same no matter how often the page is crawled, as it is just the date the page was last edited on the wiki?
last time I checked my wiki and it says 7 days ago
oh
yeah it does look to be last edit date
that also, but to be precise, Google does sometimes behave weird
if it can't find the "updated" date, it looks into revision history
Looking at other wiki farms (and large wikis in general) it doesn't come up there, so I do think it's something we'd be able to turn off?
If so it makes sense that most wikis just don't get around to it
I feel like it's not something we can control from wiki level
it does seem very consistent for mira wikis hm
A quick google search had shown articles on how to remove the date. So I assume it's a default behavior
:o
but ^
Can I tell or request that Google not display the date in my meta description?
Blind Five Year Old, SF, CA
aha
these are two tags I suspect cause it on my wiki
You can try to inspect one of the pages on yours and check if these appear too!
Ooh taking a look now 👩🔬
Sadly removing those needs to be done higher up in the wiki hierarchy 😆
not sure, but it's the only date related thing I could find
in the source
I bet Google read date somewhere which user can see
(Just to say obviously, the logic for not wanting a date shown is that for the average user it can imply that the page or wiki is quite old or outdated, when in reality it's just... the very static front page, haha)
Like this one
I suppose we could update it every month or so but that's a little hacky haha
Unlikely, google uses abbreviations for the dates in the results. It would be weird if it managed to automatically obtain a relevant date about it from thousands of differently structured sites
As far as I know, Google use AI to read those
and I even see sometimes Google does override custom snippet text with text from articles
Like ignoring a custom description specified via wikiSEO?
yep
hmm
anyways I like the idea of disabling the date even if it was for every wiki on Miraheze. Of course doing so globally would require agreement of many users on meta
But the first step would be pinging someone who knows if it's even possible
aha
CosmicAlpha probably
yes, for homepages it does feel a little clunky or superfluous
phab is more for extension issues, unless you want to suggest it to wikiseo
Maybe we should first find out if it's even a possibility with how Miraheze is structured
I would suggest looking into application/ld+json which Google actually reads
hmm, let me see
interesting
you can control that field via WikiSEO
and it seems to support magic words such as {{REVISIONTIME}}
[[mw:Extension:WikiSEO]]
perhaps setting it blank would make WikiSEO stop returning a value?
oh wait, then which extension controls ld+json?
come on bot
The WikiSEO extension allows you to replace, append or prepend the HTML title tag content.
It also allows you to add common SEO (Search Engine Optimization) meta elements such as "keywords" and "description".
A working job queue is absolutely required for this extension to function.
Oh very interesting! I'll try it out!
I think also WikiSEO
though it seems GoogleRichCards does too
The only instance I see in the documentation is
|modified_time={{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}
published_time is the new value which also controls modified_time
odd that it isn't in the list of parameters
ah, makes sense
Something that'd be good to test yeah
I'm actually force crawling my main page to test rn
hmm this isn't testable via Special:ManageWiki/settings/wikiseo, is it? aha
per page setting
{{#seo: |published_time={{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}} }}
oh right!
{{#seo:|published_time=-}} seems to work
this means we can technically make it display the date of last purge? >:D
nope, that's only set to last revision
this is yes. But if other magic words work then we can
Btw setting published time to empty does nothing, but that makes sense
there is one to display the current date which of course won't change if the page is cached
hmmm a 503
I'm compelled to seek further clarification; looking at the wikiseo extensions page this is being done in.. localsettings.php?
Afaik you add a seo parser function to a page to change this.
^
Now, it changes the published time but not modified time 
But google maybe looks at published time for this
It would mean that this is false then
ld+json is slightly below OpenGraph
Google looks at the ld+json though first, no?
ld+json has the same values
ld+json is snippet
ah
hmm
seems like something to make a WMF Phabricator task for then
to disable that value
Fun fact: ld+json also handles search which you can search contents inside wiki directly without pressing search button
like this
ah
modified_time=- has no effect actually
maybe it's meant to take the value of published_time but for some reason isn't
hmmm maybe it detects that published_time is an invalid value and because of that sets to an automatic value? 
hm
right :o
Now, if google takes the value of modified_time, there's no way currently to affect the displayed date
modified_time is depending on published_time so either set published_time properly or disable the extension
let's see if modified_time copies published_time if it's a valid date then
nope it doesn't
it's uncontrollable
There's also nothing about it depending on published_time in the documentation, just that it's a removed tag that's set automatically
we only need to get schema.org to work
OpenGraph is what Discord, Twitter, etc... uses
oh, doesn't work also
Yes, it really seems to be impossible to customize via the extension
oh bruh, didn't see the dot
so we can't do anything with the modified time
some interesting reading
Google even looks at content date, not just ld+json or OpenGraph
interesting
It seems like if dateModified is specified, it would look at it instead of datePublished
but it isn't explained anywhere so not sure
that's Google issue sometimes
I do see result on Google that says 2022 but the content is 5 yrs ago

Since what we've been trying to do since is "hacking" the dateModified value to make the date disappear in search result, maybe we should request a change to the extension to not add this data at all when needed
It wouldn't prevent google from searching through other content for it but would hopefully hide it
it appears for wiki.gg, so it's more than likely Fandom that have removed that from core MW.
Or, maybe wiki.gg uses wikiSEO as well?
Hmm I cannot find any data in the source though. Looking at Coromon wiki btw, and there was no date in the main page search result (but was in another of a different page)
It's possible that Google gathers the date from the page itself there
What makes you think that?
because they have custom meta tags that MediaWiki does not support by default
like for open graph
so it looks like it's just this extension
though I don't discard them using a forked version of MediaWiki, just not as drastic as Fandom's
As far as I’m aware — and one of the devs and the wiki.gg project lead are both former colleagues of mine and we keep in touch — they’re not using a forked version of MW.
Last I saw, they were running an obsolete version of MW but it seems they upgraded, neat
also heh, they use CosmicAlpha's PortableInfobox extension!
ahh I see
It's interesting that for a lot of wiki.gg wikis the date only seems to show up on google, not bing or ddg :o
thanks for the investigation! We'll have a root around with this info; it definitely seems infeasible to easily affect at the moment
If it was thought a wikiseo update might help there I'd be happy to request it as well!
That would specifically be... requesting the option for "dateModified" ( and "datePublished"?), in application/ld+json, to not be added to specific pages through a parser function, I suppose?
Yeah, I believe that would fix it. Not adding those parameters at all
Sounds like a good step, I'll write that up now :)
You do but that's the wrong Phabricator
We can't do anything here on Miraheze
You'd need to ask the developer of the extension to do that on Wikimedia Phabricator
Ah I see!
https://phabricator.wikimedia.org/T317921
Submitted :) thanks for the advice
Looks great! Thanks for submitting that
I noticed that, hate this shit 
so, what's the solution w/ dates, or there's no solution?
There’s no solution.
Well removing WikiSEO would do it. But it's not a good idea 😆
No it wouldn’t? WikiSEO doesn’t cause the dates to appear.
same question was just before yours ...
ah
Oh it doesn't? Sorry I got an impression it does since documentation mentions setting the data... my bad
?