User:LionsPhil/FanartTest: Difference between revisions

From questden
Jump to navigationJump to search
(Writing down the required redirects)
m (Semantic pedantry)
Line 3: Line 3:
:<code>&hellip;kusaba/'''board'''/thumb-for/'''post'''</code> &rarr; <code>&hellip;kusaba/'''board'''/thumb/'''thumbnail-filename'''</code>
:<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'''/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.)
:<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>:
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>
:<code>&hellip;kusaba/'''board'''/thumb-for/'''post'''.png</code> &rarr; <code>&hellip;kusaba/'''board'''/thumb-for/'''post'''</code>

Revision as of 13:12, 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#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