Difference between revisions of "En:WP rewiring"

From Creolista!
Jump to: navigation, search
(Deconstructing the tools)
(Convert internal)
 
(17 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
*coauthor (proceedings), 1992: "Newthink: An Orwellian specification language for real time safety critical systems" [http://ieeexplore.ieee.org/document/637483/]
 
*coauthor (proceedings), 1992: "Newthink: An Orwellian specification language for real time safety critical systems" [http://ieeexplore.ieee.org/document/637483/]
 
*coauthor, 2017: "Reclaiming U.S. Defense Leadership on Innovation: Three Priorities for the New USD(R&E)", [http://www.heritage.org/defense/report/reclaiming-us-defense-leadership-innovation-three-priorities-the-new-usdre Heritage Foundation]
 
*coauthor, 2017: "Reclaiming U.S. Defense Leadership on Innovation: Three Priorities for the New USD(R&E)", [http://www.heritage.org/defense/report/reclaiming-us-defense-leadership-innovation-three-priorities-the-new-usdre Heritage Foundation]
 +
 +
==UC Berkeley==
 +
 +
* Donald Duk's Chinese History teacher:  "The man I studied history under at Berkeley authored this book.  He was a spell-binding lecturer."  ([https://en.wikipedia.org/wiki/Donald_Duk Donald Duk], 1991)
 +
 +
* Cf. [https://en.wikipedia.org/wiki/Wikipedia:Wiki_Ed/University_of_California,_Berkeley/Social_Movements_and_Social_Media_(Fall_2017) Social Movements and Social Media] (Fall 2017)
  
 
==Toolz for finding authorial rights & responsibilities==
 
==Toolz for finding authorial rights & responsibilities==
  
<p>Developing more than the current attitude of "healthy skepticism" concerning WP is necessary, particularly for en.wiki.  Teachers could fairly simply construct wrappers around assignments related to Wikipedia.  For example, I could ask students to use the tool WikiBlame (revision history search) to find the author of a specific sentence within a WP article (Check lots of versions with a reasonably high skip number). For example to find out who added the bit about [http://wikipedia.ramselehof.de/wikiblame.php?user_lang=en&amp;lang=en&amp;project=wikipedia&amp;article=Jill+Stein&amp;needle=Cubans&amp;skipversions=25&amp;ignorefirst=50&amp;limit=5000&amp;offmon=2&amp;offtag=21&amp;offjahr=2017&amp;searchmethod=int&amp;order=desc&amp;user= concerning Cubans] to Jill Stein's page, I skipped 25 versions, ignored the first 50 and suggested checking 5000 versions. (Pushing the skip number up increases the likelihood of finding what you are looking for relatively quickly, I think.) </p>
+
<p>Developing more than the current attitude of "healthy skepticism" concerning WP is necessary, particularly for en.wiki.  Teachers could fairly simply construct wrappers around assignments related to Wikipedia.  For example, a good exercise would be teaching how to use the tool WikiBlame (revision history search which actually assigns '''credit''' not blame) in order to find the author of a specific sentence within a WP article. For example to find out who added the bit about [http://wikipedia.ramselehof.de/wikiblame.php?user_lang=en&amp;lang=en&amp;project=wikipedia&amp;article=Jill+Stein&amp;needle=Cubans&amp;skipversions=25&amp;ignorefirst=50&amp;limit=5000&amp;offmon=2&amp;offtag=21&amp;offjahr=2017&amp;searchmethod=int&amp;order=desc&amp;user= concerning Cubans] to Jill Stein's page, I skipped 25 versions, ignored the first 50 and suggested checking 5000 versions. (Pushing the skip number up increases the likelihood of finding what you are looking for relatively quickly, I think.) </p>
  
 
<p>Likewise it would be good practice to encourage newbies to read a different history page than the chronological revision history provided by default, favoring instead  the one given by the WMF-Tool Wikihistory.</p>
 
<p>Likewise it would be good practice to encourage newbies to read a different history page than the chronological revision history provided by default, favoring instead  the one given by the WMF-Tool Wikihistory.</p>
Line 13: Line 19:
 
<code>https://tools.wmflabs.org/xtools/wikihistory/wh.php?page_title=</code>
 
<code>https://tools.wmflabs.org/xtools/wikihistory/wh.php?page_title=</code>
  
<p>The results of this tool should be read with caution however.  For example, I have more edits to the page [https://tools.wmflabs.org/xtools/wikihistory/wh.php?page_title=Jill_Stein Jill Stein] (by far) than any other editor.  To conclude from that fact that I wrote the page on Jill Stein would be quite erroneous, as most of my edits were a product of my naive sentence-by-sentence editing style.    It is only by comparing the first and second editor's contributions ([https://tools.wmflabs.org/sigma/usersearch.py?name=SashiRolls&amp;page=Jill_Stein&amp;server=enwiki&amp;max= 1] | [https://tools.wmflabs.org/sigma/usersearch.py?name=Snooganssnoogans&amp;page=Jill_Stein&amp;server=enwiki&amp;max= 2]) to that page with yet another WMF tool (sigma) that the history becomes clearer concerning who wrote more of the page between our two front-runnersA transparent foundation, it seems to me, would want its users to have a more powerful combination of these two tools.</p>
+
<p>The results of this tool should be read with caution however.  For example, I have more edits to the page [https://tools.wmflabs.org/xtools/wikihistory/wh.php?page_title=Jill_Stein Jill Stein] (by far) than any other editor.  To conclude from that fact that I wrote the page on Jill Stein would be quite erroneous, as most of my edits were a product of my naive sentence-by-sentence editing style.    It is only by comparing the first and second editor's contributions ([https://tools.wmflabs.org/sigma/usersearch.py?name=SashiRolls&amp;page=Jill_Stein&amp;server=enwiki&amp;max= 1] | [https://tools.wmflabs.org/sigma/usersearch.py?name=Snooganssnoogans&amp;page=Jill_Stein&amp;server=enwiki&amp;max= 2]) to that page with yet another WMF tool (sigma) that the history becomes clearer concerning who wrote more of the page. </p>
 +
 
 +
<p>Students might even suggest a simple improvement to wiki-architecture... on the "view history page" why not remove the link to each page contributor's WP user page (which if not very useful, other than for counting the stars on their barn), one can always get there from their talk pageInstead, provide a link to their contributions to the mainspace page the reader is viewing.  This would be a chance to talk about variables.</p>
  
<p>The students would probably very quickly suggest a simple improvement to the WikiHistory tool: replace the links to each page contributor's WP user page (which if you think about it is really, really senseless) with a link to their contributions to that page. This would be a chance to talk about variables, perhaps.</p>
+
<code>https://tools.wmflabs.org/sigma/usersearch.py?name=ADD_NAME_HERE&amp;page=ADD_PAGE_HERE&amp;server=enwiki&amp;max=</code>
  
<code>https://tools.wmflabs.org/sigma/usersearch.py?name=ADD_NAME_HERE&amp;page=ADD_PAGE_HERE&amp;server=enwiki&amp;max=</code>
+
==Misc. Tech. Notes==
 +
===Note on BBcode===
 +
The BBcode-Mediawiki extension page is [https://www.mediawiki.org/wiki/Extension:BBCode archived] out of shame:&nbsp; here's what it looked like prior to [https://www.mediawiki.org/w/index.php?title=Extension:BBCode&amp;oldid=2157553 archival].
  
<p>TDK mentioned -- in the [http://wikipediareview.proboards.com/post/1346/thread starter thread] -- that in the encyclopedia of the future, users would be notified when their text was changed (in fairness, this was also noted by Greg K concerning an edit about Qatar [http://wikipediocracy.com/forum/viewtopic.php?f=17&t=6572&p=198917&#p198917 here] ^^).  (As it is users are individually notified only if a user punches the "undo" button, otherwise they have to track changes using their watchlists or the history page.)  In terms of copyright, teachers could ask students why Wikipedia does not permit them a simple manner of accessing and downloading all of their own graciously-given contributions to the encyclopedia.  There is nothing in the database design that prevents such a feature.  While one should certainly not expect something so clean as on a forum where one posts in blocks, there is nothing technically preventing a user from downloading all of their contributions to the encyclopedia ever, except that no tool has ever been developed and promoted to encourage users to do so.  Perhaps such a marketing strategy would be contrary to the altruism (the invisible sixth pillar of WP) that runs through Quaker-style consensus models.  But, to my knowledge, the tool does not exist.  Notifications of users when their text is changed?  That's going to require some processing time, but it's a fascinating idea.</p>
+
===Note on HTML Rendering===
 +
On [https://www.mediawiki.org/wiki/Publishing_from_MediaWiki this Mediawiki page], I learned that just by typing <code>?action=render</code> at the end of an address, it will publish HTML for you to save if you so desire.  It even works on [http://archive.is/vl95A Wikipedia hoax pages]. ^^
  
<p>So, hmm... I've mentioned httrack, wiki-blame, wiki-history, and sigma here. </p>
+
It must be said that the HTML produced is thick with handles (classes and such).
  
<p>Who can think of other tools for deconstructing <s style="color:gray;font-style:italic;">Wikipedia</s>?</p>
+
Also on HTML enabling (and the dangers that implies), cf. [here]
  
Flip Flopped reminded me of the [https://tools.wmflabs.org/sigma/editorinteract.py editor interaction tool], which is powerful. Entering one's own name when looking for cabalistas gives perspective if you feel several editors are working you over. ^^
+
[https://www.mediawiki.org/wiki/Alternative_parsers Parsers]
  
Probably some risk of confirmation bias there though.
 
  
==Bonus:  MediaWiki ↹ HTML (links)==
+
====MediaWiki ↹ HTML (links)====
  
 
here's a short procedure for converting external Wikilinks in a document to HTML using PRCE (Perl regex [https://www.debuggex.com/cheatsheet/regex/pcre cheatsheet]):
 
here's a short procedure for converting external Wikilinks in a document to HTML using PRCE (Perl regex [https://www.debuggex.com/cheatsheet/regex/pcre cheatsheet]):
Line 41: Line 51:
 
:| <i style="color:gray;">with</i> €
 
:| <i style="color:gray;">with</i> €
  
===External links: MediaWiki ↪ HTML===
+
=====External links: MediaWiki ↪ HTML=====
 
:replace <code>£(\S+) (\S+)µ</code>
 
:replace <code>£(\S+) (\S+)µ</code>
 
:with <code><a href="\1">\2</a></code>
 
:with <code><a href="\1">\2</a></code>
  
===External links: HTML ↪ MediaWiki ===
+
=====External links: HTML ↪ MediaWiki =====
:replace  <code><a href="(.*?)"></code>
+
:replace  <code>\<a href="(.*?)"\>(.*?)\</a\></code>
:with <code>[\1</code>
+
:with <code>[\1 \2]</code>
 
 
:replace <code></a></code>
 
:with <code>]</code>
 
 
 
===Anyone want to do internal links? ^^===
 
(The problem will be the pipe and spacing...)
 
 
 
===unpiped===
 
 
 
===piped===
 
 
 
==Note on BBcode==
 
The BBcode-Mediawiki extension page is [https://www.mediawiki.org/wiki/Extension:BBCode archived] out of shame:&nbsp; here's what it looked like prior to [https://www.mediawiki.org/w/index.php?title=Extension:BBCode&amp;oldid=2157553 archival].
 
 
 
==Note on HTML Rendering==
 
On [https://www.mediawiki.org/wiki/Publishing_from_MediaWiki this Mediawiki page], I learned that just by typing <code>?action=render</code> at the end of an address, it will publish HTML for you to save if you so desire.  It even works on [http://archive.is/vl95A Wikipedia hoax pages]. ^^
 
  
It must be said that the HTML produced is thick with handles (classes and such).
+
=====internal links=====
 +
======piped======
 +
======unpiped======
  
Also on HTML enabling (and the dangers that implies), cf. [here]
+
===Strip references / text from Wiki===
  
[https://www.mediawiki.org/wiki/Alternative_parsers Parsers]
+
====Unnamed References====
  
==Strip References from Wiki==
 
===Unnamed References===
 
 
<p>Search for: <code>\<ref\>.*?\</ref\></code></p>
 
<p>Search for: <code>\<ref\>.*?\</ref\></code></p>
 
<p>Replace with: <code>&nbsp;&nbsp;</code> </p>
 
<p>Replace with: <code>&nbsp;&nbsp;</code> </p>
===Named References===
+
 
 +
====Named References====
  
 
<p>Search for: <code>\<ref.*?></code></p>
 
<p>Search for: <code>\<ref.*?></code></p>
 
<p>Replace with: <code>&nbsp;&nbsp;</code> </p>
 
<p>Replace with: <code>&nbsp;&nbsp;</code> </p>
===Strip text leave blue-links===
+
 
 +
====Strip text leave blue-links====
 +
 
 
<p>Search for: <code>].*?\[</code></p>
 
<p>Search for: <code>].*?\[</code></p>
 
<p>Replace with: <code>,&nbsp;</code> </p>
 
<p>Replace with: <code>,&nbsp;</code> </p>
Line 86: Line 83:
  
 
[[Category: en.wiki]]
 
[[Category: en.wiki]]
 +
 +
===Convert internal===
 +
<pre>\[\[User talk:(.*?)\|(.*?)\]\]</pre>
 +
<pre>[https://en.wikipedia.org/wiki/User_talk:\1 \2]</pre>

Latest revision as of 22:00, 20 February 2020

Deconstructing the tools

Some writing from the Chief Technical Officer of the WMF:

  • coauthor (proceedings), 1992: "Newthink: An Orwellian specification language for real time safety critical systems" [1]
  • coauthor, 2017: "Reclaiming U.S. Defense Leadership on Innovation: Three Priorities for the New USD(R&E)", Heritage Foundation

UC Berkeley

  • Donald Duk's Chinese History teacher: "The man I studied history under at Berkeley authored this book. He was a spell-binding lecturer." (Donald Duk, 1991)

Toolz for finding authorial rights & responsibilities

Developing more than the current attitude of "healthy skepticism" concerning WP is necessary, particularly for en.wiki. Teachers could fairly simply construct wrappers around assignments related to Wikipedia. For example, a good exercise would be teaching how to use the tool WikiBlame (revision history search which actually assigns credit not blame) in order to find the author of a specific sentence within a WP article. For example to find out who added the bit about concerning Cubans to Jill Stein's page, I skipped 25 versions, ignored the first 50 and suggested checking 5000 versions. (Pushing the skip number up increases the likelihood of finding what you are looking for relatively quickly, I think.)

Likewise it would be good practice to encourage newbies to read a different history page than the chronological revision history provided by default, favoring instead the one given by the WMF-Tool Wikihistory.

https://tools.wmflabs.org/xtools/wikihistory/wh.php?page_title=

The results of this tool should be read with caution however. For example, I have more edits to the page Jill Stein (by far) than any other editor. To conclude from that fact that I wrote the page on Jill Stein would be quite erroneous, as most of my edits were a product of my naive sentence-by-sentence editing style. It is only by comparing the first and second editor's contributions (1 | 2) to that page with yet another WMF tool (sigma) that the history becomes clearer concerning who wrote more of the page.

Students might even suggest a simple improvement to wiki-architecture... on the "view history page" why not remove the link to each page contributor's WP user page (which if not very useful, other than for counting the stars on their barn), one can always get there from their talk page. Instead, provide a link to their contributions to the mainspace page the reader is viewing. This would be a chance to talk about variables.

https://tools.wmflabs.org/sigma/usersearch.py?name=ADD_NAME_HERE&page=ADD_PAGE_HERE&server=enwiki&max=

Misc. Tech. Notes

Note on BBcode

The BBcode-Mediawiki extension page is archived out of shame:  here's what it looked like prior to archival.

Note on HTML Rendering

On this Mediawiki page, I learned that just by typing ?action=render at the end of an address, it will publish HTML for you to save if you so desire. It even works on Wikipedia hoax pages. ^^

It must be said that the HTML produced is thick with handles (classes and such).

Also on HTML enabling (and the dangers that implies), cf. [here]

Parsers


MediaWiki ↹ HTML (links)

here's a short procedure for converting external Wikilinks in a document to HTML using PRCE (Perl regex cheatsheet):

Replace

]] with @
[[ with §; which gives §OutBoundLink@
] with µ
[ with £; which gives £InternalLinkµ
| with
External links: MediaWiki ↪ HTML
replace £(\S+) (\S+)µ
with <a href="\1">\2</a>
External links: HTML ↪ MediaWiki
replace \<a href="(.*?)"\>(.*?)\</a\>
with [\1 \2]
internal links
piped
unpiped

Strip references / text from Wiki

Unnamed References

Search for: \<ref\>.*?\</ref\>

Replace with:   

Named References

Search for: \<ref.*?>

Replace with:   

Strip text leave blue-links

Search for: ].*?\[

Replace with:

This does leave some manual work...

Convert internal

\[\[User talk:(.*?)\|(.*?)\]\]
[https://en.wikipedia.org/wiki/User_talk:\1 \2]