Difference between revisions of "Template:Fiction"

From Disobiki
Jump to navigation Jump to search
 
(33 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" style="font-size:90%; text-align:left; width:20em;" cellspacing="2"
+
<includeonly><div class="infobox fiction" style="margin-top: -2px;">
! class="summary" style="font-size:110%; text-align:center;" colspan="2" | ''{{{name|{{PAGENAME}}}}}''
+
[[File:Help.png|link=Template:Fiction#Usage|right]]
 +
<div class="title">{{{name|{{BASEPAGENAME}}}}}</div>
 +
{|
 
|-
 
|-
 
{{#if:{{{author|}}}|
 
{{#if:{{{author|}}}|
Line 22: Line 24:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{image|}}}|
+
|}
! style="font-size:85%; line-height:1.25em; text-align:center;" colspan="2" {{!}} [[File:{{{image}}}{{#if:{{{image_size|}}}|{{!}}{{{image_size}}}px|{{!}}200px}}{{#if:{{{image_link|}}}|{{!}}link={{{image_link}}}}}]] {{#if:{{{image_caption|}}}|<br />{{{image_caption}}}}}
+
{{#if:{{{image|}}}|[[File:{{{image}}}{{#if:{{{image_size|}}}|{{!}}{{{image_size}}}px|{{!}}235px}}{{#if:{{{image_link|}}}|{{!}}link={{{image_link}}}}}|center]]{{#if:{{{image_caption|}}}|<br />{{{image_caption}}}}}}}</div>{{#if:{{{teaser|}}}|<div style="border:1px solid #b5b7cf; background-color:#eff0ff; font-family:Georgia; font-size:120%; font-style:italic; line-height:150%; margin:auto auto 1em; padding:0.2em; text-align:center;">{{{teaser}}}</div>}}{{AutoDEFAULTSORT}}</includeonly><noinclude>
}}
 
|}__NOTOC__</includeonly><noinclude>
 
 
Use this template to summarize information about a piece of fiction.
 
Use this template to summarize information about a piece of fiction.
  
Line 32: Line 32:
 
<pre>
 
<pre>
 
{{Fiction
 
{{Fiction
| name          =  
+
| name          =
| author        =  
+
| author        = [[User:Morbus Iff|Morbus Iff]]
| genre          =
+
| genre          = Fantasy, Humor, Mystery
| rating        =
+
| rating        = PG-13
| frequency      =
+
| frequency      = Weekly
| image          =  
+
| image          = The Penny Dreadful.jpg
| image_link    =
+
| image_link    = http://tpdonline.wordpress.com/
| image_size    =  
+
| image_size    = 160
| image_caption  =  
+
| image_caption  =
}}</pre>
+
| teaser        = Last week we were introduced to...
 
+
}}
==Parameters==
+
</pre>
Note: * denotes required fields.<br />
 
 
 
{| class="wikitable"
 
! style="text-align: left" | Parameter
 
! style="text-align: left" | Explanation
 
|-
 
| '''name''' *
 
| The full common name of the fiction. (defaults to <nowiki>{{PAGENAME}}</nowiki> if empty).
 
|-
 
| '''author'''
 
| The linked name(s) of the author(s), separated with <nowiki><br /></nowiki>.
 
|-
 
| '''genre'''
 
| The genre(s) of the fiction, separated with commas.
 
|-
 
| '''rating'''
 
| The rating of the fiction (PG-13, R, etc.).
 
|-
 
| '''frequency'''
 
| The frequency of the fiction.
 
|-
 
| '''image'''
 
| A relevant image for the fiction.
 
|-
 
| '''image_link'''
 
| A URL to visit instead of the full-size image itself.
 
|-
 
| '''image_size'''
 
| Image width (defaults to 200px if empty).
 
|-
 
| '''image_caption'''
 
| Image caption, which should tell more about the image.
 
|}
 
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 08:12, 14 August 2010

Use this template to summarize information about a piece of fiction.

Usage

{{Fiction
| name           =
| author         = [[User:Morbus Iff|Morbus Iff]]
| genre          = Fantasy, Humor, Mystery
| rating         = PG-13
| frequency      = Weekly
| image          = The Penny Dreadful.jpg
| image_link     = http://tpdonline.wordpress.com/
| image_size     = 160
| image_caption  =
| teaser         = Last week we were introduced to...
}}