Difference between revisions of "User talk:MvGulik"
m (→Infobox auto image linking: code adjust) |
m (→Infobox auto image linking: oops) |
||
Line 24: | Line 24: | ||
# ships pages: | # ships pages: | ||
## remove "image" parm. | ## remove "image" parm. | ||
− | ## add "img_silhouette" and "img_shot" parm. | + | ## <strike>add "img_silhouette" and "img_shot" parm.</strike> o.O |
## + ditch ships category. | ## + ditch ships category. | ||
## + other general stuff. | ## + other general stuff. |
Revision as of 23:51, 4 January 2014
Infobox auto image linking
(Template:Infobox Ship) Using something like this:
|- | colspan="2" style="background-color: #FFFFFF; text-align: center; " | '''{{{img_silhouette|[[Image:{{PAGENAME}}_silhouette.png|center|300px|caption]]}}}''' '''{{{img_shot|[[Image:{{PAGENAME}}_shot.png|center|300px|caption]]}}}''' |-
Instead of this:
|- | colspan="2" style="background-color: #FFFFFF; text-align: center; " | '''{{{image}}}''' |-
Would auto link to target image(s) based on pagename (losing the need to specify image links in the Infobox on the object pages). And normalize the used image naming. (same for Corp, "img_logo") ... nts: needs to include/support the "|center|300px" part) --MvGulik 19:02, 1 January 2014 (PST)
Sanity check:
- ships images:
- rename shot images. (<PN>_shot.*)(auto-added redirects prevent image link breaks)
- rename silhouette images. (<PN>_silhouette.*)(auto-added redirects prevent image link breaks)
- ships template 1/2:
- adjust "image" parm to show nothing if not set.
- add "img_silhouette" and "img_shot" parm. (will add additional image-links(text or image))
- + add ships category.
- ships pages:
- remove "image" parm.
add "img_silhouette" and "img_shot" parm.o.O- + ditch ships category.
- + other general stuff.
- ships template 2/2: remove "image" parm.
- ships images: delete(tag) unused ship-image redirects.
Will probably start with this Monday. --MvGulik 15:46, 4 January 2014 (PST)
I will change the pictures part for part to that naming convention when I have time. Some pictures don't follow that scheme yet. Jmf (talk) 08:12, 2 January 2014 (PST)
- Roger. I think I can do that to, as the normal-user rights seems to allow for file movement(rename). But I have not actually tested that yet. (I planned to update the image names directly after implementing the suggested change in the related templates.) --MvGulik 12:02, 2 January 2014 (PST)
PS: if a bunch of unneeded temporary redirects (to be deleted later) is not a problem, I don't mind doing all the needed changes. If there are no objections to the current suggested name changes of course. --MvGulik 15:52, 2 January 2014 (PST)