Template:Page-image-name-processing/doc

From Ring of Brodgar
Jump to navigation Jump to search
Intended feature
- Hafen/Legacy page infobox-image helper and usage tracker.
- intended as helper-tool in hafen v legacy infobox-image separation.
- intended to only be used in proper infobox templates. (ones per template)
Disabled/Removed features
- Look for alternative Default & "Hafen-" image-cases for Legacy namespace.
- Look for alternative "Legacy-" image-case for Main/Hafen namespace.
- Look for "Hafen-" image-cases. (Now only looks for default-name case. If not found => Placeholder case)
Current features
- Auto-pick infobox-image to use based on source-page-name and available images. (if infobox image-parm is not set/used)
- Log infobox image usage data. (categories)
- Infobox image max-size clamping. (Can be set at Page-image-name-processing call, so each infobox-type can have its own max-size)
Used by templates
- See WhatLinksHere(Template-ns) (includes Doc pages due to infobox examples on those pages)
Depends on Templates
- Template:Pinp misc - Page-image-name-processing _ Max-Image-Size-Clamp.
Generates (Categories)
- "Page-img Hafen/Legacy *"
- General parent Category: Page-image-name-processing
Template call usage
- {{ Page-image-name-processing | <option(s)> }}
- | image=<file:filename.ext> -- Passed-on from source-page infobox
- | imagewidth=<size(int)> -- Passed-on from source-page infobox.
- | maxsize=<size(int)> -- Set in Infobox template. (General per infobox type setting)
- | imgName_lead=<size(int)> -- Set in Infobox template. (General per infobox type setting)
- | imgName_trail=<size(int)> -- Set in Infobox template. (General per infobox type setting)
Notes
- Target image-names that fail the ifexist test, show the source page in the related "what links here" image-page.
-- Only happens at "what links here" page, not at the image/file-page itself. (ok)
-- ifexist failed image-names also don't show at the "wanted files" page. (ok)(there registered as normal-link and not as file-usage-link)
--- ...