User:LionsPhil/FanartTest: Difference between revisions
From questden
Jump to navigationJump to search
m (→Pictures: TEMP isn't TEMP any more; doubling up fanart to force it to wrap into multiple rows) |
m (Changing invocation syntax (way easier for common case)) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
= Words = | = 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: | 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> | ||
| Line 7: | Line 8: | ||
:<code>…kusaba/'''board'''/thumb-for/'''post'''.png</code> → <code>…kusaba/'''board'''/thumb-for/'''post'''</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>. | 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 = | = Pictures = | ||
{{fanart| | {{fanart|332408}} | ||
{{fanart| | {{fanart|333321}} | ||
{{fanart| | {{fanart|339590}} | ||
{{fanart| | {{fanart|340936|caption=Mitzi x Tiak; Theme: Shinigami}} | ||
{{fanart|board=moo | {{fanart|1384|board=moo|caption=Testing odd boards}} | ||
{{fanart| | {{fanart|334157}}<!-- Tall image--> | ||
{{fanart| | {{fanart|332408}} | ||
{{fanart| | {{fanart|333321}} | ||
{{fanart| | {{fanart|339590}} | ||
{{fanart|board=moo | {{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 18: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
| Mitzi x Tiak; Theme: Shinigami | |
| Testing odd boards | |
| Testing odd boards | |