Difference between revisions of "Template:Sandbox/doc"

From WikiCorporates
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 
[[Template:Sandbox|Template]] Template for testing out new templates.
 
[[Template:Sandbox|Template]] Template for testing out new templates.
 +
 +
I want to combine the best of this template: https://www.mediawiki.org/wiki/Template:Image
 +
and 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.
 +
* Pref. foramt:
 +
<pre>
 +
{{Sandbox|OpenCorporates.svg|80|13|align=right|caption=Data courtesy of|link=OpenCorporates|link=OpenCorporates}}
 +
</pre>
 +
Current format:
 
<pre>
 
<pre>
−
Path is set to http://wikipolitiks.local/Images/
+
{{Sandbox|James Webb Space Telescope Mirror37.jpg|This is a picture of the [[James Webb Space Telescope]].|350|left|top|triangle|#9f1f34}}
 
</pre>
 
</pre>
  
−
=== Example ===
+
 
 +
=== WIP Example ===
 
<pre>
 
<pre>
−
{{Sandbox|James Webb Space Telescope Mirror37.jpg|This is a picture of the [[James Webb Space Telescope]].|350|left|top|triangle|#9f1f34}}
+
{{Sandbox|OpenCorporates.svg|Data thanks to:|100|right|top}}
 
</pre>
 
</pre>
 
Gives:
 
Gives:

Revision as of 18:16, 26 May 2018

Template Template for testing out new templates.

I want to combine the best of this template: https://www.mediawiki.org/wiki/Template:Image and 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.
  • Pref. foramt:
{{Sandbox|OpenCorporates.svg|80|13|align=right|caption=Data courtesy of|link=OpenCorporates|link=OpenCorporates}}

Current format:

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


WIP Example

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

Gives:

Data thanks to:
Data thanks to: