PetScan/it: Difference between revisions

Content deleted Content added
FuzzyBot (talk | contribs)
Updating to match new version of source page
FuzzyBot (talk | contribs)
Updating to match new version of source page
Line 53:
* Almeno (N): Tutte le pagine che sono in almeno N alberi delle categorie
Al momento le opzioni disponibili sono "sottoinsieme" e "unione".
| <span lang="en" dir="ltr" class="mw-content-ltr">"subset"</span> ||
| "subset" ||
|-
| Namespace || I namespace da usare come potenziali pagine || (voce) ||
Line 129:
</div>
 
{{mbox|type=delete|text=<span lang="en" dir="ltr" class="mw-content-ltr">As of July 2020, "Run in background" has various bugs (for example, duplicated items may be created). Use frontend mode if possible!</span>}}
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==== Add/remove statements for Wikidata items ====
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
It is possible to add or remove statements for Wikidata items with PetScan. For this it is crucial that you choose "Wikidata" in "Other sources -> Use Wiki". Then you will see the command box next to the number and can continue as described in the previous section.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==== Referrer ====
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
''(V2 only)'' If you open PetScan from another tool to let the user create a query, you can pass the <code>referrer_url</code> and <code>referrer_name</code> (defaults to <code>referrer_url</code>) parameters. <code>referrer_url</code> should have a <code>{PSID}</code> string which will be replaced with the PSID the user sees. Once a query was run, a box at the top of the page will prompt the user to return to the original tool, using the PSID-modified <code>referrer_url</code>.
</div>
 
===Esempi===
Line 144 ⟶ 152:
===='''Voci in un progetto'''====
 
