Template:Info: Difference between revisions

From Shifti
Jump to navigation Jump to search
strip all excessive newlines.
use the HTML comment convention to add some formatting into the code so it's a bit easier for people to track
Line 1: Line 1:
<includeonly>
<includeonly><!--
<table class="toc floatright" style="border: 1px solid rgb(170, 170, 170); width: 300px; text-align: center;">{{#if:{{{title|}}}|<tr><td colspan="2">{{{title}}}</td></tr>}}{{#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>}}{{#if:{{{website|}}}|<tr><td style="text-align: left; font-size: x-small;">Website:</td><td style="font-size: x-small;">{{{website}}}</td></tr>}}{{#if:{{{setting|}}}|<tr><td style="text-align: left; font-size: x-small;">Setting:</td><td style="font-size: x-small;">{{{setting}}}</td></tr>}}</table>{{#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}}}}}}}}}}}</includeonly><noinclude>
--><table class="toc floatright" style="border: 1px solid rgb(170, 170, 170); width: 300px; text-align: center;"><!--
  -->{{#if:{{{title|}}}|<!--
    --><tr><td colspan="2">{{{title}}}</td></tr><!--
  -->}}{{#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><!--
  -->}}{{#if:{{{website|}}}|<!--
    --><tr><!--
      --><td style="text-align: left; font-size: x-small;">Website:</td><!--
      --><td style="font-size: x-small;">{{{website}}}</td><!--
    --></tr><!--
  -->}}{{#if:{{{setting|}}}|<!--
    --><tr><!--
      --><td style="text-align: left; font-size: x-small;">Setting:</td><!--
      --><td style="font-size: x-small;">{{{setting}}}</td><!--
    --></tr><!--
  -->}}<!--
--></table><!--
-->{{#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}}}<!--
      -->}}<!--
    -->}}<!--
  -->}}<!--
-->}}</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 20:41, 11 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
Genre: Fantasy

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

All parameters are optional.