User:LionsPhil/FanartTest: Difference between revisions

From questden
Jump to navigationJump to search
m (More semantic pedantry)
m (Remove obsolete template arguments for shiny new approach, which is currently not working because MediaWiki is dicks.)
Line 9: Line 9:


= Pictures =
= Pictures =
{{fanart|thread=328203|post=332408|file=128361959465s.png}}
{{fanart|post=332408}}
{{fanart|thread=328203|post=333321|file=128528858558s.png}}
{{fanart|post=333321}}
{{fanart|thread=336257|post=339590|file=12956035692s.jpg}}
{{fanart|post=339590}}
{{fanart|thread=336257|post=340936|file=129741056532s.png|caption=Mitzi x Tiak; Theme: Shinigami}}
{{fanart|post=340936|caption=Mitzi x Tiak; Theme: Shinigami}}
{{fanart|board=TEMP|thread=1|post=1384|file=129489338016s.gif|caption=Testing odd boards}}
{{fanart|board=TEMP|post=1384|caption=Testing odd boards}}
 
{{-}}
== Debug ==
Direct thumbnail:
http://tgchan.org/kusaba/questdis/thumb/128361959465s.png
 
Via redirect:
http://tgchan.org/kusaba/thumb-for/questdis/332408.png

Revision as of 16:53, 6 September 2011

Words

What the template really needs to be pleasant to use is a chunk of semantically-organised URI space which spits out HTTP 303 redirects 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#post

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


Debug

Direct thumbnail: 128361959465s.png

Via redirect: 332408.png