![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 | Archive 3 | Archive 4 | Archive 5 |
@ Evad37 and Certes: Every other page display or purge has formatting problems.
It appears it may have something to do with {{ Transclude list item excerpts as random slideshow}}. — The Transhumanist 06:04, 24 September 2018 (UTC)
Currently, we have a slideshow template that accepts file names, and another that accepts source page names (from which it gathers all the files for the slideshow).
Is it possible to create a template that accepts both kinds of arguments?
That way, if there's a file name you want to add, you can just add it, even if the slideshow uses sourcepages.
I look forward to your replies. — The Transhumanist 07:44, 2 August 2018 (UTC)
One way to insert individual filenames into slideshows that use sourcepages, is to have a holding area for them, such as a section near the bottom of the portal. A gallery or filename list could be put in that section. Then the portal's title and that section can be specified as a sourcepage argument in the slideshow. Thus, the portal will be harvesting itself.
It would be even more convenient if filenames could be specified in {{ Transclude files as random slideshow}}, along with the sourcepage arguments, perhaps with filename1=, filename2=, and so on. Is this feasible? — The Transhumanist 18:30, 24 August 2018 (UTC)
When it is a downgrade. Like this...
Something happened while I was replacing existing 'Selected image' sections that had ten or fewer images with slideshows that automatically transcluded the pics from the root article. On Portal:German Empire, this action replaced a very high quality hand-picked selection of ten pictures with customized captions (that were written for a more prominent displaying). The replacement looked like this: https://en.wikipedia.org/?title=Portal:German_Empire&oldid=854567132
Somebody restored the original selection, and so I migrated the subpage content and converted it into the slideshow presently on the page. I think you'll agree that this is a high-quality set of pictures that supports the subject well.
The "Selected picture" subpages of the other 200 portals that received "upgrades" are still in existence. It would be a shame to lose the work that was put into gathering the pictures and writing captions for them. In many cases, the selection goes beyond the set of pictures presented on the root article. What I'd like to do is harvest the filenames and captions from those subpages and insert them as parameters into the image slideshow on the respective portal base page.
But, in order to do that, the template used for the slideshow would need to support both sourcepage names and filenames. So, please put this one at the top of your portal to do list. ;)
Sincerely, — The Transhumanist 00:02, 29 August 2018 (UTC)
captionn
and optionally creditn
parameters to specify specific images – see documentation. There's also an example at
Template:Transclude_files_as_random_slideshow/testcases#Page_plus_specific_files. -
Evad37 [
talk
01:28, 29 August 2018 (UTC)
@ Evad37, Certes, Pbsouthwood, AfroThundr3007730, Dreamy Jazz, Vermont, and Waggers:
Hopefully, we can find a way to implement {{ Transclude files as random slideshow}} without numbering the captions.
With the necessity to number them, it makes harvesting the pics and captions from subpages using AWB infeasible, unless it has incrementing capabilities I don't know about.
Without numbered captions, many of the portals' subpages could be harvested in 4 AWB passes:
If the captions have to be numbered, I don't know how that can be done within the above method. Doing the numbering by hand would slow this process down immensely.
Thoughts? — The Transhumanist 09:56, 5 September 2018 (UTC)
##
as a separator – i.e. File:Filename.ext##Caption goes here##Credit goes here
, or File:SomeOtherFile ## Some caption without a credit line
. Whitespace around the ##
doesn't matter, and raw equals signs have to be replaced with {{=}}
. -
Evad37 [
talk
05:14, 24 September 2018 (UTC)I'm sorry if this is the wrong place to mention this but I have created a template that displays articles as boxes with an image and a description: {{ article card}}. It could be used an interesting way for portals to showcase their featured content. Please tell me if anyone thinks it would actually be usable because it does need improvement and i'd rather not waste my time creating something pointless. 🌸 WeegaweeK ^ 🌸 19:58, 27 September 2018 (UTC)
@ Evad37 and Certes: Entries for New South Wales show up in the did you know section. Can this be fixed? — The Transhumanist 19:45, 16 October 2018 (UTC)
|not=
parameter, so you could try something like {{
Transclude selected recent additions|Wales|not=New South Wales|not2=Jimmy Wales}}
.
Certes (
talk)
00:05, 17 October 2018 (UTC)@ Evad37 and Certes: The entry for Morpeth, Northumberland in the general selected articles section has the image being way too big and also bugged out (stray wikitext for the end of an image). Dreamy Jazz 🎷 talk to me | my contributions 11:16, 14 October 2018 (UTC)
{{
Transclude lead excerpt|Morpeth, Northumberland|files=1}}
also shows several images which, whilst of reasonable size individually, combine to make a huge composite. That template does render the lead properly, except that it fails to link Morpeth to
Morpeth, Northumberland (because the image section is so long that the bold text is rejected for occurring too late in the lead). What do we think the excerpt should look like when we encounter an imagemap? I'm tempted to take the first image, but that would illustrate Morpeth with a signpost to somewhere else, which is hardly representative.
Certes (
talk)
11:29, 14 October 2018 (UTC)
Putting {{Transclude lead excerpt | paragraphs=1-3 | files=1 | more=| Morpeth, Northumberland }}
into
Special:ExpandTemplates shows that the following wikitext is being generated:
[[File:Morpeth montage.jpg|alt=Morpeth montage. Clicking on an image in the picture causes the browser to load the appropriate article.]]</center>|thumb]] '''Morpeth''' is a historic [[market town]] in [[Northumberland]], [[North East England|north-east]] England, lying on the [[River Wansbeck]]. Nearby villages include [[Mitford, Northumberland|Mitford]] and [[Pegswood]]. In the [[United Kingdom Census 2011|2011 census]], the population of Morpeth was given as 14,017, up from 13,833 in the [[United Kingdom Census 2001|2001 census]]. '''[[Morpeth, Northumberland|Read more...]]'''
So it seems the code that extracts a [[File:...]]
block from a template parameter is not removing the trailing </center>
, and that |thumb]]
is just tacked on at the end, causing mismatched square brackets. -
Evad37 [
talk
00:44, 17 October 2018 (UTC)
I'm having trouble converting this Portal:Organized Labour into a single page portal. The biggest obstacle is the "Did You Know?" Section. None of the existing templates ({{ Transclude DYK}} and {{ Transclude selected recent additions}}) appear to satisfactorily replace the subpage system in this case. Would it be possible to create a template that crosses project categories with the "Did you know" category and transcludes the results? Like this tool( https://petscan.wmflabs.org/?psid=6232674)? Guilherme Burn ( talk) 20:42, 28 October 2018 (UTC)
Template:Transclude list item excerpts as random slideshow seems to be causing weird problems, depending on which list item is displayed initially. Effects range from the page truncating after the selected herb or spice section, to rendering in single-column only, to gobble-dee-gook showing up on the page. Here are portals I created that are having these problems:
I hope this heads up helps. I'll post more, as I spot them. — The Transhumanist 22:16, 13 August 2018 (UTC)
In this portal, the Selected general articles section is blank! — The Transhumanist 05:10, 16 August 2018 (UTC)
<gallery>...</gallery>
in the lead, which was mucking up the slideshow gallery – the module now strips galleries from the excerpts to avoid this problem. -
Evad37 [
talk
17:08, 16 August 2018 (UTC)
In this portal the < > symbols appear in the wrong place, overwriting the heading for Selected general articles. — The Transhumanist 01:34, 17 August 2018 (UTC)
This one intermittently (but mostly) truncates after Selected general articles section. —
The Transhumanist
00:39, 23 August 2018 (UTC)
Fixed
@
Evan37 and
Certes: When the limit=
is removed, the portal displays a couple of problems. Either it truncates right after the Selected general articles section, or it shoves the rest of the page into a jewelry navigation footer that is included in one or more of the transcluded articles. It may also display all the entries instead of just one.
Someone has complained prominently about the result of the limit (there only being 11 articles displayed), and has claimed that this renders the scope of the portal as too narrow, even though the selection changes with each page purge. So, it is pretty urgent to get this thing displaying all 74 items correctly again. — The Transhumanist 09:40, 25 September 2018 (UTC)
|limit=10
from
Portal:Body piercing. A few excerpts are not displaying correctly, especially by showing
thumb instead of the image, but I don't think that's a consequence of this change.
Certes (
talk)
10:25, 25 September 2018 (UTC)I'm using two vertical columns of random slideshows with the "Flex columns" template, and running into issues.
Show
|
---|
States with limited recognition Current state biographies Distinguished content Featured or Good articles |
(from this page it seems that pressing "Show" results in the problem I've described becoming immediately visible, whereas they initially load correctly at Portal:Limited recognition)
Brendon the Wizard ✉️ ✨ 09:01, 4 September 2018 (UTC)
|image7=
and |caption7=
for the page in the seventh unnamed parameter. -
Evad37 [
talk
09:07, 18 September 2018 (UTC)…|South Ossetia|File:ossetianflag.jpg|Kosovo|Gaza|…
) but that hack doesn't work with captions.
Certes (
talk)
09:29, 18 September 2018 (UTC)Follow up (I guess we can call this #3): Both columns of this template appear empty on mobile (using Google Chrome and an Android) Brendon the Wizard ✉️ ✨ 18:44, 25 September 2018 (UTC)
Recently The Transhumanist converted the Selected Picture to a slideshow drawing from the Illinois and Culture of Illinois pages. I would like to also include the images that had previously been selected and stored at Portal:Illinois/Selected picture. Most of those pictures have achieved some kind of recognition either here or in Commons and I would like the portal to continue to showcase them. I tried to do that using the following markup, but it does not seem to be working:
{{/box-header|Selected images|noedit=yes}} {{Transclude files as random slideshow | {{PAGENAME}} | Culture of {{PAGENAME}} | Portal:{{PAGENAME}}/Selected picture }} {{Box-footer}}
Is there a better way to incorporate the images from that subpage? Thanks and please excuse the ignorance. I don't know the new system at all yet. Fishal ( talk) 20:53, 5 October 2018 (UTC)
[[File:...]]
markups and galleries). So you can go with either of AfroThundr3007730's suggestions, and then move each caption inside the Image:/File: markup, or alternatively you can specify each files/captions/credits directly in the {{Transclude files as random slideshow}}
template. -
Evad37 [
talk
08:30, 6 October 2018 (UTC)@ Evad37 and Certes: Sometimes exhibits the truncation bug, and at other times, the spewing bug. And sometimes really messes up the formatting of the page. — The Transhumanist 09:42, 8 October 2018 (UTC)
@ Evad37 and Certes: This portal is spewing all the entries in some of the sections, especially the sports section. The arts and education sections also occasionally spew. — The Transhumanist 06:39, 7 October 2018 (UTC)
{{
Transclude list item excerpts as random slideshow|1=Outline of Cairo|section= Areas of Cairo|paragraphs=1-2|files=1|fileargs=|more=|errors=}}
looks perfect with no stray text.{{#tag:gallery|File:Blank.png|...article excerpt...}}
is how the module makes the slideshow. If any of those bits are showing up, it means something from one of the article excerpts is breaking the syntax, such as loose pipes, linebreaks, or opening or closing braces. In this case, the problem seems to have been
Cairo Opera House, which had a manually formatted hatnote that wasn't being removed by
Module:Excerpt (prior to my edit
[1]). The portal seems fine now that the article is using {{about}}
for the hatnote (as far as I can see after several purges). -
Evad37 [
talk
01:17, 9 October 2018 (UTC)
@ Evad37 and Certes: It's cutting off below the "Selected general articles" section. — The Transhumanist 01:56, 17 October 2018 (UTC)
The Did you know section is currently driven entirely by search strings.
Some blurbs will never be found by search.
It would be nice to be able to add those to the results somehow, manually.
Without subpages, of course. — The Transhumanist 01:31, 25 October 2018 (UTC)
@ Certes and FR30799386:
The Selected blackberry hybrids section gets its links from the hybrids subheading in the topics section.
I had to remove the Marionberry link from the topics section, because it caused the whole portal to wig out.
Here is the perm link to the problem:
https://en.wikipedia.org/?title=Portal:Blackberries&action=edit&oldid=868295111
I think it might have something to do with the ogg link in the lead of Marionberry, because nothing before the {{ Audio}} template's second parameter is displayed for that entry in the portal. Then, when I removed Marionberry from the portal, the portal worked fine.
I hope you can fix this, as the Marionberry is a major cultivar, and the subject isn't complete without it. — The Transhumanist 08:56, 11 November 2018 (UTC)
@ Evad37, Certes, and FR30799386: I've run across a weird quirk in the new portal design...
In Portal:Uttarakhand, the Selected general articles section is powered by Template:Transclude list item excerpts as random slideshow, which displays the excerpt from each list item from Template:Uttarakhand.
One of the list items in that template is Politics of Uttarakhand, which is a redirect to Uttarakhand#Government and politics.
What is shown in the portal is the excerpt of the lead of Uttarakhand, rather than the Government and politics section of that article. So, you have the exact same excerpt that is in the intro also being displayed in the Selected general articles section. Aside from being very odd looking, the duplication is awkward (because it wasn't the intended selection), especially when the duplicate is the slideshow item showing when the portal is initially displayed.
In some portals, because of this quirk, the same lead that is in the intro may appear several times in the Selected general articles slideshow.
I hope you find this bug report helpful. — The Transhumanist 07:08, 5 November 2018 (UTC)
A recent module change should make more news items appear in some portals. Please report any problems. Certes ( talk) 12:53, 13 November 2018 (UTC)
A recent module change should prevent some portals from "splurging", by removing incomplete templates and wikilinks such as {{stack|
from excerpts of pages such as
Gare de Lille Europe. Some splurges are due to other causes and remain unfixed. Please report any problems.
Certes (
talk)
12:53, 13 November 2018 (UTC)
@ Certes:
There's an error in the lead, in which the infobox is spewing its wikicode. — The Transhumanist 10:18, 14 November 2018 (UTC)
@ Certes, FR30799386, AfroThundr3007730, Dreamy Jazz, AmericanAir88, Gazamp, and Robertgombos:
The intro has a huge series box in it, which disrupts the layout of the portal. Can the module be fixed to prevent this type of problem? — The Transhumanist 23:49, 27 November 2018 (UTC)
P.S.: AmericanAir88 and Gazamp included for learning purposes.
-TT
@ Certes, FR30799386, AfroThundr3007730, Dreamy Jazz, AmericanAir88, Gazamp, and Robertgombos:
In the intro of Portal:Optical illusions, the font goes wonky. Can the module (or something else) be fixed to prevent this type of problem? — The Transhumanist 12:08, 28 November 2018 (UTC)
Portal:Georgia Institute of Technology appears in Category:ParserFunction errors but has no obvious errors. Can anyone find and fix the fault? Certes ( talk) 11:30, 8 January 2019 (UTC)
Dropping a link to an image proposal. Cesdeva (talk) 18:33, 9 January 2019 (UTC)
While the random slideshows are highly useful and applicable to most situations, for some portals or portal sections, it would be nice to be able to control the order of display for topics in a slideshow.
Like presenting the Presidents of the US in order, for example. Or the rules for a game. And so on. — The Transhumanist 01:26, 25 October 2018 (UTC)
@
The Transhumanist and
FR30799386: Done. The four random slideshow templates can now have
|random=no
added to prevent randomisation. -
Evad37 [
talk
02:12, 10 January 2019 (UTC)
The stub filter is very nice, so that stubs don't show up in excerpt slideshows.
Is it possible to adapt that to handle other types of pages, such as lists with stubby leads?
Lists that have stubby leads are not very helpful to display as excerpts.
Could there be a parameter to filter those out? — The Transhumanist 21:22, 10 January 2019 (UTC)
Section support, to specify a section of a navbox (rather than just the whole template), would be very helpful in creating portals with multiple "Selected" excerpt slideshows.
For examples of portals with multiple excerpt slideshows, see:
Access to navbox sections would blow the ability to do this wide open. — The Transhumanist 22:24, 10 January 2019 (UTC)
The main method of building portals these days is to populate the Selected general articles section from the corresponding navbox footer template.
The problem is, that not all subjects have such footers.
So, being able to build navbox footers with a user script would enable us to build portals for additional subjects. This would also serve to fill in the gaps in WP's system of navigation footers.
The tool could also be designed to easily edit existing navigation footers.
This would be a major step forward in navigation development on Wikipedia. — The Transhumanist 22:31, 10 January 2019 (UTC)
I was creating Portal:Spider-Man, and came across the List of Spider-Man enemies. I thought "what a good excerpt slideshow this could populate". But, when I looked at the list, I found that all the enemy names are locked up inside tables where our current lua modules can't get at them.
Is a lua module for extracting desired links in specific columns from tables possible? — The Transhumanist 23:16, 10 January 2019 (UTC)
Some automated method of pulling the entries from a category, and inserting them into a portal section. — The Transhumanist 11:55, 24 October 2018 (UTC)
![]() |
The User Script Barnstar
| |
is hereby awarded to
DannyS712 for writing
Cat links 2.js, a script for harvesting links from categories, paving the way for this core technique to be applied in Wikipedia's navigation departments. Keep up the excellent work! Kudos._ |
The core technique used in the above program could be applied for inserting parameters into the template calls made on portal pages. Specifically, to inject the list of pages to be included in {{ Transclude excerpts as random slideshow}}.
How could this best be done? — The Transhumanist 00:05, 12 January 2019 (UTC)
@ Evad37, Certes, AfroThundr3007730, FR30799386, Waggers, RockMagnetist, and Godsy:
I'm finding that portals can take 10 or more seconds to display.
What is taking the server time?
How can this be reduced?
I look forward to your replies. — The Transhumanist 23:16, 3 November 2018 (UTC)
P.S.: @ Dreamy Jazz and Northamerica1000:
|months=
on the DYK section and |days=
on the news section. Also providing a |limit=
to the slideshows will help reduce time on the slideshow templates.
Dreamy Jazz 🎷
talk to me |
my contributions
09:09, 12 January 2019 (UTC)Is it possible to write a script that could detect errors in a portal, and then report them here? — The Transhumanist 15:24, 25 October 2018 (UTC)
Perhaps a bot could go around making sure sidebar templates are placed on their own line, rather than at the start or end of the lead paragraph. Identifying sidebar templates is possible but just way too expensive in Lua, whereas as a bot wouldn't have the same time restrictions. - Evad37 [ talk 03:20, 13 January 2019 (UTC)
The title shows up in italics. — The Transhumanist 04:52, 18 January 2019 (UTC)
Something weird has happened. Building portals with the new tools is so easy, that placing links to a new portal takes 3 times as long as creating the portal itself.
Therefore, it would be nice to have a...
Tool to automatically place the following standard links to a portal: a link on the corresponding category page, a link in the See also section of the corresponding root article, and a link at the bottom of the corresponding navigation footer template. — The Transhumanist 05:07, 25 October 2018 (UTC)
P.S.: @ Dreamy Jazz: How is this going? — The Transhumanist 12:28, 10 January 2019 (UTC)
@ Dreamy Jazz: The link to a portal from the corresponding category is pretty standard, simple to do, and non-controversial. Perhaps you should make the bot for just that link type to start out with. — The Transhumanist 21:15, 10 January 2019 (UTC)
@ The Transhumanist: I know you have been doing of placing {{ Portal-inline}} et. al. on the main article, main category and articles in the selected articles list but what is your opinion on having a bot do this. We could automate this via petscan (new portals) and check to see if the articles are linked to the portal. If they are not the bot could add one of these templates to the see also section of the articles/categories concerned. What is your view on this. Note that the articles we link automatically is up for debate, as well as the idea for the bot. Dreamy Jazz 🎷 talk to me | my contributions 22:58, 8 January 2019 (UTC)
* {{Portal-inline|size=tiny|{{subst:PAGENAME}}}}
in the See also sections of the corresponding root articles. On category pages, I've been putting {{Portal|{{subst:PAGENAME}}}}
at the very top of the page. And for selected articles, I insert * {{icon|Portal}} '''[[Portal:{{subst:PAGENAME}}|Portal]]''' in the <code><nowiki>below =
section at the bottom of the corresponding navbox footer which in turn is usually already in place on the selected articles (and gets added to new ones as standard practice, and therefore takes care of future link placement on selecteds without further maintenance runs).@ Evad37, FR30799386, Dreamy Jazz, DannyS712, Dan Koehl, and Mr. Guye: In an interesting turn of fate, building new portals has become amazingly easy (for many subjects, it takes less than a minute), while placing the links to a portal is much harder (takes 5 minutes or more).
This has resulted in a huge number of orphan portals (thousands of them), creating a backlog of links that need to be placed to them (see above).
If you wish to boost the project, automating (or even semi-automating) this task will do it (such as with a user script). This is easily this project's main challenge / greatest need / highest priority. — The Transhumanist 12:58, 10 January 2019 (UTC)
{{portal}}
(and similar templates), and with an input box to add a new portal (which you could type or paste text in, and/or look up existing portal). Like
File:HotCat.png, but with portals instead of categories. If there is an existing {{portal}}
template, then it would be edited; otherwise a new {{portal}}
template would be added to the "See also" section, if present, or else the last section of the page (if it has sections), or else at the end of the page (but above navboxes, categories, etc). If you already know which portal you're adding to the page, the process for adding a portal becomes:
{{portal}}
links -
Evad37 [
talk
14:08, 10 January 2019 (UTC)
{{Portal|portal basepagename}}
was the standard used for the old-style portals. For the new-style single-page portals, * {{Portal-inline|size=tiny|portal basepagename}}
is the predominant link being used on root articles, typically as the top entry in the list in it's See also section (note the preceding bullet), and minding column formatting (that is, placing it right after the beginning column template call). Where there is no See also section, adding one is preferable (since the link is a list item entry, rather than a box off to the right). —
The Transhumanist
14:25, 10 January 2019 (UTC)I have started coding this. I'll probably need a couple more days to have a beta version ready for testing. - Evad37 [ talk 10:42, 28 January 2019 (UTC)
The application of "Did you know" entries in portals is a repurpose. Some entries include the note "(illustrated)", to indicate that the picture included with a particular batch was for that entry. For example...
Currently, those pictures are not included in portals, which renders the note erroneous.
Is it possible to include the pictures? — The Transhumanist 20:52, 3 February 2019 (UTC)
A script and/or bot to add to portals the same (subject, non-hidden) category tags that the like-named article has. Having both a bot and a script would be great.
We are way behind on the categorization of portals.
By using the article categories, we wouldn't even need to have a redundant category tree for the portal namespace. We would be able to find all the portals in the article categories, sorted by title, not namespace (they should not sorted by "P" for "Portal", but by the subject title).
I look forward to your replies. — The Transhumanist 17:19, 10 February 2019 (UTC)
P.S.: @ Evad37, Dreamy Jazz, Certes, DannyS712, FR30799386, and The Evil IP address: (ping)
[[Category:(cat name)]]
on the portal for each category detected on the portal (i.e. categories wrapped in <categorytree></categorytree>
).@ Dreamy Jazz: What we are talking about here, is going to the like-named article page, copying the non-hidden category tags, and then adding them to the portal. Except the ones that are already there, of course. — The Transhumanist 17:30, 10 February 2019 (UTC)
Danny, could your script that appends categories be cloned and modified to do this? — The Transhumanist 17:32, 10 February 2019 (UTC) P.S.: @ DannyS712: (ping)
wgCategories
- that would have been so much easier to use --
DannyS712 (
talk)
07:28, 23 February 2019 (UTC)This could be controversial, so I would agree with Certes's suggestion of discussing at WT:CAT, and making sure there is consensus before doing mass edits. Also, how are portals sorted in the cats? They probably should have a unique sort key, rather than being lumped in the middle of a bunch of articles. Especially if its a Portal:Foo in a Category:Foo situation. - Evad37 [ talk 09:19, 14 February 2019 (UTC)
Are there any ideas on how to automate related portals?
I thought of something related to a hierarchy tree. Wikipedia:WikiProject Portals/Portals tree Guilherme Burn ( talk) 18:25, 27 February 2019 (UTC)
I make this Template:Portals tree. Who can help me improve it? I tested in the portals Portal:Society and Portal:Prostitution. Guilherme Burn ( talk) 17:36, 27 March 2019 (UTC)
Not sure if this is the right place for this discussion so feel free to move it to somewhere more appropriate. When we relaunched this project one of the ideas I had in the back of my mind was the ability to create a portal-like page dynamically from a Category, pretty much as a user preference. There is something pretty similar already over on the Commons - the Gallery Slideshow Gadget ( see this example). This script essentially grabs the content of the pages within the category and displays it all as a slide show. I think this gives a good starting point for a "virtual" portal. Obviously on Wikipedia we'd want the text to be given more prominence than the image, and there would be some other formatting bits and pieces to sort out, but most of the functionality we would want to use is there already in this gadget, which is enabled by default on the Commons. What do others think? Waggers TALK 12:12, 27 March 2019 (UTC)
How to convert a layout with "tabs" to a single page portal? P:SEX is the example case. The challenge, for a creative issue, is to convert it into a single page portal keeping the tabs. Any idea how to do it? Guilherme Burn ( talk) 11:18, 6 February 2019 (UTC)
[[|Main page]] | [[|Page2]] | [[|Page3]] |
<div>...</div>
and use CSS to show/hide each div as you click on the tabs. This would, however, require JavaScript to change the classes on each div (e.g. to add/remove a hidden
class). The
common.js
on enwiki already has code to work with the mw-colllapsible
and mw-collapsed
classes used in tables, but I'm not sure if that could be leveraged to do what we want here. @
The Transhumanist,
Evad37, and
Dreamy Jazz: You guys have any ideas on this one? — AfroThundr (
u ·
t ·
c)
01:43, 23 February 2019 (UTC)
Tab1 |
---|
Tab2 |
---|
Tab3 |
---|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
@ Guilherme Burn: What I do is simply get rid of the tabs, and include everything in sections on the one page. Though, I don't include WikiProject page content. Instead the standard section with a link to the corresponding WikiProject is fine. — The Transhumanist 07:06, 23 February 2019 (UTC)
Portal:Cross-Strait relations spew with the blank.png image being shown. Dreamy Jazz 🎷 talk to me | my contributions 12:22, 15 March 2019 (UTC)
A recurring problem with the image slideshows is the display of images without captions, thus displaying pictures without context. These include icons, such as highway symbols, which shouldn't be showing up in the slideshow anyways.
Can you adjust the module to only display images that have captions?
I look forward to your reply. Sincerely, — The Transhumanist 18:08, 19 March 2019 (UTC)
@ Evad37: Thank you. Nicely done. — The Transhumanist 18:27, 20 March 2019 (UTC)
@ Pythoncoder: Rather than revert a problem with a portal, if you brought it up on this page, it could be fixed. Then it would be fixed site-wide, not just on a single portal. Note how quickly this one was fixed. — The Transhumanist 18:27, 20 March 2019 (UTC)
![]() | Exactly what it says on the tin. Post your specific technical issues here. |
AmericanAir88( talk) 23:05, 28 November 2018 (UTC)
I can't see what is causing issues with the sort key on Portal:Michelangelo, as it is not Michelangelo but actually "Agony And The Ecstasy". I presume this is a template issue. Dreamy Jazz 🎷 talk to me | my contributions 17:08, 24 February 2019 (UTC)
I tried to convert it to single page, but the formatting went all wonky. See https://en.wikipedia.org/?title=Portal:Typography&oldid=884891031 — The Transhumanist 23:45, 24 February 2019 (UTC)
@ Certes: P.S.: (ping) — The Transhumanist 23:46, 24 February 2019 (UTC)
Portal:Michigan highways has broken links in some sections, like selected articles. Could a member of this project please fix these by reformatting the archive pages, then using your templates to randomly select from those? This is not an invitation to redesign the whole portal. I just want this small piece fixed. Please ping when replying — pythoncoder ( talk | contribs) 01:21, 9 March 2019 (UTC)
|
After a lot of varied and tedious fixes, and a few wrong turns, we're now down to two splurges which I can't solve.
Maybe someone else can work out what is going on in those cases. The current splurge list, which may grow or shrink, is here. Certes ( talk) 21:21, 10 January 2019 (UTC)
34.53% 3722.768 2 Template:Transclude_list_item_excerpts_as_random_slideshow — I added limit=25; now 2238 ms 31.97% 3446.366 1 Template:Transclude_files_as_random_slideshow — only one article; hard to see how to improve this 27.88% 3006.317 1 Template:Transclude_selected_recent_additions — I removed %s from the start of search terms; now 2250 ms
{{
Transclude files as random slideshow}}
, then you could instead use {{
random slideshow}}
and manually specify files/captions from that article. Reducing the number of months in {{
Transclude selected recent additions}}
should also reduce the Lua time used. -
Evad37 [
talk
13:22, 12 February 2019 (UTC)
This report is condensed from WP:AN#Proposal 4: Provide for CSD criterion X3 (long section: search for Philippines).
Portals where the lead contains {{ PH wikidata}} do not work. This technique is designed for use in infoboxes rather than in the body of the article. I suspect that it fails because the template uses the page title to retrieve information from Wikidata, and here it gets the title of the template rather than the title of the transcluded page. There are possible solutions, but they require changing wikidata templates rather than portals and the work might be wasted after the current deletion spree. For now, I suggest avoiding automatically generated portals about places in the Philippines. Certes ( talk) 11:17, 21 March 2019 (UTC)
Wikipedia:WikiProject Portals/Wanted portals lists over 500 wanted portals.
Unfortunately, they don't have the necessary support for {{ bpsp}} to create them.
Most of them lack a corresponding navbox navigation footer template.
So, a script is needed that would populate the Selected general articles section somehow.
Ideas? — The Transhumanist 07:01, 11 February 2019 (UTC) P.S.: @ Evad37, Dreamy Jazz, Certes, DannyS712, FR30799386, and The Evil IP address: (ping)
Hello,
I am planning to extend my bot to automatically create portal talk pages using the wikiproject banners found on article pages, along with the portal project banner and {{ Portal talk}}. I have opened a BRFA, but before it can be tested and potentially approved it needs more input from others.
So, what are your thoughts on this bot? Dreamy Jazz 🎷 talk to me | my contributions 10:19, 20 February 2019 (UTC)
Here are some pointers for fixing problems with specific portals.
search The random slideshow chooses randomly from a list of zero images, and isn't very exciting.
search The list provided contains no usable pages. This error usually occurs in Selected general articles.
search The portal needs to be less ambitious, perhaps by setting lower page count limits on its template calls.
search – a longer list including the three specific types above and some miscellaneous errors.
Category:Pages with script errors also lists these problems but is less useful as it includes many errors unrelated to portals.
Both lists currently contain several instances of "Lua error in Module:Excerpt at line 117: attempt to concatenate local 'rtitle'...". That problem has already been fixed and should disappear from search results soon.
Some errors which appear in portals occur in modules which are related to the topic area rather than to portals, and also appear in the quoted article.
Hope that helps, Certes ( talk) 15:13, 25 February 2019 (UTC)
A template who imports articles from popular pages reports for wikiprojects. Guilherme Burn ( talk) 17:30, 9 January 2019 (UTC)
{{Transclude pupular articles slideshow | Wikipedia:WikiProject Alternative views/Popular pages | arg=views | pages=10 }}
would result in a slideshow with the ten most popular articles of the project, {{Transclude pupular articles slideshow | Wikipedia:WikiProject Alternative views/Popular pages | arg=Importance | arg2=Top }}
would result in a slideshow with the Top importance pages of the project.
Guilherme Burn (
talk)
19:11, 9 January 2019 (UTC)
Now that I've done § Non-random slideshow, we can do
{{Transclude linked excerpts as random slideshow|Wikipedia:WikiProject Alternative views/Popular pages|section=List|random=no|limit=10}}
to produce
- Evad37 [ talk 02:20, 10 January 2019 (UTC)
The file on the lead excerpt is showing the wrong caption. It is selecting the caption from the |pushpin_map_caption=
field rather than the |image_caption=
field of {{
Infobox settlement}} template.
Keith D (
talk)
01:24, 25 April 2019 (UTC)
Today's Birthdays on August 26 is broken and tossing up a wall of red errors. -- Phospheros ( talk) 17:57, 26 August 2019 (UTC)
It is now possible to vary excerpt options between pages, for example to take the first paragraph of one article but the second and third paragraphs of another. I have also documented the existing capability to use sections and piped links. Details: Template:Transclude lead excerpt/doc#Page options. These features apply to most templates using Module:Excerpt. Certes ( talk) 11:44, 12 September 2019 (UTC)
It is now possible to display a named image, even if it does not appear in the article. Only a single image is supported, but it can vary between articles using page options, e.g. Article{{!}}files{{=}}Myimage.jpg. This feature has similar scope and documentation to page options. Certes ( talk) 13:38, 12 September 2019 (UTC)
Proposing that {{Related portal}} and {{Related portals2}} be changed so that clicking on an image takes a user to the portal and not to the image itself. -- Phospheros ( talk) 21:14, 10 September 2019 (UTC)
It is now possible to display all excerpts from a selection simultaneously by passing a new |showall=
parameter to the Transclude...excerpt templates. This feature is designed for use in subpages and produces a display more suited to editors than to readers. To display all excerpts on the subpage but only one on the main portal page, transclude the subpage as normal and add <noinclude>|showall=</noinclude>
to the template. Thanks to
Kusma for the idea, previously discussed
here.
Certes (
talk)
15:40, 20 October 2019 (UTC)
![]() | A request for comment regarding the use of direct transclusion in portals and the newer portal transclusion templates is occurring at the Wikipedia:Village pump (policy) page, here. |
Here's the updated link to the now archived discussion:
Sincerely, — The Transhumanist 14:15, 25 January 2020 (UTC)
![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 | Archive 3 | Archive 4 | Archive 5 |
@ Evad37 and Certes: Every other page display or purge has formatting problems.
It appears it may have something to do with {{ Transclude list item excerpts as random slideshow}}. — The Transhumanist 06:04, 24 September 2018 (UTC)
Currently, we have a slideshow template that accepts file names, and another that accepts source page names (from which it gathers all the files for the slideshow).
Is it possible to create a template that accepts both kinds of arguments?
That way, if there's a file name you want to add, you can just add it, even if the slideshow uses sourcepages.
I look forward to your replies. — The Transhumanist 07:44, 2 August 2018 (UTC)
One way to insert individual filenames into slideshows that use sourcepages, is to have a holding area for them, such as a section near the bottom of the portal. A gallery or filename list could be put in that section. Then the portal's title and that section can be specified as a sourcepage argument in the slideshow. Thus, the portal will be harvesting itself.
It would be even more convenient if filenames could be specified in {{ Transclude files as random slideshow}}, along with the sourcepage arguments, perhaps with filename1=, filename2=, and so on. Is this feasible? — The Transhumanist 18:30, 24 August 2018 (UTC)
When it is a downgrade. Like this...
Something happened while I was replacing existing 'Selected image' sections that had ten or fewer images with slideshows that automatically transcluded the pics from the root article. On Portal:German Empire, this action replaced a very high quality hand-picked selection of ten pictures with customized captions (that were written for a more prominent displaying). The replacement looked like this: https://en.wikipedia.org/?title=Portal:German_Empire&oldid=854567132
Somebody restored the original selection, and so I migrated the subpage content and converted it into the slideshow presently on the page. I think you'll agree that this is a high-quality set of pictures that supports the subject well.
The "Selected picture" subpages of the other 200 portals that received "upgrades" are still in existence. It would be a shame to lose the work that was put into gathering the pictures and writing captions for them. In many cases, the selection goes beyond the set of pictures presented on the root article. What I'd like to do is harvest the filenames and captions from those subpages and insert them as parameters into the image slideshow on the respective portal base page.
But, in order to do that, the template used for the slideshow would need to support both sourcepage names and filenames. So, please put this one at the top of your portal to do list. ;)
Sincerely, — The Transhumanist 00:02, 29 August 2018 (UTC)
captionn
and optionally creditn
parameters to specify specific images – see documentation. There's also an example at
Template:Transclude_files_as_random_slideshow/testcases#Page_plus_specific_files. -
Evad37 [
talk
01:28, 29 August 2018 (UTC)
@ Evad37, Certes, Pbsouthwood, AfroThundr3007730, Dreamy Jazz, Vermont, and Waggers:
Hopefully, we can find a way to implement {{ Transclude files as random slideshow}} without numbering the captions.
With the necessity to number them, it makes harvesting the pics and captions from subpages using AWB infeasible, unless it has incrementing capabilities I don't know about.
Without numbered captions, many of the portals' subpages could be harvested in 4 AWB passes:
If the captions have to be numbered, I don't know how that can be done within the above method. Doing the numbering by hand would slow this process down immensely.
Thoughts? — The Transhumanist 09:56, 5 September 2018 (UTC)
##
as a separator – i.e. File:Filename.ext##Caption goes here##Credit goes here
, or File:SomeOtherFile ## Some caption without a credit line
. Whitespace around the ##
doesn't matter, and raw equals signs have to be replaced with {{=}}
. -
Evad37 [
talk
05:14, 24 September 2018 (UTC)I'm sorry if this is the wrong place to mention this but I have created a template that displays articles as boxes with an image and a description: {{ article card}}. It could be used an interesting way for portals to showcase their featured content. Please tell me if anyone thinks it would actually be usable because it does need improvement and i'd rather not waste my time creating something pointless. 🌸 WeegaweeK ^ 🌸 19:58, 27 September 2018 (UTC)
@ Evad37 and Certes: Entries for New South Wales show up in the did you know section. Can this be fixed? — The Transhumanist 19:45, 16 October 2018 (UTC)
|not=
parameter, so you could try something like {{
Transclude selected recent additions|Wales|not=New South Wales|not2=Jimmy Wales}}
.
Certes (
talk)
00:05, 17 October 2018 (UTC)@ Evad37 and Certes: The entry for Morpeth, Northumberland in the general selected articles section has the image being way too big and also bugged out (stray wikitext for the end of an image). Dreamy Jazz 🎷 talk to me | my contributions 11:16, 14 October 2018 (UTC)
{{
Transclude lead excerpt|Morpeth, Northumberland|files=1}}
also shows several images which, whilst of reasonable size individually, combine to make a huge composite. That template does render the lead properly, except that it fails to link Morpeth to
Morpeth, Northumberland (because the image section is so long that the bold text is rejected for occurring too late in the lead). What do we think the excerpt should look like when we encounter an imagemap? I'm tempted to take the first image, but that would illustrate Morpeth with a signpost to somewhere else, which is hardly representative.
Certes (
talk)
11:29, 14 October 2018 (UTC)
Putting {{Transclude lead excerpt | paragraphs=1-3 | files=1 | more=| Morpeth, Northumberland }}
into
Special:ExpandTemplates shows that the following wikitext is being generated:
[[File:Morpeth montage.jpg|alt=Morpeth montage. Clicking on an image in the picture causes the browser to load the appropriate article.]]</center>|thumb]] '''Morpeth''' is a historic [[market town]] in [[Northumberland]], [[North East England|north-east]] England, lying on the [[River Wansbeck]]. Nearby villages include [[Mitford, Northumberland|Mitford]] and [[Pegswood]]. In the [[United Kingdom Census 2011|2011 census]], the population of Morpeth was given as 14,017, up from 13,833 in the [[United Kingdom Census 2001|2001 census]]. '''[[Morpeth, Northumberland|Read more...]]'''
So it seems the code that extracts a [[File:...]]
block from a template parameter is not removing the trailing </center>
, and that |thumb]]
is just tacked on at the end, causing mismatched square brackets. -
Evad37 [
talk
00:44, 17 October 2018 (UTC)
I'm having trouble converting this Portal:Organized Labour into a single page portal. The biggest obstacle is the "Did You Know?" Section. None of the existing templates ({{ Transclude DYK}} and {{ Transclude selected recent additions}}) appear to satisfactorily replace the subpage system in this case. Would it be possible to create a template that crosses project categories with the "Did you know" category and transcludes the results? Like this tool( https://petscan.wmflabs.org/?psid=6232674)? Guilherme Burn ( talk) 20:42, 28 October 2018 (UTC)
Template:Transclude list item excerpts as random slideshow seems to be causing weird problems, depending on which list item is displayed initially. Effects range from the page truncating after the selected herb or spice section, to rendering in single-column only, to gobble-dee-gook showing up on the page. Here are portals I created that are having these problems:
I hope this heads up helps. I'll post more, as I spot them. — The Transhumanist 22:16, 13 August 2018 (UTC)
In this portal, the Selected general articles section is blank! — The Transhumanist 05:10, 16 August 2018 (UTC)
<gallery>...</gallery>
in the lead, which was mucking up the slideshow gallery – the module now strips galleries from the excerpts to avoid this problem. -
Evad37 [
talk
17:08, 16 August 2018 (UTC)
In this portal the < > symbols appear in the wrong place, overwriting the heading for Selected general articles. — The Transhumanist 01:34, 17 August 2018 (UTC)
This one intermittently (but mostly) truncates after Selected general articles section. —
The Transhumanist
00:39, 23 August 2018 (UTC)
Fixed
@
Evan37 and
Certes: When the limit=
is removed, the portal displays a couple of problems. Either it truncates right after the Selected general articles section, or it shoves the rest of the page into a jewelry navigation footer that is included in one or more of the transcluded articles. It may also display all the entries instead of just one.
Someone has complained prominently about the result of the limit (there only being 11 articles displayed), and has claimed that this renders the scope of the portal as too narrow, even though the selection changes with each page purge. So, it is pretty urgent to get this thing displaying all 74 items correctly again. — The Transhumanist 09:40, 25 September 2018 (UTC)
|limit=10
from
Portal:Body piercing. A few excerpts are not displaying correctly, especially by showing
thumb instead of the image, but I don't think that's a consequence of this change.
Certes (
talk)
10:25, 25 September 2018 (UTC)I'm using two vertical columns of random slideshows with the "Flex columns" template, and running into issues.
Show
|
---|
States with limited recognition Current state biographies Distinguished content Featured or Good articles |
(from this page it seems that pressing "Show" results in the problem I've described becoming immediately visible, whereas they initially load correctly at Portal:Limited recognition)
Brendon the Wizard ✉️ ✨ 09:01, 4 September 2018 (UTC)
|image7=
and |caption7=
for the page in the seventh unnamed parameter. -
Evad37 [
talk
09:07, 18 September 2018 (UTC)…|South Ossetia|File:ossetianflag.jpg|Kosovo|Gaza|…
) but that hack doesn't work with captions.
Certes (
talk)
09:29, 18 September 2018 (UTC)Follow up (I guess we can call this #3): Both columns of this template appear empty on mobile (using Google Chrome and an Android) Brendon the Wizard ✉️ ✨ 18:44, 25 September 2018 (UTC)
Recently The Transhumanist converted the Selected Picture to a slideshow drawing from the Illinois and Culture of Illinois pages. I would like to also include the images that had previously been selected and stored at Portal:Illinois/Selected picture. Most of those pictures have achieved some kind of recognition either here or in Commons and I would like the portal to continue to showcase them. I tried to do that using the following markup, but it does not seem to be working:
{{/box-header|Selected images|noedit=yes}} {{Transclude files as random slideshow | {{PAGENAME}} | Culture of {{PAGENAME}} | Portal:{{PAGENAME}}/Selected picture }} {{Box-footer}}
Is there a better way to incorporate the images from that subpage? Thanks and please excuse the ignorance. I don't know the new system at all yet. Fishal ( talk) 20:53, 5 October 2018 (UTC)
[[File:...]]
markups and galleries). So you can go with either of AfroThundr3007730's suggestions, and then move each caption inside the Image:/File: markup, or alternatively you can specify each files/captions/credits directly in the {{Transclude files as random slideshow}}
template. -
Evad37 [
talk
08:30, 6 October 2018 (UTC)@ Evad37 and Certes: Sometimes exhibits the truncation bug, and at other times, the spewing bug. And sometimes really messes up the formatting of the page. — The Transhumanist 09:42, 8 October 2018 (UTC)
@ Evad37 and Certes: This portal is spewing all the entries in some of the sections, especially the sports section. The arts and education sections also occasionally spew. — The Transhumanist 06:39, 7 October 2018 (UTC)
{{
Transclude list item excerpts as random slideshow|1=Outline of Cairo|section= Areas of Cairo|paragraphs=1-2|files=1|fileargs=|more=|errors=}}
looks perfect with no stray text.{{#tag:gallery|File:Blank.png|...article excerpt...}}
is how the module makes the slideshow. If any of those bits are showing up, it means something from one of the article excerpts is breaking the syntax, such as loose pipes, linebreaks, or opening or closing braces. In this case, the problem seems to have been
Cairo Opera House, which had a manually formatted hatnote that wasn't being removed by
Module:Excerpt (prior to my edit
[1]). The portal seems fine now that the article is using {{about}}
for the hatnote (as far as I can see after several purges). -
Evad37 [
talk
01:17, 9 October 2018 (UTC)
@ Evad37 and Certes: It's cutting off below the "Selected general articles" section. — The Transhumanist 01:56, 17 October 2018 (UTC)
The Did you know section is currently driven entirely by search strings.
Some blurbs will never be found by search.
It would be nice to be able to add those to the results somehow, manually.
Without subpages, of course. — The Transhumanist 01:31, 25 October 2018 (UTC)
@ Certes and FR30799386:
The Selected blackberry hybrids section gets its links from the hybrids subheading in the topics section.
I had to remove the Marionberry link from the topics section, because it caused the whole portal to wig out.
Here is the perm link to the problem:
https://en.wikipedia.org/?title=Portal:Blackberries&action=edit&oldid=868295111
I think it might have something to do with the ogg link in the lead of Marionberry, because nothing before the {{ Audio}} template's second parameter is displayed for that entry in the portal. Then, when I removed Marionberry from the portal, the portal worked fine.
I hope you can fix this, as the Marionberry is a major cultivar, and the subject isn't complete without it. — The Transhumanist 08:56, 11 November 2018 (UTC)
@ Evad37, Certes, and FR30799386: I've run across a weird quirk in the new portal design...
In Portal:Uttarakhand, the Selected general articles section is powered by Template:Transclude list item excerpts as random slideshow, which displays the excerpt from each list item from Template:Uttarakhand.
One of the list items in that template is Politics of Uttarakhand, which is a redirect to Uttarakhand#Government and politics.
What is shown in the portal is the excerpt of the lead of Uttarakhand, rather than the Government and politics section of that article. So, you have the exact same excerpt that is in the intro also being displayed in the Selected general articles section. Aside from being very odd looking, the duplication is awkward (because it wasn't the intended selection), especially when the duplicate is the slideshow item showing when the portal is initially displayed.
In some portals, because of this quirk, the same lead that is in the intro may appear several times in the Selected general articles slideshow.
I hope you find this bug report helpful. — The Transhumanist 07:08, 5 November 2018 (UTC)
A recent module change should make more news items appear in some portals. Please report any problems. Certes ( talk) 12:53, 13 November 2018 (UTC)
A recent module change should prevent some portals from "splurging", by removing incomplete templates and wikilinks such as {{stack|
from excerpts of pages such as
Gare de Lille Europe. Some splurges are due to other causes and remain unfixed. Please report any problems.
Certes (
talk)
12:53, 13 November 2018 (UTC)
@ Certes:
There's an error in the lead, in which the infobox is spewing its wikicode. — The Transhumanist 10:18, 14 November 2018 (UTC)
@ Certes, FR30799386, AfroThundr3007730, Dreamy Jazz, AmericanAir88, Gazamp, and Robertgombos:
The intro has a huge series box in it, which disrupts the layout of the portal. Can the module be fixed to prevent this type of problem? — The Transhumanist 23:49, 27 November 2018 (UTC)
P.S.: AmericanAir88 and Gazamp included for learning purposes.
-TT
@ Certes, FR30799386, AfroThundr3007730, Dreamy Jazz, AmericanAir88, Gazamp, and Robertgombos:
In the intro of Portal:Optical illusions, the font goes wonky. Can the module (or something else) be fixed to prevent this type of problem? — The Transhumanist 12:08, 28 November 2018 (UTC)
Portal:Georgia Institute of Technology appears in Category:ParserFunction errors but has no obvious errors. Can anyone find and fix the fault? Certes ( talk) 11:30, 8 January 2019 (UTC)
Dropping a link to an image proposal. Cesdeva (talk) 18:33, 9 January 2019 (UTC)
While the random slideshows are highly useful and applicable to most situations, for some portals or portal sections, it would be nice to be able to control the order of display for topics in a slideshow.
Like presenting the Presidents of the US in order, for example. Or the rules for a game. And so on. — The Transhumanist 01:26, 25 October 2018 (UTC)
@
The Transhumanist and
FR30799386: Done. The four random slideshow templates can now have
|random=no
added to prevent randomisation. -
Evad37 [
talk
02:12, 10 January 2019 (UTC)
The stub filter is very nice, so that stubs don't show up in excerpt slideshows.
Is it possible to adapt that to handle other types of pages, such as lists with stubby leads?
Lists that have stubby leads are not very helpful to display as excerpts.
Could there be a parameter to filter those out? — The Transhumanist 21:22, 10 January 2019 (UTC)
Section support, to specify a section of a navbox (rather than just the whole template), would be very helpful in creating portals with multiple "Selected" excerpt slideshows.
For examples of portals with multiple excerpt slideshows, see:
Access to navbox sections would blow the ability to do this wide open. — The Transhumanist 22:24, 10 January 2019 (UTC)
The main method of building portals these days is to populate the Selected general articles section from the corresponding navbox footer template.
The problem is, that not all subjects have such footers.
So, being able to build navbox footers with a user script would enable us to build portals for additional subjects. This would also serve to fill in the gaps in WP's system of navigation footers.
The tool could also be designed to easily edit existing navigation footers.
This would be a major step forward in navigation development on Wikipedia. — The Transhumanist 22:31, 10 January 2019 (UTC)
I was creating Portal:Spider-Man, and came across the List of Spider-Man enemies. I thought "what a good excerpt slideshow this could populate". But, when I looked at the list, I found that all the enemy names are locked up inside tables where our current lua modules can't get at them.
Is a lua module for extracting desired links in specific columns from tables possible? — The Transhumanist 23:16, 10 January 2019 (UTC)
Some automated method of pulling the entries from a category, and inserting them into a portal section. — The Transhumanist 11:55, 24 October 2018 (UTC)
![]() |
The User Script Barnstar
| |
is hereby awarded to
DannyS712 for writing
Cat links 2.js, a script for harvesting links from categories, paving the way for this core technique to be applied in Wikipedia's navigation departments. Keep up the excellent work! Kudos._ |
The core technique used in the above program could be applied for inserting parameters into the template calls made on portal pages. Specifically, to inject the list of pages to be included in {{ Transclude excerpts as random slideshow}}.
How could this best be done? — The Transhumanist 00:05, 12 January 2019 (UTC)
@ Evad37, Certes, AfroThundr3007730, FR30799386, Waggers, RockMagnetist, and Godsy:
I'm finding that portals can take 10 or more seconds to display.
What is taking the server time?
How can this be reduced?
I look forward to your replies. — The Transhumanist 23:16, 3 November 2018 (UTC)
P.S.: @ Dreamy Jazz and Northamerica1000:
|months=
on the DYK section and |days=
on the news section. Also providing a |limit=
to the slideshows will help reduce time on the slideshow templates.
Dreamy Jazz 🎷
talk to me |
my contributions
09:09, 12 January 2019 (UTC)Is it possible to write a script that could detect errors in a portal, and then report them here? — The Transhumanist 15:24, 25 October 2018 (UTC)
Perhaps a bot could go around making sure sidebar templates are placed on their own line, rather than at the start or end of the lead paragraph. Identifying sidebar templates is possible but just way too expensive in Lua, whereas as a bot wouldn't have the same time restrictions. - Evad37 [ talk 03:20, 13 January 2019 (UTC)
The title shows up in italics. — The Transhumanist 04:52, 18 January 2019 (UTC)
Something weird has happened. Building portals with the new tools is so easy, that placing links to a new portal takes 3 times as long as creating the portal itself.
Therefore, it would be nice to have a...
Tool to automatically place the following standard links to a portal: a link on the corresponding category page, a link in the See also section of the corresponding root article, and a link at the bottom of the corresponding navigation footer template. — The Transhumanist 05:07, 25 October 2018 (UTC)
P.S.: @ Dreamy Jazz: How is this going? — The Transhumanist 12:28, 10 January 2019 (UTC)
@ Dreamy Jazz: The link to a portal from the corresponding category is pretty standard, simple to do, and non-controversial. Perhaps you should make the bot for just that link type to start out with. — The Transhumanist 21:15, 10 January 2019 (UTC)
@ The Transhumanist: I know you have been doing of placing {{ Portal-inline}} et. al. on the main article, main category and articles in the selected articles list but what is your opinion on having a bot do this. We could automate this via petscan (new portals) and check to see if the articles are linked to the portal. If they are not the bot could add one of these templates to the see also section of the articles/categories concerned. What is your view on this. Note that the articles we link automatically is up for debate, as well as the idea for the bot. Dreamy Jazz 🎷 talk to me | my contributions 22:58, 8 January 2019 (UTC)
* {{Portal-inline|size=tiny|{{subst:PAGENAME}}}}
in the See also sections of the corresponding root articles. On category pages, I've been putting {{Portal|{{subst:PAGENAME}}}}
at the very top of the page. And for selected articles, I insert * {{icon|Portal}} '''[[Portal:{{subst:PAGENAME}}|Portal]]''' in the <code><nowiki>below =
section at the bottom of the corresponding navbox footer which in turn is usually already in place on the selected articles (and gets added to new ones as standard practice, and therefore takes care of future link placement on selecteds without further maintenance runs).@ Evad37, FR30799386, Dreamy Jazz, DannyS712, Dan Koehl, and Mr. Guye: In an interesting turn of fate, building new portals has become amazingly easy (for many subjects, it takes less than a minute), while placing the links to a portal is much harder (takes 5 minutes or more).
This has resulted in a huge number of orphan portals (thousands of them), creating a backlog of links that need to be placed to them (see above).
If you wish to boost the project, automating (or even semi-automating) this task will do it (such as with a user script). This is easily this project's main challenge / greatest need / highest priority. — The Transhumanist 12:58, 10 January 2019 (UTC)
{{portal}}
(and similar templates), and with an input box to add a new portal (which you could type or paste text in, and/or look up existing portal). Like
File:HotCat.png, but with portals instead of categories. If there is an existing {{portal}}
template, then it would be edited; otherwise a new {{portal}}
template would be added to the "See also" section, if present, or else the last section of the page (if it has sections), or else at the end of the page (but above navboxes, categories, etc). If you already know which portal you're adding to the page, the process for adding a portal becomes:
{{portal}}
links -
Evad37 [
talk
14:08, 10 January 2019 (UTC)
{{Portal|portal basepagename}}
was the standard used for the old-style portals. For the new-style single-page portals, * {{Portal-inline|size=tiny|portal basepagename}}
is the predominant link being used on root articles, typically as the top entry in the list in it's See also section (note the preceding bullet), and minding column formatting (that is, placing it right after the beginning column template call). Where there is no See also section, adding one is preferable (since the link is a list item entry, rather than a box off to the right). —
The Transhumanist
14:25, 10 January 2019 (UTC)I have started coding this. I'll probably need a couple more days to have a beta version ready for testing. - Evad37 [ talk 10:42, 28 January 2019 (UTC)
The application of "Did you know" entries in portals is a repurpose. Some entries include the note "(illustrated)", to indicate that the picture included with a particular batch was for that entry. For example...
Currently, those pictures are not included in portals, which renders the note erroneous.
Is it possible to include the pictures? — The Transhumanist 20:52, 3 February 2019 (UTC)
A script and/or bot to add to portals the same (subject, non-hidden) category tags that the like-named article has. Having both a bot and a script would be great.
We are way behind on the categorization of portals.
By using the article categories, we wouldn't even need to have a redundant category tree for the portal namespace. We would be able to find all the portals in the article categories, sorted by title, not namespace (they should not sorted by "P" for "Portal", but by the subject title).
I look forward to your replies. — The Transhumanist 17:19, 10 February 2019 (UTC)
P.S.: @ Evad37, Dreamy Jazz, Certes, DannyS712, FR30799386, and The Evil IP address: (ping)
[[Category:(cat name)]]
on the portal for each category detected on the portal (i.e. categories wrapped in <categorytree></categorytree>
).@ Dreamy Jazz: What we are talking about here, is going to the like-named article page, copying the non-hidden category tags, and then adding them to the portal. Except the ones that are already there, of course. — The Transhumanist 17:30, 10 February 2019 (UTC)
Danny, could your script that appends categories be cloned and modified to do this? — The Transhumanist 17:32, 10 February 2019 (UTC) P.S.: @ DannyS712: (ping)
wgCategories
- that would have been so much easier to use --
DannyS712 (
talk)
07:28, 23 February 2019 (UTC)This could be controversial, so I would agree with Certes's suggestion of discussing at WT:CAT, and making sure there is consensus before doing mass edits. Also, how are portals sorted in the cats? They probably should have a unique sort key, rather than being lumped in the middle of a bunch of articles. Especially if its a Portal:Foo in a Category:Foo situation. - Evad37 [ talk 09:19, 14 February 2019 (UTC)
Are there any ideas on how to automate related portals?
I thought of something related to a hierarchy tree. Wikipedia:WikiProject Portals/Portals tree Guilherme Burn ( talk) 18:25, 27 February 2019 (UTC)
I make this Template:Portals tree. Who can help me improve it? I tested in the portals Portal:Society and Portal:Prostitution. Guilherme Burn ( talk) 17:36, 27 March 2019 (UTC)
Not sure if this is the right place for this discussion so feel free to move it to somewhere more appropriate. When we relaunched this project one of the ideas I had in the back of my mind was the ability to create a portal-like page dynamically from a Category, pretty much as a user preference. There is something pretty similar already over on the Commons - the Gallery Slideshow Gadget ( see this example). This script essentially grabs the content of the pages within the category and displays it all as a slide show. I think this gives a good starting point for a "virtual" portal. Obviously on Wikipedia we'd want the text to be given more prominence than the image, and there would be some other formatting bits and pieces to sort out, but most of the functionality we would want to use is there already in this gadget, which is enabled by default on the Commons. What do others think? Waggers TALK 12:12, 27 March 2019 (UTC)
How to convert a layout with "tabs" to a single page portal? P:SEX is the example case. The challenge, for a creative issue, is to convert it into a single page portal keeping the tabs. Any idea how to do it? Guilherme Burn ( talk) 11:18, 6 February 2019 (UTC)
[[|Main page]] | [[|Page2]] | [[|Page3]] |
<div>...</div>
and use CSS to show/hide each div as you click on the tabs. This would, however, require JavaScript to change the classes on each div (e.g. to add/remove a hidden
class). The
common.js
on enwiki already has code to work with the mw-colllapsible
and mw-collapsed
classes used in tables, but I'm not sure if that could be leveraged to do what we want here. @
The Transhumanist,
Evad37, and
Dreamy Jazz: You guys have any ideas on this one? — AfroThundr (
u ·
t ·
c)
01:43, 23 February 2019 (UTC)
Tab1 |
---|
Tab2 |
---|
Tab3 |
---|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
@ Guilherme Burn: What I do is simply get rid of the tabs, and include everything in sections on the one page. Though, I don't include WikiProject page content. Instead the standard section with a link to the corresponding WikiProject is fine. — The Transhumanist 07:06, 23 February 2019 (UTC)
Portal:Cross-Strait relations spew with the blank.png image being shown. Dreamy Jazz 🎷 talk to me | my contributions 12:22, 15 March 2019 (UTC)
A recurring problem with the image slideshows is the display of images without captions, thus displaying pictures without context. These include icons, such as highway symbols, which shouldn't be showing up in the slideshow anyways.
Can you adjust the module to only display images that have captions?
I look forward to your reply. Sincerely, — The Transhumanist 18:08, 19 March 2019 (UTC)
@ Evad37: Thank you. Nicely done. — The Transhumanist 18:27, 20 March 2019 (UTC)
@ Pythoncoder: Rather than revert a problem with a portal, if you brought it up on this page, it could be fixed. Then it would be fixed site-wide, not just on a single portal. Note how quickly this one was fixed. — The Transhumanist 18:27, 20 March 2019 (UTC)
![]() | Exactly what it says on the tin. Post your specific technical issues here. |
AmericanAir88( talk) 23:05, 28 November 2018 (UTC)
I can't see what is causing issues with the sort key on Portal:Michelangelo, as it is not Michelangelo but actually "Agony And The Ecstasy". I presume this is a template issue. Dreamy Jazz 🎷 talk to me | my contributions 17:08, 24 February 2019 (UTC)
I tried to convert it to single page, but the formatting went all wonky. See https://en.wikipedia.org/?title=Portal:Typography&oldid=884891031 — The Transhumanist 23:45, 24 February 2019 (UTC)
@ Certes: P.S.: (ping) — The Transhumanist 23:46, 24 February 2019 (UTC)
Portal:Michigan highways has broken links in some sections, like selected articles. Could a member of this project please fix these by reformatting the archive pages, then using your templates to randomly select from those? This is not an invitation to redesign the whole portal. I just want this small piece fixed. Please ping when replying — pythoncoder ( talk | contribs) 01:21, 9 March 2019 (UTC)
|
After a lot of varied and tedious fixes, and a few wrong turns, we're now down to two splurges which I can't solve.
Maybe someone else can work out what is going on in those cases. The current splurge list, which may grow or shrink, is here. Certes ( talk) 21:21, 10 January 2019 (UTC)
34.53% 3722.768 2 Template:Transclude_list_item_excerpts_as_random_slideshow — I added limit=25; now 2238 ms 31.97% 3446.366 1 Template:Transclude_files_as_random_slideshow — only one article; hard to see how to improve this 27.88% 3006.317 1 Template:Transclude_selected_recent_additions — I removed %s from the start of search terms; now 2250 ms
{{
Transclude files as random slideshow}}
, then you could instead use {{
random slideshow}}
and manually specify files/captions from that article. Reducing the number of months in {{
Transclude selected recent additions}}
should also reduce the Lua time used. -
Evad37 [
talk
13:22, 12 February 2019 (UTC)
This report is condensed from WP:AN#Proposal 4: Provide for CSD criterion X3 (long section: search for Philippines).
Portals where the lead contains {{ PH wikidata}} do not work. This technique is designed for use in infoboxes rather than in the body of the article. I suspect that it fails because the template uses the page title to retrieve information from Wikidata, and here it gets the title of the template rather than the title of the transcluded page. There are possible solutions, but they require changing wikidata templates rather than portals and the work might be wasted after the current deletion spree. For now, I suggest avoiding automatically generated portals about places in the Philippines. Certes ( talk) 11:17, 21 March 2019 (UTC)
Wikipedia:WikiProject Portals/Wanted portals lists over 500 wanted portals.
Unfortunately, they don't have the necessary support for {{ bpsp}} to create them.
Most of them lack a corresponding navbox navigation footer template.
So, a script is needed that would populate the Selected general articles section somehow.
Ideas? — The Transhumanist 07:01, 11 February 2019 (UTC) P.S.: @ Evad37, Dreamy Jazz, Certes, DannyS712, FR30799386, and The Evil IP address: (ping)
Hello,
I am planning to extend my bot to automatically create portal talk pages using the wikiproject banners found on article pages, along with the portal project banner and {{ Portal talk}}. I have opened a BRFA, but before it can be tested and potentially approved it needs more input from others.
So, what are your thoughts on this bot? Dreamy Jazz 🎷 talk to me | my contributions 10:19, 20 February 2019 (UTC)
Here are some pointers for fixing problems with specific portals.
search The random slideshow chooses randomly from a list of zero images, and isn't very exciting.
search The list provided contains no usable pages. This error usually occurs in Selected general articles.
search The portal needs to be less ambitious, perhaps by setting lower page count limits on its template calls.
search – a longer list including the three specific types above and some miscellaneous errors.
Category:Pages with script errors also lists these problems but is less useful as it includes many errors unrelated to portals.
Both lists currently contain several instances of "Lua error in Module:Excerpt at line 117: attempt to concatenate local 'rtitle'...". That problem has already been fixed and should disappear from search results soon.
Some errors which appear in portals occur in modules which are related to the topic area rather than to portals, and also appear in the quoted article.
Hope that helps, Certes ( talk) 15:13, 25 February 2019 (UTC)
A template who imports articles from popular pages reports for wikiprojects. Guilherme Burn ( talk) 17:30, 9 January 2019 (UTC)
{{Transclude pupular articles slideshow | Wikipedia:WikiProject Alternative views/Popular pages | arg=views | pages=10 }}
would result in a slideshow with the ten most popular articles of the project, {{Transclude pupular articles slideshow | Wikipedia:WikiProject Alternative views/Popular pages | arg=Importance | arg2=Top }}
would result in a slideshow with the Top importance pages of the project.
Guilherme Burn (
talk)
19:11, 9 January 2019 (UTC)
Now that I've done § Non-random slideshow, we can do
{{Transclude linked excerpts as random slideshow|Wikipedia:WikiProject Alternative views/Popular pages|section=List|random=no|limit=10}}
to produce
- Evad37 [ talk 02:20, 10 January 2019 (UTC)
The file on the lead excerpt is showing the wrong caption. It is selecting the caption from the |pushpin_map_caption=
field rather than the |image_caption=
field of {{
Infobox settlement}} template.
Keith D (
talk)
01:24, 25 April 2019 (UTC)
Today's Birthdays on August 26 is broken and tossing up a wall of red errors. -- Phospheros ( talk) 17:57, 26 August 2019 (UTC)
It is now possible to vary excerpt options between pages, for example to take the first paragraph of one article but the second and third paragraphs of another. I have also documented the existing capability to use sections and piped links. Details: Template:Transclude lead excerpt/doc#Page options. These features apply to most templates using Module:Excerpt. Certes ( talk) 11:44, 12 September 2019 (UTC)
It is now possible to display a named image, even if it does not appear in the article. Only a single image is supported, but it can vary between articles using page options, e.g. Article{{!}}files{{=}}Myimage.jpg. This feature has similar scope and documentation to page options. Certes ( talk) 13:38, 12 September 2019 (UTC)
Proposing that {{Related portal}} and {{Related portals2}} be changed so that clicking on an image takes a user to the portal and not to the image itself. -- Phospheros ( talk) 21:14, 10 September 2019 (UTC)
It is now possible to display all excerpts from a selection simultaneously by passing a new |showall=
parameter to the Transclude...excerpt templates. This feature is designed for use in subpages and produces a display more suited to editors than to readers. To display all excerpts on the subpage but only one on the main portal page, transclude the subpage as normal and add <noinclude>|showall=</noinclude>
to the template. Thanks to
Kusma for the idea, previously discussed
here.
Certes (
talk)
15:40, 20 October 2019 (UTC)
![]() | A request for comment regarding the use of direct transclusion in portals and the newer portal transclusion templates is occurring at the Wikipedia:Village pump (policy) page, here. |
Here's the updated link to the now archived discussion:
Sincerely, — The Transhumanist 14:15, 25 January 2020 (UTC)