Difference between revisions of "Template:Fiction"

From Disobiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{| class="infobox"
+
<includeonly><div class="infobox fiction">
! class="title" colspan="2" | ''{{{name|{{PAGENAME}}}}}''
+
[[File:Help.png|link=Template:Fiction#Usage|right]]
 +
<div class="title">{{{Title|{{PAGENAME}}}}}</div>
 +
{|
 
|-
 
|-
 
{{#if:{{{author|}}}|
 
{{#if:{{{author|}}}|
Line 25: Line 27:
 
! colspan="2" {{!}} [[File:{{{image}}}{{#if:{{{image_size|}}}|{{!}}{{{image_size}}}px|{{!}}200px}}{{#if:{{{image_link|}}}|{{!}}link={{{image_link}}}}}]] {{#if:{{{image_caption|}}}|<br />{{{image_caption}}}}}
 
! colspan="2" {{!}} [[File:{{{image}}}{{#if:{{{image_size|}}}|{{!}}{{{image_size}}}px|{{!}}200px}}{{#if:{{{image_link|}}}|{{!}}link={{{image_link}}}}}]] {{#if:{{{image_caption|}}}|<br />{{{image_caption}}}}}
 
}}
 
}}
|}__NOTOC__</includeonly><noinclude>
+
|}</div>__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 42: Line 44:
 
| image_caption  =  
 
| image_caption  =  
 
}}</pre>
 
}}</pre>
 
==Parameters==
 
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>

Revision as of 13:40, 20 April 2010

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

Usage

{{Fiction
| name           = 
| author         = 
| genre          =
| rating         =
| frequency      =
| image          = 
| image_link     =
| image_size     = 
| image_caption  = 
}}