Extension talk:WikiSEO

About this board

Tim1mike (talkcontribs)

It shows after almost every article when I'm trying to update descriptions via terminal:

PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /extensions/WikiSEO/includes/DeferredDescriptionUpdate.php on line 101

PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /extensions/WikiSEO/includes/DeferredDescriptionUpdate.php on line 120


MediaWiki 1.38.2

PHP: 7.4.28 (fpm-fcgi)

Is that only my local problem?

IijimaYun (talkcontribs)
Reply to "PHP Warning:  count()"

Installation hack was necessary

2
Summary by Octfx

Folder needs to be named WikiSEO when cloning from git.

BAPhilp (talkcontribs)

YMMV but the instructions on main page did not work until I copied everything from

~/www/extensions/WikiSEO/wiki-seo-master/* down to

~/www/extensions/WikiSEO/

Octfx (talkcontribs)

The very first sentence under "Installation" states: "Download and place the file(s) in a directory called WikiSEO in your extensions/ folder."

Title is not the same as og:title

2
Mukilol2 (talkcontribs)

Hey, according to the documents:

"The title you want to appear in the html title tag. Will also be used for OpenGraph, Schema.org and Twitter metadata."

But the title tag and the og:title tag is different?

On my wiki the page name is "Page A". I set the title to "Page B" with the extension and it changes the title tag to "Page B" but the og:title still says "Page A"?

Octfx (talkcontribs)

This was introduced in Pull Request #19.

I think the reasoning being that the site name is already set in og:site_name.

Where do we go from here? Make this configurable, revert the change?

Reply to "Title is not the same as og:title"
Thomas-topway-it (talkcontribs)

I think there is an error in the file Validator.php and MetaTag.php, change "google_bot" to "googlebot"

Reply to "googlebot"

Any way to change the priority of images chosen?

2
Summary by Octfx

Released in v2.6.6

Marx.FelipeForte (talkcontribs)

The article mentions that WikiSEO creates a conflict with PageImages (a conflict which in my experience is always won by WikiSEO). Ideally, when articles have no {{#seo}} configured and no images, it should display the contents of $wgWikiSeoDefaultImage (which it does), if an article has no {{#seo}} configured, but has an image, PageImages should instead be the priority, as it's usually more relevant, and only when {{#seo}} is explicitly declared that it should be a priority over PageImages.


Is it possible to achieve this result?

Octfx (talkcontribs)

Thats a good point, I've just pushed a patch that will disable setting the default image, if a page image exists. Will be ready in the next release.

70.44.167.109 (talkcontribs)

mainEntityOfPage in the schema data is supposed to be a valid URI

schema.org/mainEntityOfPage


This extension sets it to the page title for some reason?


'mainEntityOfPage' => $this->outputPage->getPageTitle(),

Octfx (talkcontribs)

Hm this seems like an oversight. Would the url to the current page make sense, or the url to the main page?

Reply to "mainEntityOfPage"
Evolution and evolvability (talkcontribs)

Hello all,

I'm looking to apply metadata tags to WikiJournal articles in order to be compatibel with indexing and tracking services (e.g. AltMetric). Currently I'm using the code:

<div style="display:none"><meta name='citation_doi' value='{{{doi}}}'></div>

Where {{{doi}}} is the article's full doi number. For example in this article, it is included as:

<div style="display:none">&lt;meta name='citation_doi' value='10.15347/wjm/2017.005'&gt;</div>

However, the < and > characters get transcluded as &lt; and &gt; which (I think) prevents it from working properly.

Is Extension:WikiSEO compatible with the requirements of help.altmetric.com/...what-metadata-is-required-to-track-our-content?

(Also posted at Topic:U51g8egyx5j0xixz)

Octfx (talkcontribs)
Evolution and evolvability (talkcontribs)

@Octfx Aha! Exactly what I was thinking of - definitely useful info. Do you know if it's permitted on WMF wikis?

Octfx (talkcontribs)

That I don't know :/

The code is maintained in WMF Source Control, but to my knowledge noone asked to have it enabled

Evolution and evolvability (talkcontribs)

thanks. I'll look into it a bit further.

Evolution and evolvability (talkcontribs)

I've finally gotten around to requesting the extension enabled on wikiversity (discussion).

Reply to "Metadata and SEO tags"

Typo on translatewiki.net

3
Summary by Octfx

Fixed

Sabelöga (talkcontribs)
Kghbln (talkcontribs)

Good catch and great effort. This translation source must indeed be changed in the code repository of this extension to prevent this typo from propagating.

Octfx (talkcontribs)

Thanks for the report! The URL is fixed in the latest commit.

Summary by Octfx

Help section added

Арскригициониец (talkcontribs)

What does exactly mean title append and title prepend? I think there should be an example of this in the article.

Octfx (talkcontribs)
Арскригициониец (talkcontribs)

Thanks, it's exactly that I needed to understand

Twitter tags not being generated

2
Summary by Octfx

Closed due to inactivity

69.168.166.80 (talkcontribs)

I have installed the plugin and everything seems to work, however certain twitter tags are not being generator., like the twitter:card, image or the twitter:image:source tags. twitter:description is however showing up.

Octfx (talkcontribs)

Can you share a link to the page in question? Twitter images will only be generated if the parser function contains something like image = Local_file_to_use.png

Return to "WikiSEO" page.