!mduWVRtKzYinVAelXP:matrix.org

MWStake General

128 Members
MediaWIki Stakeholders' Group general discussion25 Servers

Load older messages


SenderMessageTime
4 Apr 2020
@sen-sai:matrix.orgCharlycodensniffer is intergrated into PHPStorm as well and you can combine with other coding standards. (for anyone who didn't know) 19:40:09
@rheingoldriver:matrix.orgrheingoldriveri tried applying the xml file from here https://www.mediawiki.org/wiki/JetBrains_IDEs but it didn't catch all the errors19:56:09
@rheingoldriver:matrix.orgrheingoldriveroh i see, i didn't keep reading below that...19:56:21
@sen-sai:matrix.orgCharlyWhen you have the full MW local as well it will traverse down that code and show errors and hints to what it found as well19:57:54
@rheingoldriver:matrix.orgrheingoldriveri don't have a local install atm19:58:07
@rheingoldriver:matrix.orgrheingoldriveri was writing code on an install yaron gave me access to remotely and then copy pasting it locally to commit haha19:58:58
@sen-sai:matrix.orgCharlyWhenever I find myself getting lost, I just download the whole MW install and let PHPStorm figure out what I'm missing :-)19:59:25
@sen-sai:matrix.orgCharlyah I get it :-)19:59:50
@sen-sai:matrix.orgCharlyI was actually, for the first time in my life, editing a Wikipedia page :-)20:00:10
6 Apr 2020
@tgr:matrix.orgtgrthe PHPStorm code style is not really up to date, and won't catch a number of things it could10:00:02
@tgr:matrix.orgtgrwould be nice to get it updated10:00:09
@tgr:matrix.orgtgryou can integrate Codesniffer and that will be accurate, but that means you need to fight the IDE's auto-formatting all the time10:00:49
@rheingoldriver:matrix.orgrheingoldriverive been writing code in sublime, i only dl phpstorm to attempt to do the autoformat. is it worth it to switch to coding in phpstorm?14:21:28
@cicalese:matrix.orgcicaleseYou don't need to do a full install of MediaWiki to use PHP codesniffer from composer at the command line. That is, you need to download MediaWiki so you have the files, but you do not need to create a wiki or configure anything. Just put your extension in the extensions directory and, from your extension's directory, run "composer update" and then "composer test" or "composer fix". Well, you do need to install composer if you do not have it. (I use vim to edit my PHP.)14:30:56
@rheingoldriver:matrix.orgrheingoldriveroh i didnt even download mediawiki i just copied the files from that repo to one level outside of my folder with cargo in it and then ran from there14:32:16
@rheingoldriver:matrix.orgrheingoldriverhttps://github.com/wikimedia/mediawiki-tools-codesniffer#how-to-install this repo14:32:32
@cicalese:matrix.orgcicaleseYeah, as long as you have the files at the correct place above your extension, you're golden.14:32:59
8 Apr 2020
@tgr:matrix.orgtgrnot worth switching for just the autoformatting, you can probably configure any other IDE to do that11:18:08
@tgr:matrix.orgtgrPHPStorm is pretty decent, e.g. for using XDebug or for doing automated code refactoring; I never used sublime though so can't compare11:18:53
9 Apr 2020
@georgios:matrix.orgGeorgios MavropaliasHas someone seen any examples of information call from wikidata to a wikipedia page? Meaning that a wikipedia page has a value (e.g. population of a city) directly linked and derived from wikidata?12:54:20
@georgios:matrix.orgGeorgios Mavropalias * Has someone seen any examples of information call from wikidata to a wikipedia page? Meaning that a wikipedia page has a value (e.g. population of a city) directly linked and derived from wikidata12:54:24
@addshore:matrix.orgaddshoreI'm sure I can find some examples, but often they are burried deep in templates. They will either use LUA or one of the parser functions12:55:15
@georgios:matrix.orgGeorgios MavropaliasI just want to see how the 'citation' looks like (is there a better word?) and also if it can be made using visualeditor12:56:27
@addshore:matrix.orgaddshorehmmm, not sure what you mean byt citation in this context12:58:10
@addshore:matrix.orgaddshore * hmmm, not sure what you mean by citation in this context12:58:15
@addshore:matrix.orgaddshoreHere is an example of the property parser function on test wiki https://test.wikipedia.org/wiki/User:Addshore/sandbox12:58:36
@georgios:matrix.orgGeorgios Mavropaliasimage.png
Download image.png
13:00:21
@georgios:matrix.orgGeorgios MavropaliasThis is what i see13:00:43
@georgios:matrix.orgGeorgios MavropaliasIs it possible to put the population of e.g. New York in text with a hyperlink to the specific statement? So you would put the property number in a certain format (like the parser functions you wrote above) but in text it would render just the value of the property (e.g. just the population number of New York) and it would allow you to click it and take you to the specific property of the wikidata item13:02:43
@georgios:matrix.orgGeorgios MavropaliasI thought values or properties can be transcluded directly from wikidata to mediawiki pages13:03:52

Show newer messages


Back to Room ListRoom Version: