User:LionsPhil/FanartTest: Difference between revisions
From questden
Jump to navigationJump to search
(Lumpy gallery is lumpy but at least working) |
(Writing down the required redirects) |
||
Line 1: | Line 1: | ||
= 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: | |||
:<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'''/thread-for/'''post'''</code> → <code>…kusaba/'''board'''/res/'''thread'''.html</code> (Templates can trivially tack on <code>#'''post'''</code> as needed.) | |||
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>…kusaba/'''board'''/thumb-for/'''post'''.png</code> → <code>…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>. | |||
= Pictures = | |||
{{fanart|thread=328203|post=332408|file=128361959465s.png}} | {{fanart|thread=328203|post=332408|file=128361959465s.png}} | ||
{{fanart|thread=328203|post=333321|file=128528858558s.png}} | {{fanart|thread=328203|post=333321|file=128528858558s.png}} |
Revision as of 12:55, 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
(Templates can trivially tack on#post
as needed.)
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 |