Okay. Thanks for making the extra effort.
-Robert
On Thu, Oct 29, 2015 at 6:05 AM, MZMcBride wrote:
> Robert Rohde wrote:
> >Which, after substituting "display:none;" I think translates directly to
> >the regex search:
> >
> >insource:/style[ ]*=[ ]*\"display:[ ]*none;[
Robert Rohde wrote:
>Which, after substituting "display:none;" I think translates directly to
>the regex search:
>
>insource:/style[ ]*=[ ]*\"display:[ ]*none;[ ]*\"/i
>
>That gives me 487 articles.
Almost, but not quite. You actually want this:
insource:/style[ ]*=[ ]*\"display:[ ]*none;?[
I'm not sure what your bug is, but those counts are way too high to be
accurate reflections of the wikitext in the main namespace on enwiki.
-Robert Rohde
On Mon, Oct 26, 2015 at 2:13 AM, MZMcBride wrote:
> Hi.
>
> I was curious about the prevalence and types of inline
Robert Rohde wrote:
>On Mon, Oct 26, 2015 at 2:13 AM, MZMcBride wrote:
>>The following are the top ten instances of inline styling from main
>>namespace pages on the English Wikipedia, as of about 2015-10-02:
>>
>>1552197 text-align: center;
>>499756 text-align: left;
Okay, I misunderstood those as page counts, which would be way too high.
Even if they are explicit usage counts, I am still surprised they are that
high.
BTW, is it surprising to anyone else that style elements aren't searchable
by default? Searching for "efcfff" [1], gives only a single article
It appears that the summary may have normalized the formatting of the CSS.
143095 display: none;
Your query[1] assumes a space after "display:" and gives 218 results. Using
no space[2] gives 2,473 results, but still assumes that no other elements
occur in the style attribute. A regex query[3]
As I read it MZMcBride's code [1] used the pattern,
pattern = r'style[ ]*=[ ]*"(.+?)"'
and then normalized the internal spaces.
Which, after substituting "display:none;" I think translates directly to
the regex search:
insource:/style[ ]*=[ ]*\"display:[ ]*none;[ ]*\"/i
That gives me 487
Daniel Friesen wrote:
>Perhaps some deeper segregation of those stats would be useful. ie:
>Separate the numbers of styles used between templates and pages.
>
>Then we might have a better idea of what kind of patterns are being used
>directly in pages that should actually be moved to templates or
On 2015-10-26 8:15 PM, MZMcBride wrote:
> Daniel Friesen wrote:
>> Perhaps some deeper segregation of those stats would be useful. ie:
>> Separate the numbers of styles used between templates and pages.
>>
>> Then we might have a better idea of what kind of patterns are being used
>> directly in
Do you have a old dump to check whatever the ratio has increased?
Vito
2015-10-26 4:27 GMT+01:00 MZMcBride :
> K. Peachey wrote:
> >Is this direct usage of the styling, or does it include styling introduced
> >by templates as well?
>
> Just direct usage of styling,
Is this direct usage of the styling, or does it include styling introduced
by templates as well?
On Monday, October 26, 2015, MZMcBride wrote:
> Hi.
>
> I was curious about the prevalence and types of inline styling (or more
> specifically, inline CSS) in articles on the
K. Peachey wrote:
>Is this direct usage of the styling, or does it include styling introduced
>by templates as well?
Just direct usage of styling, specifically anything approximately matching
'style="[...]"'. The script only looked at the wikitext directly used in
pages as that's what's provided
On 2015-10-25 8:27 PM, MZMcBride wrote:
> K. Peachey wrote:
>> Is this direct usage of the styling, or does it include styling introduced
>> by templates as well?
> Just direct usage of styling, specifically anything approximately matching
> 'style="[...]"'. The script only looked at the wikitext
13 matches
Mail list logo