Template:Icon: Difference between revisions

From questden
Jump to navigationJump to search
No edit summary
(Refurbished from Sandbox template finally.)
Line 1: Line 1:
<noinclude>{{Icon/Doc}}</noinclude><includeonly><table style="display: inline-table; background-color: #eee; color: black; text-align: center; width: 100px; margin-top: 2px; margin-bottom: 2px;"><!--
<noinclude>{{Icon/Doc}}</noinclude><includeonly>


The upper row of the table is the image. The maximum thumbnail size will be 200px or 250px depending if it's the OP, plus 2x2px padding. Hence the max value.
<tr>                <!-- New row! -->
 
<td style="vertical-align: top; border-top: 7px solid white; background:#{{{background|eee}}};">
--><tr><td style="padding: 2px;" colspan="2"><span class="plainlinks">[http://tgchan.org/kusaba/image-for/icons/{{{1}}} http://tgchan.org/kusaba/thumb-for/icons/{{{1}}}.png]</span></td></tr><!--
{{simpleicon|{{{icon|1}}}|{{#if:{{{icon2|}}}|{{{icon2|2}}}|}}|{{#if:{{{icon3|}}}|{{{icon3|3}}}|}}|{{#if:{{{icon4|}}}|{{{icon4|4}}}|}}|}}
 
</td>
The second row contains a caption cell (may be empty) and the link to the post.
                      <!-- Second cell, second column -->
 
<td style="min-width: 300px; width: 40%; border: 1px solid white;  vertical-align: top; background:#{{{background|eee}}};">
--><tr><td>{{{caption|}}}{{#if:{{{by|}}}|{{#if:{{{caption|}}}|<br />|}}''By&nbsp;[[{{{by|}}}]]''|}}</td><td style="width: 20px">[[File:LinkToBoard.gif|link=http://tgchan.org/kusaba/thread-for/icons/{{{1}}}]]</td></tr><!--
'''Name:''' {{{name|Unnamed}}}<br />
 
'''Age:''' {{{age|Ageless}}}<br />
--></table></includeonly><!-- Don't leave a trailing newline after this! Very whitespace-sensitive. -->
'''Gender:''' {{{gender|Neither}}}<br />{{#if:{{{pawn|}}}|<!-- moved here to avoid linebreak -->
'''Pawn&nbsp;status'''&nbsp;{{{pawn|}}}<br />|}}
'''Relationship:''' {{{relation|Single, not looking}}}<br />
</td>
                        <!-- Third cell, third column -->
<td style="border: 1px solid white; vertical-align: top; background:#{{{background|eee}}};">
'''Description:''' {{{description|Nondescript!}}}<br />
'''Trivia:''' {{{trivia|Apparently has nothing special going for them}}}  
</td>
</tr><!-- Close row -->
</includeonly>

Revision as of 20:34, 19 July 2014

By changing around a whole lot of jazz, you can now host up to four images for one character in a nifty little setup!
What all's available in the second (middle) row:
|icon is used for the default, or first icon.
|iconx is used for any extra icons, though it will only work for 2, 3, and 4.
|name The character's name, of course.
|age The character's age.
|gender As it says.
|pawn An optional input, for use with RUST and joined storylines.
|relation What relationship the character is in.
And for the third (right) column:
|description Information about this character. Put the important stuff here!
|trivia Unimportant information that can still be useful or humorous.
Finally, some extras:
|background For customizing the background color of the entire thing. Please note this effects ALL THREE columns, not just one.
|text For customizing the text color for the entire thing. As is the case with background, it effects ALL THREE columns.