User:LionsPhil/FanartTest: Difference between revisions

From questden
Jump to navigationJump to search
m (Documenting that it's backwards.)
m (→‎Pictures: More test cases)
Line 17: Line 17:
{{fanart|post=340936|caption=Mitzi x Tiak; Theme: Shinigami}}
{{fanart|post=340936|caption=Mitzi x Tiak; Theme: Shinigami}}
{{fanart|board=moo|post=1384|caption=Testing odd boards}}
{{fanart|board=moo|post=1384|caption=Testing odd boards}}
{{fanart|post=334157}}<!-- Tall image-->
{{fanart|post=332408}}
{{fanart|post=332408}}
{{fanart|post=333321}}
{{fanart|post=333321}}
{{fanart|post=339590}}
{{fanart|post=339590}}
{{fanart|post=340936|caption=Mitzi x Tiak; Theme: Shinigami}}
{{fanart|post=340936|caption=Mitzi x Tiak; Theme: Shinigami and lots of words all of the words man it's like a chapter of Golem Quest in here ha ha see it's funny because that quest has an awful lot of words just like this caption}}
{{fanart|board=moo|post=1384|caption=Testing odd boards}}
{{fanart|board=moo|post=1384|caption=Testing odd boards}}

Revision as of 17:30, 6 September 2011

Words

History

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}}.

Reality

And now it is! The redirects are named foo-for/board.

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/moo/{{{1}}}.png
Testing odd boardsLinkToBoard.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
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: Shinigami and lots of words all of the words man it's like a chapter of Golem Quest in here ha ha see it's funny because that quest has an awful lot of words just like this captionLinkToBoard.gif
http://tgchan.org/kusaba/thumb-for/moo/{{{1}}}.png
Testing odd boardsLinkToBoard.gif