Open main menu

Category:Creator templates with Wikidata link: item missing homecat

Conditions that a page has to meet to be added here
  • Creator template with Wikidata and homecat fields
  • Wikidata item linked does not have Commons category (P373) property.

Please add the data to Wikidata. Category refresh happens very slowly. Pywikibot/ could be used to speed it up.

Three ways to create Quick_statements commands to add Commons category (P373) property to Wikidata items
  • go to each individual file and click Commons to Wikidata QuickStatements.svg to open preloaded Quick_statements tool.
  • Refresh the category, then fork this query. First login and click "Submit Query" to get fresh results. You can copy the data from the screen and paste to a spreadsheet and then copy the commands and paste into Quick_statements. On Windows you can also download as csv; open in notepad; save as UTF-8; open in Excel and copy the commands and paste into Quick_statements.
  • Refresh the category and then use AWB with module listed below to create a text file. Open it in your favorite text editor and replace the "$" with tabs (Notepad++ works).

AWB module to harvest Quick_statements commands from this category
      public string ProcessArticle(string ArticleText, string ArticleTitle, int wikiNamespace, out string Summary, out bool Skip)
          Skip = false;
          Summary = "";
          String wikidata="";      
          Match m  = Regex.Match(ArticleText, @"Wikidata *= *(Q\d*)");
          if (m.Success) wikidata = m.Result("$1");
          String homecat="";      
          m  = Regex.Match(ArticleText, @"Homecat *= *(.*)");
          if (m.Success) homecat = m.Result("$1");
          String str1 = wikidata + @"$P1472$""" + ArticleTitle + @"""$S143$Q565";
          String str = wikidata + @"$P373$""" + homecat + @"""$S143$Q565";
          str = str.Replace("Creator:","");
          str = str.Replace("\r","");
          str = str.Replace("\n","");
          System.IO.StreamWriter sw = System.IO.File.AppendText("C:/Projects/PersonData_8.txt");
          return ArticleText;

Please replace "$" with tabs using a text editor, like Notepad++.

Pages in category "Creator templates with Wikidata link: item missing homecat"

The following 2 pages are in this category, out of 2 total.