Topic on Help talk:Extension:Linter

Separate the center tag from the obsolete

13
Sunpriat (talkcontribs)

It will be convenient to separate a category with a center tag from an obsolete category. All tags are relatively easy to update, but the center is widely used in image captions. Because of this (disputes over the design of articles), the center is more difficult to replace. But other tags can be updated much faster. In general, the center tag takes many lines in Linter/obsolete-tag and you have to go to the next page many times to find another tag.

Amire80 (talkcontribs)

If it's widely used in image captions, perhaps there should be a more structured way to specify that the caption should be centered.

I suggest going even further and separating all the tags, so that it will be possible to get a list of pages that use each tag.

Sunpriat (talkcontribs)

I would like to know why wikitext for images does not provide for the alignment of image captions. Perhaps there were reasons for this.

Yes, categories missing-end-tag and obsolete-tag (and stripped-tag; for example, it is convenient to have a separate list for table tags) are huge and split them into smaller ones could be helpful. Small categories are easier to handle (and more enthusiastic) than such large (hundreds of thousands) ones with "infinite scrolling."

Amire80 (talkcontribs)

I don't think that it was intentionally not allowed. The people who designed the captions years probably just thought that aligning them to the same side where the paragraphs begin is what's needed. I actually haven't seen a lot of images with centered captions, but maybe they are common in the wiki where you write often.

In general, design of pages across different languages should be as similar as possible unless there is a particular reason to do something differently. If there is a reason to make captions centered in the Russian Wikipedia in some cases, then maybe they should also be centered in these cases in all other languages. Or maybe they shouldn't Can you give me some examples of centered captions?

Sunpriat (talkcontribs)

You can read a little here . When I just deleted the center then they say "you broke my design", "I see it in that way". This is complicated by the fact that a center class is often adds to the gallery tag, in the infoboxes and panoramas the centered image caption, in books, reports on academic/university works pictures and captions often require to be centered. For examples you can use regexp in search >5k articles with a center tag (apart from what has been done through the template:center).

Amire80 (talkcontribs)

In Infoboxes and other templates it should be done by the template.

I read the pages and I'm still wondering why would anyone want to make usual image captions in articles centered. Is it systematic, or is it just a choice in certain articles?

Sunpriat (talkcontribs)

It is already by the template and it is centered, which differs from the design of simple-wikitext images in the text.

They see it in the sources (e.g. 1 2), and in them it because of the layout requirements ("Справочник издателя и автора А. Мильчин", "Гиленсон Справочник художественного и технического редакторов", "ГОСТ 7.32-2001 6.5.4", I think something in this direction) for the books and the other.

Amire80 (talkcontribs)

Um... Well, it's up to the Russian Wikipedia to decide. I know Russian, but I don't write in the Russian Wikipedia much. I will add, though, that it really shouldn't be different in different articles, and there should be really good reasons to change the default design anywhere.

SSastry (WMF) (talkcontribs)

Sorry folks .. the linter UI needs some serious work at some point.

As for the center tag, we could suppress it, but the question is if this preference for center tag is specific to russian wikipedia or something that is common on multiple wikis. Do either of you know?

Amire80 (talkcontribs)

It's a question for @Sunpriat.

I'd say that it shouldn't be suppressed.

My tip to @Sunpriat is to bypass the special page and write a bit of JavaScript that reads the pages data from the API, and then filter out the tags you don't need. It should be easy for anyone who is familiar with using JavaScript on MediaWiki, but I can help if needed.

Sunpriat (talkcontribs)
Amire80 (talkcontribs)

I couldn't find any instances of 'td' in the first 500 results, but here's something for 'center':

api = new mw.Api();
api.post( {
	"action": "query",
	"format": "json",
	"list": "linterrors",
	"lntcategories": "missing-end-tag",
	"lntlimit": "500",
	"lntnamespace": "0"
} ).done ( function ( result ) {
	for ( i = 0; i < result.query.linterrors.length; i++ ) {
		if ( result.query.linterrors[i].params.name === 'center' ) {
			console.log( result.query.linterrors[i].title );
		}
	}
} );

You can run it in the browser JavaScript console while viewing a page in the Russian Wikipedia.

It's super-rudimentary, but works :)

Sunpriat (talkcontribs)
Reply to "Separate the center tag from the obsolete"