User:LionsPhil/FanartTest: Difference between revisions
From questden
Jump to navigationJump to search
m (Semantic pedantry) |
m (More semantic pedantry) |
||
Line 1: | Line 1: | ||
= Words = | = Words = | ||
What the template really needs to be pleasant to use is a chunk of semantically-organised URI space which spits out | 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: | ||
:<code>…kusaba/'''board'''/thumb-for/'''post'''</code> → <code>…kusaba/'''board'''/thumb/'''thumbnail-filename'''</code> | :<code>…kusaba/'''board'''/thumb-for/'''post'''</code> → <code>…kusaba/'''board'''/thumb/'''thumbnail-filename'''</code> | ||
:<code>…kusaba/'''board'''/image-for/'''post'''</code> → <code>…kusaba/'''board'''/src/'''fullsize-image-filename'''</code> | :<code>…kusaba/'''board'''/image-for/'''post'''</code> → <code>…kusaba/'''board'''/src/'''fullsize-image-filename'''</code> |
Revision as of 13:16, 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 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 | |
http://tgchan.org/kusaba/thumb-for/questdis/{{{1}}}.png | |
http://tgchan.org/kusaba/thumb-for/questdis/{{{1}}}.png | |
http://tgchan.org/kusaba/thumb-for/questdis/{{{1}}}.png | |
Mitzi x Tiak; Theme: Shinigami |
http://tgchan.org/kusaba/thumb-for/TEMP/{{{1}}}.png | |
Testing odd boards |