User:LionsPhil/FanartTest: Difference between revisions

From questden
Jump to navigationJump to search
(Lumpy gallery is lumpy but at least working)
m (Changing invocation syntax (way easier for common case))
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{fanart|thread=328203|post=332408|file=128361959465s.png}}
= Words =
{{fanart|thread=328203|post=333321|file=128528858558s.png}}
== History ==
{{fanart|thread=336257|post=339590|file=12956035692s.jpg}}
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:
{{fanart|thread=336257|post=340936|file=129741056532s.png|caption=Mitzi x Tiak; Theme: Shinigami}}
:<code>&hellip;kusaba/'''board'''/thumb-for/'''post'''</code> &rarr; <code>&hellip;kusaba/'''board'''/thumb/'''thumbnail-filename'''</code>
{{fanart|board=TEMP|thread=1|post=1384|file=129489338016s.gif|caption=Testing odd boards}}
:<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#'''post'''</code>
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>.
== Reality ==
And now it is! The redirects are named <code>foo-for/board</code>.
 
= Pictures =
{{fanart|332408}}
{{fanart|333321}}
{{fanart|339590}}
{{fanart|340936|caption=Mitzi x Tiak; Theme: Shinigami}}
{{fanart|1384|board=moo|caption=Testing odd boards}}
{{fanart|334157}}<!-- Tall image-->
{{fanart|332408}}
{{fanart|333321}}
{{fanart|339590}}
{{fanart|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|1384|board=moo|caption=Testing odd boards}}

Latest revision as of 19:10, 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

332408.png
LinkToBoard.gif
333321.png
LinkToBoard.gif
339590.png
LinkToBoard.gif
340936.png
Mitzi x Tiak; Theme: ShinigamiLinkToBoard.gif
1384.png
Testing odd boardsLinkToBoard.gif
334157.png
LinkToBoard.gif
332408.png
LinkToBoard.gif
333321.png
LinkToBoard.gif
339590.png
LinkToBoard.gif
340936.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
1384.png
Testing odd boardsLinkToBoard.gif