Template talk:Preloaddraft

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Centralising discussion[edit]

I've redirected the talk pages for the various preloaddraft template subpages to here, since I suspect that conversations will typically be relevant to several templates, and centralised discussion is often useful for these sorts of pages. T.Shafee(Evo﹠Evo)talk 10:36, 5 March 2016 (UTC)[reply]

Suggestion (Scientist template)[edit]

@Evolution and evolvability: I would suggest adding some tracking category to pages, created via preloaddraft. So that Wikipedians could track down those, because we could get a lot of people who have 10 Nobels or are simply great people. --Edgars2007 (talk/contribs) 17:30, 1 January 2016 (UTC)[reply]

@Edgars2007: Good point! It'd be useful to be able to track those created from these templates so that they're easy to check for accidental leftovers of the process. As you say, a category Category:Created via preloaddraft is probably the best way to do so (also the reason why I tried to pick easily identifiably default descriptions!). T.Shafee(Evo﹠Evo)talk 00:37, 2 January 2016 (UTC)[reply]
Might I suggest that a) if you're going to rely on such categories that you actually create them <g> and b)you are a bit more specific. I'd compare Category:Userspace drafts created via the Article Wizard and Category:Articles created via the Article Wizard - you shouldn't really mix up drafts and mainspace articles in a single category.Le Deluge (talk) 14:51, 10 March 2016 (UTC)[reply]
@Le Deluge: Ah, thank you. I haven't really much experience in categories. What specific names would you recommend? T.Shafee(Evo﹠Evo)talk 18:17, 10 March 2016 (UTC)[reply]
@Evolution and evolvability: Really you need to have a bit of a think about why you're creating the categories - or better, sit back and think about what you are trying to achieve in terms of tracking articles, and then decide whether categories have a place in that wider picture or whether you might want to eg ask our resident coders to do something a bit fancier in terms of analysis. But obviously the Article Wizard categories are an obvious place to steal from be inspired by. So if you want categories, would Category:Userspace drafts created via the Preloaddraft template and Category:Articles created via the Preloaddraft template do what you need, or could you eg live without an Articles category and just monitor drafts? I don't know, but these are the kind of questions to be asking yourself.Le Deluge (talk) 19:14, 10 March 2016 (UTC)[reply]

"Work" section (Artist template)[edit]

@Pharos: I don't have a compelling reason to change anything at this point, but I'll be curious to see whether preloading a "work" section comprising so many subsections results in higher incidence of WP:NOTCV issues. In other words, more of the problem pretty common in artist bios where the article is stuffed with indiscriminate lists of shows, works pubs, etc. (a show at the Whitney makes sense, but not every little gallery/group show; books and important publications, but not every article and blog post; works which have received attention, but not an oeuvre...). — Rhododendrites talk \\ 20:06, 4 March 2016 (UTC)[reply]

Yeah, I'm not sure, but thought it better to put in more headings to give people ideas, although some of the content may be trimmed later.--Pharos (talk) 20:21, 4 March 2016 (UTC)[reply]
Maybe it would be worth adding some brief instructions about the section headings not being set in stone, not applying to all articles, etc. in Template:ArtAndFeminism2016 draft, since it's clear that template will be removed anyway. (I would say HTML comments, but obviously those wouldn't show up for someone using VE). — Rhododendrites talk \\ 20:45, 4 March 2016 (UTC)[reply]
I actually agree with @Rhododendrites:on this one. Less is more. And some instructions. Maybe you can have the instructions indicate some of the sections they could add. No one is going to write more than that in their initial go 'round. I would also like to see it default to a stub, as most of them will be. And adding that will protect them a bit.
I've removed a few sections, perhaps we should remove more. The banner at the top is controlled by {{ArtAndFeminism2016 draft}} - feel free to edit it.--Pharos (talk) 05:05, 5 March 2016 (UTC)[reply]

Preloaddraft shouldn't be used too many times on the same page[edit]

I have noticed that, in some situations, Preloaddraft shows a redlink and so, if clicked on, will create a draft article when there is already an existing article or redirect. In the case of Wikipedia:WikiProject Missing encyclopedic articles/Art of the Middle East for example, there is an article on Paola Yacoub and a redirect for Fahrelnissa Zeid, but in both these cases, Preloaddraft will create a draft article which seems to be counter-productive.

This behaviour is not unexpected since there is a documented restriction of the #ifexist function which Preloaddraft uses: "#ifexist: is considered an "expensive parser function", only a limited number of which can be included on any one page (including functions inside transcluded templates). When this limit is exceeded, any further #ifexist: functions automatically return false, whether the target page exists or not, and the page is categorized into Category:Pages with too many expensive parser function calls. The name of the tracking category may vary depending on the content language of your wiki."

It might be appropriate to document that too many invocations of Preloaddraft on a single page may result in this behaviour since this behaviour is counter-intuitive to put it mildly. --Big_iron (talk) 14:54, 15 May 2016 (UTC)[reply]

@Big iron: Thanks for finding this bug! I was unaware of the limitations in #ifexists when I put it together. I think that the ...Art of the Middle East page seems to misformat after 250 occurences.
  • Do you have any ideas on alternative implementations?
  • Do you know if there are there computationally cheaper #if functions?
Any advice appreciated! T.Shafee(Evo﹠Evo)talk 10:06, 16 May 2016 (UTC)[reply]
I have had limited exposure to template development. However, there is a template exists which provides a similar function. It also has some drawbacks in that it works by transcluding the target page so, when editing a page that uses this template, you will get red links in the list of transcluded pages. Also, because it transcludes every page named, there is potential for trouble if many pages already exist and are large. The documentation mentions the possibility of a false negative for an existing page but apparently only in atypical situations.
I don't know if it would be useful to count #ifexist: invocations and do something different which avoids the #ifexist: logic if the limit was exceeded. That would at least detect the possibility of a problem. --Big_iron (talk) 15:40, 16 May 2016 (UTC)[reply]
Thanks. I've also asked for suggestions at the Village Pump. T.Shafee(Evo﹠Evo)talk 12:31, 17 May 2016 (UTC)[reply]

Category:Created via preloaddraft should not be visible in mainspace[edit]

An issue was posted at Wikipedia:Village pump (technical)/Archive_148#Category:Created via preloaddraft should not be visible in mainspace. PrimeHunter (talk) 15:04, 22 August 2016 (UTC)[reply]

Combining the functions of {{User sandbox+}} and {{preloaddraft}}[edit]

Relevant discussion at Template_talk:User_sandbox+

Tidying up categories on Template:Preloaddraft/Artist[edit]

Two problems need fixing if someone wouldn't mind. First - 2018 is hard-coded into the category on the final line, it should be replaced with {{CURRENTYEAR}}. And secondly, [[Category:ArtAndFeminism 2018 drafts in progress]] keeps showing up at Special:WantedCategories in contravention of WP:REDNOT. Since all drafts are works in progress by definition, can we just delete it from the template? It's not like the parent draft categories need splitting (although 2018's category will be bloated by 2019 and 2020 entries due to the hardcoding mentioned above). TIA Le Deluge (talk) 11:09, 8 March 2020 (UTC)[reply]

Work and Career headings in the Artist template need to be reversed[edit]

It looks to me that the Work and Career headings in the Artist template {{Preloaddraft/Artist}} need to be reversed.

In stead of:

Career

Style
Themes
Reception

Work

Major exhibitions
Public collections
Awards and nominations

use:

Work

Style
Themes
Reception

Career

Major exhibitions
Public collections
Awards and nominations

Vexations (talk) 18:59, 15 March 2020 (UTC)[reply]