Template talk:CSS image crop

6 days ago 110

Fix Linter errors.

← Previous revision Revision as of 14:40, 10 July 2025
Line 109: Line 109:


::: Well, if it is actually restricted to just the master templates then perhaps it wouldn't been overly difficult. However after the magnify-link fiasco, I'd be wary of making assumptions about how limited in scope certain implementations may be. Don't get me wrong, it's not a bad idea. But in the end, we don't know how many pages combine CSS image crop with another template. There may even be cases where <u>something other than Annotated image</u> is used on single articles. Because of the nature of the CSS in this template, I imagine it doesn't matter if it's not fed an image; we could use {{t|chart}} and it should work as long as we'crop it in a way that the extra <code>[[File:..]]</code> tags are hidden beyond the crop. Perhaps the more flexible thing would be just to rename this CSS crop and provide a parameter like <code>not_an_image = true</code> to suppress the File tags. heck, I'll test it out....
::: Well, if it is actually restricted to just the master templates then perhaps it wouldn't been overly difficult. However after the magnify-link fiasco, I'd be wary of making assumptions about how limited in scope certain implementations may be. Don't get me wrong, it's not a bad idea. But in the end, we don't know how many pages combine CSS image crop with another template. There may even be cases where <u>something other than Annotated image</u> is used on single articles. Because of the nature of the CSS in this template, I imagine it doesn't matter if it's not fed an image; we could use {{t|chart}} and it should work as long as we'crop it in a way that the extra <code>[[File:..]]</code> tags are hidden beyond the crop. Perhaps the more flexible thing would be just to rename this CSS crop and provide a parameter like <code>not_an_image = true</code> to suppress the File tags. heck, I'll test it out....
{{CSS image crop|Image =
{{CSS image crop|Image = {{tree chart/start}}{{tree chart| | | |GrMa |~|y|~| GRP | |GrMa=Grandma|GRP=Grandpa}}{{tree chart| | | | | | | |)|-|-|-|.| }}{{tree chart| | | MOM |y| DAD | |DAISY|MOM=Mom|DAD=Dad|DAISY=[[Aunt Daisy]]}}{{tree chart| |,|-|-|-|+|-|-|-|.| | | }}{{tree chart| JOE | | ME | | SIS | | |JOE=My brother Joe|ME='''Me!'''|SIS=My little sister}}{{tree chart/end}}|oTop = 50|oLeft = 0|cWidth = 150|cHeight=150}} Yep {{t|chart}} works as I expected XD Imagine the possibilities this opens!!! —[[User:Codehydro|<span style="color: #aaaaaa; font-family: Unicode; font-size:12pt;">'''Code'''</span>]][[User talk:Codehydro|<span style="color:#5577aa;">'''Hydro'''</span>]] 13:53, 18 December 2014 (UTC)
{{tree chart/start}}
{{tree chart| | | |GrMa |~|y|~| GRP | |GrMa=Grandma|GRP=Grandpa}}
{{tree chart| | | | | | | |)|-|-|-|.| }}
{{tree chart| | | MOM |y| DAD | |DAISY|MOM=Mom|DAD=Dad|DAISY=[[Aunt Daisy]]}}{{tree chart| |,|-|-|-|+|-|-|-|.| | | }}
{{tree chart| JOE | | ME | | SIS | | |JOE=My brother Joe|ME='''Me!'''|SIS=My little sister}}
{{tree chart/end}}
|oTop = 50|oLeft = 0|cWidth = 150|cHeight=150}} Yep {{t|chart}} works as I expected XD Imagine the possibilities this opens!!! —[[User:Codehydro|<span style="color: #aaaaaa; font-family: Unicode; font-size:12pt;">'''Code'''</span>]][[User talk:Codehydro|<span style="color:#5577aa;">'''Hydro'''</span>]] 13:53, 18 December 2014 (UTC)
* Just wanted to see if I can cut {{reply-to|Edokter}} in half to show how most information in letters in conveyed by the top half of Latin letters:
* Just wanted to see if I can cut {{reply-to|Edokter}} in half to show how most information in letters in conveyed by the top half of Latin letters:
{{CSS image crop | Image = blank.png{{))!}} Edokter {{!((}}File:blank.png | oTop = 0.8em;| cWidth = 6em; | cHeight = 0.5em;}} {{CSS image crop | Image = blank.png{{Template:))!}} Edokter {{!((}}File:blank.png| oTop = 0.3em; | cWidth = 6em; | cHeight = 0.5em; }}
{{CSS image crop | Image = blank.png{{))!}} Edokter {{!((}}File:blank.png | oTop = 0.8em;| cWidth = 6em; | cHeight = 0.5em;}} {{CSS image crop | Image = blank.png{{Template:))!}} Edokter {{!((}}File:blank.png| oTop = 0.3em; | cWidth = 6em; | cHeight = 0.5em; }}
Open Full Post