Template:Fanart: Difference between revisions
From questden
Jump to navigationJump to search
m (Colspan is helpful) |
(Setting fixed width to see if it improves handling of tall images and long captions) |
||
Line 4: | Line 4: | ||
'''Work in progress.''' | '''Work in progress.''' | ||
</noinclude><includeonly><table style="float: left; border: 1px solid grey; text-align: center;"><!-- | </noinclude><includeonly><table style="float: left; border: 1px solid grey; text-align: center; width: 256px;"><!-- | ||
The upper row of the table is the image. | The upper row of the table is the image. The maximum thumbnail size will be 250px, so + 2x2px padding + 2x1px border for table. | ||
--><tr><td style="padding: 2px;" colspan="2"><span class="plainlinks">[http://tgchan.org/kusaba/image-for/{{{board|questdis}}}/{{{post}}} http://tgchan.org/kusaba/thumb-for/{{{board|questdis}}}/{{{post}}}.png]</span></td></tr><!-- | --><tr><td style="padding: 2px;" colspan="2"><span class="plainlinks">[http://tgchan.org/kusaba/image-for/{{{board|questdis}}}/{{{post}}} http://tgchan.org/kusaba/thumb-for/{{{board|questdis}}}/{{{post}}}.png]</span></td></tr><!-- | ||
The second row contains a caption cell (may be empty) and the link to the post | The second row contains a caption cell (may be empty) and the link to the post. | ||
--><tr><td>{{{caption|}}}</td><td style="width: 20px">[[File:LinkToBoard.gif|link=http://tgchan.org/kusaba/thread-for/{{{board|questdis}}}/{{{post}}}]]</td></tr><!-- | --><tr><td>{{{caption|}}}</td><td style="width: 20px">[[File:LinkToBoard.gif|link=http://tgchan.org/kusaba/thread-for/{{{board|questdis}}}/{{{post}}}]]</td></tr><!-- | ||
--></table></includeonly><!-- Don't leave a trailing newline after this! Very whitespace-sensitive. --> | --></table></includeonly><!-- Don't leave a trailing newline after this! Very whitespace-sensitive. --> |
Revision as of 18:35, 6 September 2011
This inlines posts from fanart threads (technically, any thread, but that's not what it's for) with links to the post. It doesn't play nice with galleries because Mediawiki syntax doesn't allow for it.
Work in progress.