Template:Info: Difference between revisions

From Shifti
Jump to navigation Jump to search
using preformatting and line breaks to make the template's parameters easier to distinguish
m update to take advantage of {{universe}} (and fix the example that somehow never got updated along with the template)
Line 13: Line 13:
       --><td style="font-size: x-small;">{{{website}}}</td><!--
       --><td style="font-size: x-small;">{{{website}}}</td><!--
     --></tr><!--
     --></tr><!--
   -->}}{{#if:{{{setting|}}}|<!--
   -->}}{{#if:{{{genre|}}}|<!---
     --><tr><!--
     --><tr><!--
       --><td style="text-align: left; font-size: x-small;">Setting:</td><!--
       --><td style="text-align: left; font-size: x-small;">Genre:</td><!--
       --><td style="font-size: x-small;">{{{setting}}}</td><!--
       --><td style="font-size: x-small;">{{{genre}}}</td><!--
     --></tr><!--
     --></tr><!--
   -->}}<!--
   -->}}<!--
--></table><!--
--></table><!--
-->{{#if:{{{setting|}}}|<!--
  -->{{universe|{{{setting}}}}}<!--
-->}}<!--
-->{{#if:{{{series|}}}|<!--
-->{{#if:{{{series|}}}|<!--
   -->{{#if:{{{previous|}}}|<!--
   -->{{#if:{{{previous|}}}|<!--
Line 45: Line 48:
|series=&lt;series name&gt;|position=&lt;position of story in series&gt;
|series=&lt;series name&gt;|position=&lt;position of story in series&gt;
|previous=&lt;link to previous story in series&gt;
|previous=&lt;link to previous story in series&gt;
|next=&lt;link to next story in series&gt;}}</pre>
|next=&lt;link to next story in series&gt;
|genre=&lt;the genre of the story&gt;}}</pre>


Example of how it looks:
Example of how it looks:
Line 57: Line 61:
  | style="text-align:left; font-size:x-small;" | Website:
  | style="text-align:left; font-size:x-small;" | Website:
  | style="font-size:x-small;" | [http://watanabe.com http://watanabe.com]
  | style="font-size:x-small;" | [http://watanabe.com http://watanabe.com]
|-
| style="text-align:left; font-size:x-small;" | Setting:
| style="font-size:x-small;" | Xanadu
  |-
  |-
  | style="text-align:left; font-size:x-small;" | Genre:
  | style="text-align:left; font-size:x-small;" | Genre:
  | style="font-size:x-small;" | Fantasy
  | style="font-size:x-small;" | Fantasy
|}
{| class="floatright" style="border: thin solid black; background: #F0FFFF; width: 300px;"
|-
| [[Image:Jigsaw green.png|30px|center|icon]]
| style="font-size: 75%;" | '''Xanadu''' story universe
  |}
  |}
<pre>{{info
<pre>{{info

Revision as of 23:32, 14 August 2007


Example of a full declaration of this template:

{{info
|author=<author name>
|title=<story title>
|website=<author website>
|contact=<author email>|setting=<universe>
|series=<series name>|position=<position of story in series>
|previous=<link to previous story in series>
|next=<link to next story in series>
|genre=<the genre of the story>}}

Example of how it looks:

Infobox Example
Author: Pornrat Watanabe
Website: http://watanabe.com
Genre: Fantasy
icon
icon
Xanadu story universe
{{info
|author=Pornrat Watanabe
|title=Infobox Example
|contact=pornrat@watanabe.com
|website=http://watanabe.com
|setting=Xanadu
|genre=Fantasy}}

All parameters are optional.