Difference between revisions of "User:LionsPhil/FanartTest"

From questden
(Lumpy gallery is lumpy but at least working)
(Writing down the required redirects)
Line 1: Line 1:
 +
= Words =
 +
What the template really needs to be pleasant to use is a chunk of semantically-organised URI space which spits out 301s or 303s to the implementation details:
 +
:<code>&hellip;kusaba/'''board'''/thumb-for/'''post'''</code> &rarr; <code>&hellip;kusaba/'''board'''/thumb/'''thumbnail-filename'''</code>
 +
:<code>&hellip;kusaba/'''board'''/image-for/'''post'''</code> &rarr; <code>&hellip;kusaba/'''board'''/src/'''fullsize-image-filename'''</code>
 +
:<code>&hellip;kusaba/'''board'''/thread-for/'''post'''</code> &rarr; <code>&hellip;kusaba/'''board'''/res/'''thread'''.html</code> (Templates can trivially tack on <code>#'''post'''</code> as needed.)
 +
And because MediaWiki is kind of dumb, a hack that lets it pretend everything is a PNG and lets the browser sort out the details with <code>Content-Type</code>:
 +
:<code>&hellip;kusaba/'''board'''/thumb-for/'''post'''.png</code> &rarr; <code>&hellip;kusaba/'''board'''/thumb-for/'''post'''</code>
 +
With these, it should be possible to write the template to accept as little as <code><nowiki>{{fanart|post=12345}}</nowiki></code>.
 +
 +
= Pictures =
 
{{fanart|thread=328203|post=332408|file=128361959465s.png}}
 
{{fanart|thread=328203|post=332408|file=128361959465s.png}}
 
{{fanart|thread=328203|post=333321|file=128528858558s.png}}
 
{{fanart|thread=328203|post=333321|file=128528858558s.png}}

Revision as of 13:55, 5 June 2011

Words

What the template really needs to be pleasant to use is a chunk of semantically-organised URI space which spits out 301s or 303s to the implementation details:

…kusaba/board/thumb-for/post…kusaba/board/thumb/thumbnail-filename
…kusaba/board/image-for/post…kusaba/board/src/fullsize-image-filename
…kusaba/board/thread-for/post…kusaba/board/res/thread.html (Templates can trivially tack on #post as needed.)

And because MediaWiki is kind of dumb, a hack that lets it pretend everything is a PNG and lets the browser sort out the details with Content-Type:

…kusaba/board/thumb-for/post.png…kusaba/board/thumb-for/post

With these, it should be possible to write the template to accept as little as {{fanart|post=12345}}.

Pictures

http://tgchan.org/kusaba/thumb-for/questdis/{{{1}}}.png
LinkToBoard.gif
http://tgchan.org/kusaba/thumb-for/questdis/{{{1}}}.png
LinkToBoard.gif
http://tgchan.org/kusaba/thumb-for/questdis/{{{1}}}.png
LinkToBoard.gif
http://tgchan.org/kusaba/thumb-for/questdis/{{{1}}}.png
Mitzi x Tiak; Theme: ShinigamiLinkToBoard.gif
http://tgchan.org/kusaba/thumb-for/TEMP/{{{1}}}.png
Testing odd boardsLinkToBoard.gif