User:Grendelkhan/Scratch

Contents

Can't indent tables

 <div style="background: red;">
 {| border=1
 |-
 |Table!||Stuff!
 |}
 </div>
Table!Stuff!

 <div style="background: red;">
 :{| border=1
 |-
 |Table!||Stuff!
 |}
 </div>
Table!Stuff!

 <div style="background: red;">
 :<table border=1>
 <tr>
 <td>Table!</td><td>Stuff!</td>
 </tr>
 </table>
 </div>
Table!Stuff!

 <div style="background: red;">
 <table border=1>
 <tr>
 <td>Table!</td><td>Stuff!</td>
 </tr>
 </table>
 </div>
Table!Stuff!

thin cylinder

MetaPost script to replace Image:Moment of inertia thin cylinder.png

u=18mm;
textscale=u/12mm;
% this MetaPost script generates a PostScript file, which is then included in a
% TeX document. if you want to generate EPS from this, you'll have to uncomment
% the following line. (and probably do a couple more things, to boot.)
%prologues := 1;
def cylinder =
  begingroup;
  save pmax,dmax,persp,persp_nt,tens,arr;
  save harrtop,harrbot,rarrlft,rarrrt;
  save p,d;
  save axisprotrusion;
  save xax,yax,zax;
  pmax = 3; dmax = 0;
  persp_nt = 0.3;
  tens = 2-persp_nt;
  persp = persp_nt*u;
  arr = 0.3u; % how far to offset the arrows from the diagram
  axisprotrusion = 1u;  % how far do the axes protrude?
  pair harrtop,harrbot,rarrlft,rarrrt; % endpoints for arrows
  path p[],d[]; % original, dotted
  pair xax[],yax[],zax[]; % x,y,z are taken; these are for the axes
  % solid paths
  p0 = (-1u,-1u)--(-1u,1u);
  p1 = (1u,-1u)--(1u,1u);
  p2 = (-1u,1u)..tension tens..(0,1u+persp)..tension tens..(1u,1u)..tension tens..(0,1u-persp)..tension tens..cycle;
  p3 = (-1u,-1u){down}..tension tens..(0,-1u-persp)..tension tens..(1u,-1u){up};
  % dashed paths
  d0 = (-1u,-1u){up}..tension tens..(0,-1u+persp)..tension tens..(1u,-1u){down};
  % endpoints of dimension arrows
  harrtop = (-1u-arr,1u);
  harrbot = (-1u-arr,-1u);
  rarrlft = (0,1u);
  rarrrt = (1u,1u);
  % actually draw
  pickup pencircle scaled 1pt;
  for i=0 upto pmax:
    draw p[i];
  endfor;
  for i=0 upto dmax:
    draw d[i] dashed evenly;
  endfor;
  drawdblarrow (harrtop..harrbot);
  drawdblarrow (rarrlft..rarrrt);
  label.lft(btex $h$ etex scaled textscale,.5[harrtop,harrbot]);
  label.top(btex $r$ etex scaled textscale,.5[rarrlft,rarrrt]);
  % x axis
  xax0 = (0,0);
  xax1 = (1u,0);
  xax2 = (1u+axisprotrusion*0.5,0);
  drawarrow (xax1..xax2);
  draw xax0..xax1 dashed evenly;
  label.rt(btex $x$ etex scaled textscale,xax2);
  % y axis
  yax0 = (0,0);
  yax1 = point 1.5 of p0;
  yax2 = (1.5+axisprotrusion/u)[yax0,yax1];
  drawarrow (yax1..yax2);
  draw yax0..yax1 dashed evenly;
  label.ulft(btex $y$ etex scaled textscale,yax2);
  % z axis
  zax0 = (0,0);
  zax1 = (0,1u-persp);
  zax2 = (0,1u+axisprotrusion);
  drawarrow (zax1..zax2);
  draw zax0..zax1 dashed evenly;
  label.top(btex $z$ etex scaled textscale,zax2);
  endgroup;
enddef;
beginfig(1)
  cylinder;
endfig;
bye

Notes

Note the bit about

yax1 = point 1.5 of p0;
yax2 = (1.5+axisprotrusion/u)[yax0,yax1];

That gets the right point on the circumference curve.

And oh fuggles, I found out how to draw ellipses (http://www.ursoswald.ch/metapost/tutorial/CircleParametrization.html). Dashed fine timing...

Thumbs stretch small images

Wiki wiki wiki, all day long.
Enlarge
Wiki wiki wiki, all day long.

Image:Wiki.png

Dodgy syntax makes bad HTML


http://foo.barImage:Wiki.png


http://foo.bar Image:Wiki.png

External links in captions break images

From Wikipedia (http://wikipedia.org)
Enlarge
From Wikipedia (http://wikipedia.org)


From Wikipedia (http://wikipedia.org)
Enlarge
From Wikipedia (http://wikipedia.org)


From Wikipedia (http://wikipedia.org), the free encyclopedia.
Enlarge
From Wikipedia (http://wikipedia.org), the free encyclopedia.



From http://wikipedia.org, the free encyclopedia.
Enlarge
From http://wikipedia.org, the free encyclopedia.


isfdb

xhtml

Monaco16000 231987
Monaco16000 231987

Styling navboxes.

This is the code for a navbox (Template:Toolband), or will be with the changed outlined in Bugzilla:1707.

{| align=center class="toccolours"
! [[Tool (band)|Tool]]
|-
|align=center|[[Maynard James Keenan]] | [[Adam Jones]] | [[Danny Carey]] | [[Justin Chancellor]] | [[Paul d'Amour]]
|-
![[Tool (band)#Discography|Discography]]
|-
|align=center|''[[Opiate (album)|Opiate]]'' | ''[[Undertow]]'' | ''[[Ænima]]'' | ''[[Salival]]'' | ''[[Lateralus]]''
|-
!Popular Songs
|-
|align=center|"[[Stinkfist]]" | "[[Schism]]" | "[[Sober (song)|Sober]]"
|-
!Related articles
|-
|align=center|''[[Progressive rock]]'' | ''[[A Perfect Circle]]'' | ''[[Peach (band)|Peach]]''
|}

This is how it renders.

Tool
Maynard James Keenan | Adam Jones | Danny Carey | Justin Chancellor | Paul d'Amour
Discography
Opiate | Undertow | Ænima | Salival | Lateralus
Popular Songs
"Stinkfist" | "Schism" | "Sober"
Related articles
Progressive rock | A Perfect Circle | Peach


Now, a user stylesheet could change that around to look like

Tool
Maynard James Keenan | Adam Jones | Danny Carey | Justin Chancellor | Paul d'Amour
Discography
Opiate | Undertow | Ænima | Salival | Lateralus
Popular Songs
"Stinkfist" | "Schism" | "Sober"
Related articles
Progressive rock | A Perfect Circle | Peach


if they, I dunno, really liked limes or something, or thought the small text crammed into the body of the box was a poor idea. Someone with actual CSS skills could probably do something much, much cooler. The idea, really, is to allow navboxes to be written with purely semantic markup, styled after the fact with CSS. (The same might be possible with meta-templates, but CSS is really the place for it.)

Navigation

  • Art and Cultures
    • Art (https://academickids.com/encyclopedia/index.php/Art)
    • Architecture (https://academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (https://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (https://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools