Wikipedia:Requested templates

Latest comment: 2 days ago by 2603:8001:4542:28FB:D83C:41C6:8B71:EABA in topic Requested template redirects

Add new requests for a new template or updates to existing templates to the bottom of this page. Please be clear about what the template is used for, roughly what it should look like, and which articles it should link to, if any.

For requests regarding stub templates, go to Wikipedia:WikiProject Stub sorting/Proposals.

A general description and guideline for userboxes can be found at Wikipedia:Userboxes. A detailed instruction to use the userbox template can be found at Template:Userbox. For requests regarding userboxes, go to Wikipedia talk:Userboxes/Ideas.

For help with fixing existing templates, you may want to visit Wikipedia:Village pump (technical).

Religious text primary inline edit

{{Religious text primary inline}}

Self-explanitory, just an inline version of {{Religious text primary}} to highlight citations for specific passages instead of blanket-tagging an entire page or section.

Orchastrattor (talk) 20:41, 4 January 2024 (UTC)Reply[reply]

I've created {{Religious text inline}}. → Test.[non-scripture source needed]
Is the phrase "scripture" adequate here? I think it's a straightforward synonym for "religious text" in this usage, but "non-religious text source needed" is too clunky. Remsense 21:25, 8 January 2024 (UTC)Reply[reply]

A variant of {{label}} on Commons edit

I am requesting a template on Commons that works like the {{label}}-template does on Commons, but has the ability to set custom text for the link, similar to [[link to page|display text]], but with the same functions as C:Template:label (that first tries to link to a Wikipedia page in the user's language, and secondly to Wikidata).

It's a bit hard to explain, since the label template is not the same on Wikipedia and Commons.

I was thinking it could be used for shortening the displayed link text when writing things like
"Trams M28 768, M28 730, and M28 722"
but displaying
"Trams M28 768, 730, and 722" (with links)
"Stellan Skarsgård and Alexander Skarsgård"
but displaying
"Stellan and Alexander Skarsgård".

I hope this makes sense.

abbedabbtalk 18:37, 8 January 2024 (UTC)Reply[reply]

Just write it out in Wikitext - what you are suggesting would violate Wikipedia:Requests for comment/Wikidata Phase 2 anyway. * Pppery * it has begun... 18:52, 8 January 2024 (UTC)Reply[reply]
I need the template I am requesting to be used inside other templates. As I wrote: I need the links to have the same functionality as the label-template on Commons, and that is something that cannot be written in wikitext. Also, I cannot see anything in this template that would violate Phase 2 in any way, since the template will be used on Wikimedia Commons. /abbedabbtalk 20:09, 8 January 2024 (UTC)Reply[reply]

New template for {{SP400 companies}} edit

{{SP400 companies}}

Would be similar to

{{AEX companies}}

But with companies in the S&P 400. (talk) 10:48, 26 January 2024 (UTC)Reply[reply]

Like this
Do you just want the above copied to a template? Also, what do the asterisks signify? LittlePuppers (talk) 22:46, 26 January 2024 (UTC)Reply[reply]
Yes, that's the idea. Create a new template that can be added to page footers.
Oops, asterisks are suppose to be bullet point/spacers. Think I need a space after each one? I'll fix that later. — Preceding unsigned comment added by (talkcontribs)
You need to put each item on a new line, i.e. so each asterisk starts a line (I did one as an example). LittlePuppers (talk) 00:53, 27 January 2024 (UTC)Reply[reply]
Ok, all ready. — Preceding unsigned comment added by (talkcontribs)
One other thing - do you think you could take a look at my other question on the Talk page? — Preceding unsigned comment added by (talkcontribs)
See Help:Template limits if you want highly technical details, but I don't think this will be an issue - the problem is rarely number of links, but if the template is doing complex computations, which this is not. (And I am still planning on getting to this request at some point.) LittlePuppers (talk) 21:12, 28 January 2024 (UTC)Reply[reply]
There are size considerations, but I'll set this template to be collapsed by default. LittlePuppers (talk) 21:13, 28 January 2024 (UTC)Reply[reply]
Ok, thanks for the info. Yeah, this is just static text (if I'm understanding the page history correctly, it's 8k of text, perhaps 16k of html) so probably not too bad. I'm just mindful of the fact it's almost the whole screen on my phone. Also looking at where the limit might be for future ideas. Clearly the Wilshire 5000 index is gonna be way too large for this to be practical... Would be nice to tie it in with some sort of etiquette or other limit (ie category pages list up to 200 articles on each page, you have to navigate through them). — Preceding unsigned comment added by (talk) 23:01, 28 January 2024 (UTC)Reply[reply]
And if I'm remembering correctly, navboxes like this generally don't show up at all in articles on mobile. LittlePuppers (talk) 23:40, 28 January 2024 (UTC)Reply[reply]
For the red links, I assume it's better simply to remove the link tag but leave the text in place, rather than actually shorten the list? — Preceding unsigned comment added by (talk) 18:21, 29 January 2024 (UTC)Reply[reply]
I think in this case the red links might be alright; it might be borderline, but I don't think they're quite excessive, see WP:RED. There are also a handful of links to disambiguation pages, which I'm working on right now. LittlePuppers (talk) 23:27, 1 February 2024 (UTC)Reply[reply]
Comparing with List of S&P 400 companies has also shown a few which do have articles. LittlePuppers (talk) 23:50, 1 February 2024 (UTC)Reply[reply]
How does {{S&P 400 companies}} look? LittlePuppers (talk) 23:57, 1 February 2024 (UTC)Reply[reply]
Looks great. Thank you very much! Just one thing - Consumer Discretionary seems bigger than all the rest. Something to do with the additional text? Otherwise it does the job perfectly. Now we just need to start adding it... — Preceding unsigned comment added by (talk) 11:49, 2 February 2024 (UTC)Reply[reply]
What about it looks bigger - the text "Consumer Discretionary"? That looks similar to all the rest to me. Can you describe what specifically looks off, or post a screenshot? LittlePuppers (talk) 22:33, 2 February 2024 (UTC)Reply[reply]
The left column in fine, but every link in the right column looks approx 200% size. Using Chrome on Android/Motorola, I've tried mobile view, desktop view, spoofing as desktop, the same every time. Can't see any markup issues. Pretty sure it's something to do with the Under Armour nonlinked text... — Preceding unsigned comment added by (talk) 13:05, 3 February 2024 (UTC)Reply[reply]
Ok, I just added the template to Cable One, and now, when on that page, the whole of the Communication section is large... could be a CSS issue? — Preceding unsigned comment added by (talk) 14:14, 3 February 2024 (UTC)Reply[reply]
I've tried both the desktop and mobile site on a few different browsers and it looks normal to me in all of them (although navboxes generally don't display in articles on the mobile site). You could try asking at WP:VPT and seeing if anyone there can reproduce the issue. LittlePuppers (talk) 17:36, 3 February 2024 (UTC)Reply[reply]
Yeah, you're right. I've just checked Chrome on Windows and Safari on Mac. No issues. Must be an Android thing. — Preceding unsigned comment added by (talk) 23:15, 4 February 2024 (UTC)Reply[reply]
Included the category, plus getting there with the additions. Does anybody else wanna take Financials, Industrials or Consumer Discretionary? — Preceding unsigned comment added by (talk) 22:53, 7 February 2024 (UTC)Reply[reply]

Template that takes in text with spaces and outputs text with underscores edit

For use on the attribution template {{AARoads}}. {{Flinkr}} does this, but it also wikilinks the output. Mach61 (talk) 14:13, 29 January 2024 (UTC)Reply[reply]

Can you use module:string's replace function? VanIsaac, GHTV contWpWS 15:11, 29 January 2024 (UTC)Reply[reply]
@Mach61: Hi. {{replace|Lorem ipsum dolor sit amet| |_}} would give "Lorem_ipsum_dolor_sit_amet". If it's not enough, we can wrap this template in a new one which just replaces spaces with underscores by default. Jeeputer Talk 18:31, 29 January 2024 (UTC)Reply[reply]

Request for Invitation template - WP: Orphanage edit

Cheers, please create an invitation template, for WP:Orphanage. Even though I have little confidence in making this kind of template myself, per instructions, I completed a portion of the content below.

1. Add request at bottom of page

2. For WikiProject Orphanage

3. Please be clear about:

  • What the template is used for:
    • Invite to WikiProject Orphanage
  • Roughly what it should look like:
    • clone of Template:WikiProject Journalism invitation
    • Use   instead of Newspaper, adjust px size

4. Invitation text (Template) - first attempt here

Greetings Requested templates,
We would like to invite you to join WikiProject Orphanage, a group of Wikipedians helping improve articles on many topics. "An orphan article has no links from other pages in the main article namespace". If you are new to Wikipedia, de-orphaning articles is a great way to learn a wide variety of useful skills. De-orphaning, when done correctly, will allow you to learn how to navigate within Wikipedia, how to format wikilinks, and how to utilize cleanup tags.
If you're interested, consider adding yourself to the list of participants. For the how-to page, see WP:ORPH. Thank you!

Chances are there might be mistakes in the above, so feel free to adjust where needed. Thanks for helping. Regards, JoeNMLC (talk) 21:22, 30 January 2024 (UTC)Reply[reply]

@JoeNMLC: how does Template:WikiProject Orphanage invitation look? LittlePuppers (talk) 07:21, 1 February 2024 (UTC)Reply[reply]
  Done - @LittlePuppers Thank you for creating this. I tested (without saving) on my Talk page and it looks to be okay. Next, I will introduce on WP Orphanage talk page before deployment. Cheers! JoeNMLC (talk) 14:26, 1 February 2024 (UTC)Reply[reply]

Template for excessive details edit

FTSE Small companies edit

{{FTSE Small companies}}

As per request above, would be similar to

{{AEX companies}}

But with companies in the FTSE SmallCap Index.

Like this (talk) 16:19, 2 February 2024 (UTC)Reply[reply]

Hmm, I feel like it would be good to have some better way of specifying that this is only the companies in the index with Wikipedia articles - otherwise "none" makes it sound like the index has no companies in that category. LittlePuppers (talk) 22:35, 2 February 2024 (UTC)Reply[reply]
I think redlinks can be used to include potentially notable companies in those fields. — Frostly (talk) 03:55, 4 February 2024 (UTC)Reply[reply]
Probably, and that's what was done a few sections up (S&P 400). That said, the one above has articles for just under 90% of the companies, while this looks like it would be closer to 30%. LittlePuppers (talk) 04:27, 4 February 2024 (UTC)Reply[reply]
Firstly, I'm not sure there are any companies in the index that represent the telecoms sector - the section was included in case some are added in the future, but maybe it's best simply to remove it.
Secondly, I guess if this was actually a page with a list of the companies, we should think about including them all (better for them not to be linked). However, as this is a navbox, I don't see that it makes much sense to include companies or links if the pages don't exist. Further, there is no claim that navboxes are complete - however we are likely to find that once it is created, people start adding the remaining links, and even creating articles to fill in the gaps. — Preceding unsigned comment added by (talk) 20:44, 4 February 2024 (UTC)Reply[reply]
Come to think of it, the FTSE Fledgling Index doesn't have any telecoms companies either... — Preceding unsigned comment added by (talk) 17:46, 5 February 2024 (UTC)Reply[reply]
Also, I wouldn't sorry about it being "30%". Once it's created it can easily be added to. — Preceding unsigned comment added by (talk) 22:34, 13 February 2024 (UTC)Reply[reply]
Please note updated source above to include more companies.

Templates trying to load Non existent portals edit

Please see Category:Portal templates with redlinked portals. There are large number of these resulting from YYYY type templates which are trying to load Portals which have been deleted - typically decades and countries I believe. I think an ifexists instruction within the template will resolve these. Template editing is beyond me so can anyone assist? Lyndaship (talk) 14:17, 17 February 2024 (UTC)Reply[reply]

Thanks to User:Jonesey95 it's all resolved Lyndaship (talk) 16:39, 17 February 2024 (UTC)Reply[reply]

Requested template redirects edit

2603:8001:4542:28FB:D83C:41C6:8B71:EABA (talk) 18:38, 1 March 2024 (UTC) (Send talk messages here)Reply[reply]