Difference between revisions of "Template talk:Images"
Cook879bot (talk | contribs) m (Created page with "{{Talkheader}}") |
Solar Dragon (talk | contribs) (→PAGENAME limitation) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{Talkheader}} | {{Talkheader}} | ||
| + | |||
| + | == PAGENAME limitation == | ||
| + | |||
| + | Sadly, page titles containing certain characters, such as apostrophes or asterisks, do not parse correctly. For example, the template <code><nowiki>{{Images}}</nowiki></code> in: | ||
| + | *[[Homer's Crossing#Reference]] | ||
| + | *[[Bart's Birthday#References]] | ||
| + | *Many others. | ||
| + | |||
| + | Will show 0 images. Use the workaround <code><nowiki>{{#titleparts:{{PAGENAME}}}}</nowiki></code> to get the proper parsing. Example: | ||
| + | |||
| + | <code><nowiki>{{PAGESINCATEGORY:Images - {{#titleparts:{{PAGENAME}}}}}}</nowiki></code> | ||
| + | |||
| + | Instead of: | ||
| + | |||
| + | <code><nowiki>{{PAGESINCATEGORY:Images - {{PAGENAME}}}}</nowiki></code> | ||
| + | |||
| + | Apparently, it also works for more "extreme" cases, such as ''[[Moe + Beer = Girls?]]''. --'''[[User:Simpsons88|Simpsons88]]''' ([[User Talk:Simpsons88|Talk ☎️]]) 14:53, May 9, 2026 (EDT) | ||
| + | :Thanks, I got it working now! <span style="font-family:Algerian">[[User:Solar Dragon|<span style="color:green">The</span>]] [[User talk:Solar Dragon|<span style="color:red">Solar</span>]] [[Special:Contributions/Solar Dragon|<span style="color:blue">Dragon</span>]]</span> 16:39, May 9, 2026 (EDT) | ||
Latest revision as of 16:39, May 9, 2026
| This is a talk page, where you can leave messages and comments about the Images template. | |||
|---|---|---|---|
|
PAGENAME limitation[edit]
Sadly, page titles containing certain characters, such as apostrophes or asterisks, do not parse correctly. For example, the template {{Images}} in:
- Homer's Crossing#Reference
- Bart's Birthday#References
- Many others.
Will show 0 images. Use the workaround {{#titleparts:{{PAGENAME}}}} to get the proper parsing. Example:
{{PAGESINCATEGORY:Images - {{#titleparts:{{PAGENAME}}}}}}
Instead of:
{{PAGESINCATEGORY:Images - {{PAGENAME}}}}
Apparently, it also works for more "extreme" cases, such as Moe + Beer = Girls?. --Simpsons88 (Talk ☎️) 14:53, May 9, 2026 (EDT)