Difference between revisions of "Template:Blog post"

From Zero-K
Jump to navigation Jump to search
(The File thing is there so that Mediawiki can tell the image is actually being used. It's now supposed to be hidden pretty well unless someone decides to turn off styles.)
(Another shadow for better visibility.)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<div style="position:relative;overflow:hidden;padding-top:24vw">
 
<div style="position:relative;overflow:hidden;padding-top:24vw">
 
<div style="position:absolute;right:0;top:0;z-index:-1;width:100%;height:100%;overflow:hidden"><img alt="" src="{{filepath:{{#titleparts:{{PAGENAME}}|1|-1}}.jpg}}" style="height:auto;width:auto;max-height:100%;max-width:100%;border:thin solid transparent;border-radius:1em"></div>
 
<div style="position:absolute;right:0;top:0;z-index:-1;width:100%;height:100%;overflow:hidden"><img alt="" src="{{filepath:{{#titleparts:{{PAGENAME}}|1|-1}}.jpg}}" style="height:auto;width:auto;max-height:100%;max-width:100%;border:thin solid transparent;border-radius:1em"></div>
}}
+
}}<div style="text-shadow:1px 1px 5px #666,1px 1px 1px #333,-1px -1px 1px #993">
 
={{#if:{{{1|}}}|{{{1}}}|{{padright:|{{#expr:{{#invoke:String|len|{{#titleparts:{{PAGENAME}}|1|-2}}}} - 1}}|{{#titleparts:{{PAGENAME}}|1|-2}} }} #{{#titleparts:{{PAGENAME}}|1|-1}} }}=
 
={{#if:{{{1|}}}|{{{1}}}|{{padright:|{{#expr:{{#invoke:String|len|{{#titleparts:{{PAGENAME}}|1|-2}}}} - 1}}|{{#titleparts:{{PAGENAME}}|1|-2}} }} #{{#titleparts:{{PAGENAME}}|1|-1}} }}=
 
{{DISPLAYTITLE:<span style="position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px)">{{FULLPAGENAME}}</span>}}
 
{{DISPLAYTITLE:<span style="position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px)">{{FULLPAGENAME}}</span>}}
Line 10: Line 10:
 
}}
 
}}
 
{{#ifexist:File:{{#titleparts:{{PAGENAME}}|1|-1}}.jpg|
 
{{#ifexist:File:{{#titleparts:{{PAGENAME}}|1|-1}}.jpg|
<div style="visibility:hidden;padding:0;margin:0;border:0;position:absolute;top:0;left:0;z-index:-2">[[File:{{#titleparts:{{PAGENAME}}|1|-1}}.jpg|1px|alt=|link=]]</div></div>
+
<div style="visibility:hidden;padding:0;margin:0;border:0;position:absolute;top:0;left:0;z-index:-2">[[File:{{#invoke:String|replace|{{#titleparts:{{PAGENAME}}|1|-1}}|%2C|,}}.jpg|1px|alt=|link=]]</div></div>
}}
+
}}</div>
  
  

Latest revision as of 11:26, 13 September 2024

Blog pos #Blog post