Template:Info: Difference between revisions

From Shifti
Jump to navigation Jump to search
No edit summary
m my mistake - I didn't get rid of all of the poor form of the code (and I cleaned up the code a bit more)
Line 1: Line 1:
<includeonly>
<includeonly>
<table class="toc floatright" style="border: 1px solid rgb(170, 170, 170); width: 300px; text-align: center;">
<table class="toc floatright" style="border: 1px solid rgb(170, 170, 170); width: 300px; text-align: center;">
<tr>
{{#if:{{{title|}}}|<tr><td colspan="2">{{{title}}}</td></tr>}}
{{#if:{{{title|}}}|<td colspan="2">{{{title}}}</td>}}
{{#if:{{{author|}}}|<tr><td style="text-align: left; font-size: x-small;">Author:</td><td style="font-size: x-small;">{{#if:{{{contact|}}}|[mailto:{{{contact}}} {{{author}}}]|{{{author}}}}}</td></tr>}}
</tr>
{{#if:{{{website|}}}|<tr><td style="text-align: left; font-size: x-small;">Website:</td><td style="font-size: x-small;">{{{website}}}</td></tr>}}
<tr>
{{#if:{{{setting|}}}|<tr><td style="text-align: left; font-size: x-small;">Setting:</td><td style="font-size: x-small;">{{{setting}}}</td></tr>}}
{{#if:{{{author|}}}|<td style="text-align: left; font-size: x-small;">Author:</td><td style="font-size: x-small;">{{#if:{{{contact|}}}|[mailto:{{{contact}}} {{{author}}}]|{{{author}}}}}</td>}}
</tr>
<tr>
{{#if:{{{website|}}}|<td style="text-align: left; font-size: x-small;">Website:</td><td style="font-size: x-small;">{{{website}}}</td>}}
</tr>
<tr>
{{#if:{{{setting|}}}|<td style="text-align: left; font-size: x-small;">Setting:</td><td style="font-size: x-small;">{{{setting}}}</td>}}
</tr>
</table>
</table>
{{#if: {{{series|}}} |  
{{#if:{{{series|}}}|{{#if:{{{previous|}}}|{{#if:{{{next|}}}|{{series box|series={{{series}}} {{#if:{{{position|}}}|&#35;{{{position}}}}}|next={{{next}}}|previous={{{previous}}}}}|{{series box|series={{{series}}} {{#if:{{{position|}}}|&#35;{{{position}}}}}|previous={{{previous}}}}}}}|{{#if:{{{next|}}}|{{series box|series={{{series}}} {{#if:{{{position|}}}|&#35;{{{position}}}}}|next={{{next}}}}}|{{series box|series={{{series}}}}}}}}}}}
  {{#if:{{{previous|}}} |  
    {{#if:{{{next|}}} |  
      {{series box|series={{{series}}} {{#if:{{{position|}}}|&#35;{{{position}}}}}|next={{{next}}}|previous={{{previous}}}}} |
      {{series box|series={{{series}}} {{#if:{{{position|}}}|&#35;{{{position}}}}}|previous={{{previous}}}}}  
    }} |  
    {{#if:{{{next|}}}|
        {{series box|series={{{series}}} {{#if:{{{position|}}}|&#35;{{{position}}}}}|next={{{next}}}}}|{{series box|series={{{series}}}}}
    }} 
  }}
}}
|next={{{next|<b>None</b>}}}}}}}
</includeonly><noinclude>
</includeonly><noinclude>
<nowiki>{{info|author=&lt;author name&gt;|title=&lt;story title&gt;|website=&lt;author website&gt;|contact=&lt;author email&gt;|setting=&lt;universe&gt;|series=&lt;series name&gt;|position=&lt;position of story in series&gt;|previous=&lt;link to previous story in series&gt;|next=&lt;link to next story in series&gt;}}</nowiki>
<nowiki>{{info|author=&lt;author name&gt;|title=&lt;story title&gt;|website=&lt;author website&gt;|contact=&lt;author email&gt;|setting=&lt;universe&gt;|series=&lt;series name&gt;|position=&lt;position of story in series&gt;|previous=&lt;link to previous story in series&gt;|next=&lt;link to next story in series&gt;}}</nowiki>

Revision as of 02:58, 10 August 2007

{{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>}}

Example:

Infobox Example
Author: Pornrat Watanabe
Website: http://watanabe.com
Setting: Xanadu
Transformation Type: Mythical
Transformation: Human to Dragon
Genre: Fantasy

{{info|author=Pornrat Watanabe|title=Infobox Example|contact=pornrat@watanabe.com|website=http://watanabe.com|setting=Xanadu|type=Mythical|tf=Human to Dragon|genre=Fantasy}}

All parameters are optional.