Template talk:Infobox event

Latest comment: 1 month ago by Auric in topic Module parameter

target parameter edit

What is it supposed to be for? Valereee (talk) 13:13, 19 November 2023 (UTC)Reply

Add link parameter to infoxbox image? edit

Looking to add Help:Pictures#Links to infobox image. I think this change would do it, but I don't edit templates often and make frequent errors, so please double-check me.

Replace:

| image2     = {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{image|}}}|{{{image}}}|{{{image_name|{{{Image_Name|}}}}}}}}|size={{{image_size|{{{Imagesize|}}}}}}|sizedefault=frameless|upright={{{image_upright|1.1}}}|thumbtime={{{thumbtime|{{{Thumb_Time|}}}}}}|alt={{{alt|{{{image_alt|{{{Image_Alt|}}}}}}}}}}}

With:

| image2     = {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{image|}}}|{{{image}}}|{{{image_name|{{{Image_Name|}}}}}}}}|size={{{image_size|{{{Imagesize|}}}}}}|sizedefault=frameless|upright={{{image_upright|1.1}}}|thumbtime={{{thumbtime|{{{Thumb_Time|}}}}}}|alt={{{alt|{{{image_alt|{{{Image_Alt|}}}}}}}}}}}|link={{{link}}}

Feoffer (talk) 01:55, 29 January 2024 (UTC)Reply

Looks like you've got the close braces in the wrong place. Where do you want the links to point to and why? — Martin (MSGJ · talk) 12:56, 29 January 2024 (UTC)Reply
Except in very narrow circumstances, images should not have a custom link override. If the subject in the image (or the image itself) has an article, link to it in the caption. You want to have the cropped version of the Roswell Daily Record, but still link to the full picture. I personally would restore the picture of the front page, which doesn't require linking to it in the caption, with |image=, or on the Commons file page. SWinxy (talk) 04:21, 30 January 2024 (UTC)Reply
  Not done for now: please establish a consensus for this alteration before using the {{Edit template-protected}} template. Also, the sandbox and the testcases page should be unprotected if you want to test your code. – Jonesey95 (talk) 14:11, 31 January 2024 (UTC)Reply

Module parameter edit

The parameter |module= triggers the error category, but still works.--Auric talk 23:13, 12 March 2024 (UTC)Reply