Template:Fanart/Doc: Difference between revisions
From questden
Jump to navigationJump to search
m (Switchover to Template:Doc) |
m (→Example: Better support for narrow browser windows) |
||
Line 15: | Line 15: | ||
<tr><th style="width: 50%">Markup</th><th style="width: 50%">Result</th></tr> | <tr><th style="width: 50%">Markup</th><th style="width: 50%">Result</th></tr> | ||
<tr> | <tr> | ||
<td><pre><nowiki>= Fanart = | <td><pre style="white-space: pre-wrap;"><nowiki>= Fanart = | ||
{{fanart|857|caption=Why [[Lohrke]]s are known for their hips.}} | {{fanart|857|caption=Why [[Lohrke]]s are known for their hips.}} | ||
{{fanart|798}} | {{fanart|798}} | ||
{{fanart|515|caption=Deme encounters [[Deep|Ven]]}}</nowiki></pre></td> | {{fanart|515|caption=Deme encounters [[Deep|Ven]]}}</nowiki></pre></td> | ||
<td> | <td> | ||
= Fanart = | = Fanart = | ||
{{fanart|857|caption=Why [[Lohrke]]s are known for their hips.}} | {{fanart|857|caption=Why [[Lohrke]]s are known for their hips.}} |
Revision as of 06:19, 10 September 2011
This is a template documentation page. It is transcluded into place. |
This template inlines posts from fanart threads nicely with links to the post. In short, just pass the post number:
{{fanart|857}}
Which gives:
In practice you probably want to put a whole bunch of these under a = Fanart =
heading toward the bottom of the quest's page.
Advanced usage
- board
- Specify the board on which to find the post, e.g.
|board=quest
. The default is questdis. - caption
- Put a caption below the image. Captions can contain limited markup, but shouldn't be too long.
Example
Markup | Result | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
= Fanart = {{fanart|857|caption=Why [[Lohrke]]s are known for their hips.}} {{fanart|798}} {{fanart|515|caption=Deme encounters [[Deep|Ven]]}} |
Fanart
|
Maintenance notes
- It depends on the set of redirects that let you look up kusaba resources by post number:
…kusaba/thumb-for/board/post
→…kusaba/board/thumb/thumbnail-filename
…kusaba/image-for/board/post
→…kusaba/board/src/fullsize-image-filename
…kusaba/thread-for/board/post
→…kusaba/board/res/thread.html#post
- And because MediaWiki is kind of dumb, a hack that lets it ignore a
.png
extension on these and let the browser sort out the details withContent-Type
.
- It makes assumptions about the maximum size of thumbnail images, namely that they'll never exceed 250px width.
- It doesn't play nice with galleries because Mediawiki syntax doesn't allow for external images in them.