<div lang="en" dir="ltr" class="mw-content-ltr">
A request on the Talk page of this Manual: Find all mainspace articles within "WikiProject UK geography". Starting with a default PetScan submission form, just add "WikiProject UK geography" to the first box of the Templates row, and, just below, select "Use talk pages instead". ''[https://petscan.wmflabs.org/?templates_yes=WikiProject+UK+geography&templates_use_talk_yes=1 Here is the query filled out.]'' Hit "Do it!" at bottom. When run on 16 August 2015, the query required 1.5 seconds to run, and yielded a list of 21,408 articles. The list appears BELOW the submission form (which remains on your screen), so you have to scroll down to see the results.
</div>
 
===='''Link ambigui in un progetto'''====
 
<div lang="en" dir="ltr" class="mw-content-ltr">
Editors working on disambiguation seek to enlist members of a content area WikiProject, specifically WikiProject Canada, to help. A PetScan report is designed to find all articles having ambiguous links that are within the given WikiProject. Criteria applied:
::::#Articles having ambiguous links are within "Category:All articles with links needing disambiguation", so paste "All articles with links needing disambiguation" into the PetScan Categories field.
Line 157 ⟶ 168:
:::*To obtain the results in a Wikitable, in order to share them at a subpage of the WikiProject, the request could be revised to select Format "WIKI". This time the results, in wikitable markup, replace the PetScan submission form on your screen.
:::*To make a more useful list for disambiguators, set up so that DabSolver will open up on any item clicked, a several step process can be followed. Here the results were saved to Tab-Separated format instead, then brought into Excel, then a column was composed which concatenated simple text strings with the results, then that resulting column was copy-pasted. The results were pasted over to the English language Wikipedia page [[w:Wikipedia:Canadian Wikipedians' notice board/ArticlesNeedingDisambiguation2015-08-17]] and were posted also within a scrolling window in [[en:Wikipedia_talk:Canadian_Wikipedians'_notice_board#help_needed_on_ambiguous_links_in_wp:Canada_articles|discussion at the WikiProject Canada talk page]]. --[[User:Doncram|Doncram]] ([[User talk:Doncram|talk]]) 19:50, 24 August 2015 (UTC)<small> link adjusted. [[User:DexDor|DexDor]] ([[User talk:DexDor|talk]]) 06:58, 29 March 2016 (UTC)</small>
</div>
 
====Individuare pagine che hanno combinazioni anomale di namespace e categorie====
 
<div lang="en" dir="ltr" class="mw-content-ltr">
PetScan can be used to find pages that are in a category (or combination of categories) that is not appropriate for pages in a particular namespace - e.g. Wikipedia administration pages that are in a category that should only contain encyclopedic articles. This can then be fixed (e.g. by moving an article to the correct namespace or by editing a discussion to insert a missing ":" where a category is being referred to). The first step in this process is to identify (using PetScan) categories that cause incorrect categorization (e.g. Wikipedia administration categories that are in article categories).
</div>
 
====Trovare foto non categorizzate su Commons in una certa lingua====
 
<div lang="en" dir="ltr" class="mw-content-ltr">
(Based on [[Grants:Learning patterns/Treasures or landmines: detecting uncategorized, language-specific uploads in Commons]]. See the motivation and full explanation there! Thank you to wikimedia user [[User:Spiritia]] and other contributors/commenters there for contributing this! )
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
Run a query using PetScan with the following settings:
</div>
 
<!--- begin Query copied from the Grant page, then adapted --->
Line 172 ⟶ 190:
Project = wikimedia
Depth = 1
Categories = <span lang="en" dir="ltr" class="mw-content-ltr">Media needing categories</span>
Combination = ☑ Subset
Namespaces = ☑ File
Templates : Has all of these templates = <fontspan colorstyle="color:blue;"><<span lang="en" dir="ltr" class="mw-content-ltr">your language code</span>></fontspan>
Format: ☑ Extended data for files ☑ File usage data
<!--- end Query --->
 
<div lang="en" dir="ltr" class="mw-content-ltr">
The English language code is "en"; the Romanian language code is "ro". To find uncategorized photos uploaded by users using Romanian language, a version of the query (with html output, and without autorun) is:
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
:[https://petscan.wmflabs.org/?language=commons&project=wikimedia&depth=1&categories=Media+needing+categories&ns%5B6%5D=1&templates_yes=ro&ext_image_data=1&file_usage_data=1 https://petscan.wmflabs.org/?language=commons&project=wikimedia&depth=1&categories=Media+needing+categories&ns%5B6%5D=1&templates_yes=ro&ext_image_data=1&file_usage_data=1]
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
As of 15 March 2016, after hitting "run" the query requires about 105 seconds to finish, and yields 1748 uncategorized photos.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
Notes:
#The "Language =" field is not used to select the desired language; the desired language code is set in the "Template" field instead.
#The language code is case-sensitive in the query! So for example use "ro" not "RO".
#To generate the results there, Format: ☑ Wiki was chosen, instead of the default output of Html.
</div>
 
Divertiti! Ancora grazie soprattutto all'[[User:Spiritia|utente Spiritia]]!
Line 194 ⟶ 220:
====Elementi senza dichiarazioni====
 
<div lang="en" dir="ltr" class="mw-content-ltr">
[https://petscan.wmflabs.org/?language=en&project=wikipedia&ns%5B0%5D=1&wpiu_no_statements=1&interface_language=en&active_tab=tab_wikidata The option "Has no statements"] can be used to find:
*items without statements for a category at Wikipedia (sample: [https://petscan.wmflabs.org/?language=en&project=wikipedia&depth=1&categories=United%20States%20geography%20stubs&show_redirects=no&common_wiki=wikidata&wikidata_item=with&wpiu_no_statements=1&interface_language=en&active_tab=tab_wikidata&doit=&al_commands=P17%3AQ30 en:Category:United States geography stubs])
*items without statements for an entire Wikipedia language version (sample: [https://petscan.wmflabs.org/?language=so&project=wikipedia&ns%5B0%5D=1&show_redirects=no&wikidata_source_sites=sowiki&wikidata_label_language=so&wpiu_no_statements=1&interface_language=en&active_tab=tab_other_sources "sowiki"])
</div>
 
====[[d:Help:Import Template:Bio from itwiki|Importazione del Template:Bio da Wikipedia in italiano]]====
Line 202 ⟶ 230:
Passi per importare il template, alcuni usando PetScan.
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==== Get the sitelinks for a certain project from a SPARQL query ====
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
* Indicate the project on the 'Categories' tab. E.g. <code>de</code> for '''Language''' and <code>wikipedia</code> in '''Project''' to use the German language edition of Wikipedia.
* In '''Other sources''' enter your SPARQL query
* Make sure to select '''From categories''' from the '''Use wiki''' options
* Press '''Do it'''
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
This could be useful to get the pageviews of a certain set of pages, based on a SPARQL query. You can save this to a [https://tools.wmflabs.org/pagepile/ Pagepile] (check the '''Output''' tab), then enter that Pagepile ID in [https://tools.wmflabs.org/massviews/ Massviews Analysis] (select 'Page Pile' from the '''Source''' dropdown).
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==== Get a list of Wikidata items with exclusions based on a SPARQL query ====
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
Let's say you got a list of people with Wikidata ID's (QIDs) that you want to add an occupation (P106) of 'jewellery designer' (Q2519376) to, maybe with a tool like [https://tools.wmflabs.org/quickstatements/ QuickStatements]. However, you don't want to add this occupation to items that already ''have that occupation''. Here's how to do that with PetScan:
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
* Have your list of QIDs in a text file, with each QID on a new line
* In the tab 'Other sources', paste this text into the field called 'Manual list'
* In the form 'Wiki' enter the string <code>wikidatawiki</code>
* In the field 'SPARQL' enter your SPARQL query. In this example, this query will give all humans with an occupation of 'jewellery designer':
</div>
<code><nowiki>
select ?item where {
Line 225 ⟶ 265:
}
</nowiki></code>
<div lang="en" dir="ltr" class="mw-content-ltr">
* Finally, you want to make an exclusion, so in the field 'Combination' add the string <code>manual NOT sparql</code> to get all the QIDs from the 'manual list', but ''without'' the items from the SPARQL query.
* Hit 'Do it!'
</div>
 
====Aggiungi il tuo esempio qui...=====