Difference between revisions of "Template:Sandbox"

From WikiCorporates
Jump to navigation Jump to search
(Created page with "asdf")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
asdf
+
<div class="{{#ifeq: {{{4|{{{align|right}}}}}} | right | floatright | {{#ifeq: {{{4|{{{align|left}}}}}} | left | floatleft | center}} }}">
 +
<div class="thumbinner" style="background:none; border:none; max-width:{{{3|{{{width|250px}}}}}}px;">
 +
{{#ifeq: {{{5|{{{caption position|bottom}}}}}} | top | {{#if: {{{9|{{{caption override|}}}}}} | <div class="thumbcaption">{{{9|{{{caption override|}}}}}}</div> | <div class="thumbcaption">{{#ifeq: {{{6|{{{triangle|none}}}}}} | triangle | <div style="float: left; margin-top: 0.25em; width: 11px; height: 9.5px;"><div style="position: relative; float: left; width: 0px; height: 0px; -webkit-transform: rotate(360deg); border-style: solid inset; border-width: 9.5px 5.5px 0 5.5px; border-color: {{{7|{{{triangle color|#ff0080}}}}}} transparent transparent transparent;"></div></div> | }}<div style="{{#ifeq: {{{6|{{{triangle|none}}}}}} | triangle | padding-left: 24px;}}">{{{2|{{{caption<noinclude>|Caption goes here.</noinclude>}}}}}}</div> }} </div>}}<!--
 +
-->{{#if: {{{8|{{{image override|}}}}}} | {{{8|{{{image override|}}}}}} | [[File:{{{1|{{{image<noinclude>|Example.svg</noinclude>}}}}}}|none|{{{3|{{{width|250px}}}}}}px|{{{2|{{{caption<noinclude>|Caption goes here.</noinclude>}}}}}}]] }}<!--
 +
-->{{#ifeq: {{{5|{{{caption position|bottom}}}}}} | bottom | {{#if: {{{9|{{{caption override|}}}}}} | <div class="thumbcaption">{{{9|{{{caption override|}}}}}}</div> | <div class="thumbcaption">{{#ifeq: {{{6|{{{triangle|none}}}}}} | triangle | <div style="float: left; margin-top: 0.25em; width: 11px; height: 9.5px;"><div style="position: relative; width: 0px; height: 0px; border-style: solid inset; border-width: 0 5.5px 9.5px 5.5px; border-color: transparent transparent {{{7|{{{triangle color|#ff0080}}}}}} transparent;"></div></div> | }}<div style="{{#ifeq: {{{6|{{{triangle|none}}}}}} | triangle | padding-left:24px;}} ">{{{2|{{{caption<noinclude>|Caption goes here.</noinclude>}}}}}}</div> }} </div> }}
 +
</div>
 +
</div><noinclude>{{doc2}}</noinclude>

Latest revision as of 17:25, 26 May 2018

Caption goes here.
Caption goes here.

[edit] Documentation

Template Template for testing out new templates.

I want to combine the best of this template: https://www.mediawiki.org/wiki/Template:Image
with this one: https://en.wikipedia.org/wiki/Template:Plain_image_with_caption

Things to note:

  • class=thumbinner: font-size:94%; text-align:center;
  • class=thumbcaption: text-align:left; border:none; line-height:1.4em; padding:3px; font-size:94%;

Goals:

  • It would be nice if it could deal with both uploaded images as well as ones in the filesystem.
  • I want to be able to use the image as a link.

Current format

This is a picture of the James Webb Space Telescope.
This is a picture of the James Webb Space Telescope.

{{Sandbox|James Webb Space Telescope Mirror37.jpg|This is a picture of the [[James Webb Space Telescope]].|200|right|top|triangle|#9f1f34}}


Pref. format:

{{Sandbox|OpenCorporates.svg|80|13|caption=Data courtesy of|link=OpenCorporates|align=right|link=OpenCorporates}}


Standard Mediawiki "File:..." output:

Data courtesy of

WIP Example

{{Sandbox|OpenCorporates.svg|Data thanks to:|100|right|top}}

Gives:

Data thanks to:
Data thanks to: