Difference between revisions of "Template:Nft"

From Neocron Wiki
Jump to: navigation, search
m
(Fixed NFC)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
+
<div style="align:{{{align}}}; border:2px solid #00446A;width: {{#expr:10+{{#if:{{{size|}}}|{{{size}}}|100}} }}px">
This is a template to allow the use of thumb based pictures within a non floating environment. It can be called using the <nowiki>{{nft}}</nowiki> command on the page, a list of the arguments required to make the template work will be supplied below.
+
<div class="thumbinner">
 
+
<div class="thumbimage" style="background-color: #404040">[[Image:{{{file}}}|{{{size}}}px{{#if:{{{overlay|}}}|{{!}}{{{overlay}}}}}]]</div>
 
 
Thumb width = 180px
 
 
 
div.thumbinner {main.css (line 427)
 
background-color:#606060;
 
border:1px solid #00446A;
 
font-size:94%;
 
overflow:hidden;
 
padding:3px !important;
 
text-align:center;
 
}
 
 
 
{{nft
 
|align=right
 
|File=New.png
 
|Overlay=Neocron Wiki Logo
 
|Caption=This is the Neocron Wiki Logo
 
}}
 
<nowiki>
 
<div class="thumbinner" align="{{{align}}}">
 
<table width="184px">
 
  <tr style="border:1px solid #00446A;">[[Image:{{{File}}}|180px|{{{Overlay}}}]]</tr>
 
  <tr>{{{Caption}}}</tr>
 
</table>
 
</div>
 
 
 
div.tright {main.css (line 458)
 
border:1px solid #00446A;
 
clear:right;
 
float:right;
 
}
 
 
 
</nowiki>
 
</noinclude>
 
 
 
 
 
 
 
<div style="clear:{{{align}}}; float:{{{align}}};">
 
<div class="thumbinner" style="width: 182px;">
 
<div class="thumbimage">[[Image:{{{File}}}|180px|{{{Overlay}}}]]</div>
 
 
<div class="thumbcaption">
 
<div class="thumbcaption">
 
<div class="magnify" style="float: right;">
 
<div class="magnify" style="float: right;">
 
[[Image:Magnify-clip.png|15px]]
 
[[Image:Magnify-clip.png|15px]]
 
</div>
 
</div>
{{{Caption}}}
+
{{{caption}}}
 
</div>
 
</div>
 
</div>
 
</div>
 +
</div><noinclude>
 +
{{Documentation}}
 +
</noinclude>

Latest revision as of 14:13, 28 September 2012

[[Image:{{{file}}}|{{{size}}}px]]

Magnify-clip.png

{{{caption}}}

Template-info.pngTemplate Documentation[edit]

This documentation is transcluded from Template:Nft/doc. (edit | history)
This is a template to allow the use of thumb based pictures within a non floating environment. It can be called using the {{nft}} command on the page, a list of the arguments required to make the template work will be supplied below. Overlay is an optional argument. {{nft |align=''Alignment of the thumb'' |File=''Filename for the image (as uploaded to the wiki)'' |size=''width of thumb in pixels - do not add px at the end'' |Overlay=''Text to hover on mouse over'' |Caption=''Caption text'' }}

Neocron Wiki Logo

Magnify-clip.png

This is the Neocron Wiki Logo

Neocron Wiki Logo

Magnify-clip.png

This is the Neocron Wiki Logo

Neocron Wiki Logo

Magnify-clip.png

This is the Neocron Wiki Logo

<div style="align:{{{align}}};"> <div class="thumbinner" style="width: 182px;"> <div class="thumbimage">[[Image:{{{File}}}|180px|{{{Overlay}}}]]</div> <div class="thumbcaption"> <div class="magnify" style="float: right;"> [[Image:Magnify-clip.png|15px]] </div> {{{Caption}}} </div> </div>