Template:Info: Difference between revisions

From Shifti
Jump to navigation Jump to search
first version of a story info-box
 
m hack this one to also include automagic semantic annotations
 
(55 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#vardefine:author|{{{author|{{#ifeq:{{NAMESPACE}}|User|{{BASEPAGENAME}}|Anonymous}}}}}}
<includeonly><!--
{{#vardefine:title|{{{title|{{#ifeq:{{NAMESPACE}}|User|{{SUBPAGENAME}}|{{PAGENAME}}}}}}}
--><table class="toc floatright" style="width: 300px; text-align: center; border: 1px solid #888;"><!--
  -->{{#if:{{{title|}}}|<!--
    --><tr><!--
      --><td>[[Image:Info_icon.png|20px]]</td><!--
      --><td style="text-align: left; font-size: 125%; font-weight: bold; font-variant: small-caps;">{{{title}}}{{Title tag|{{{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}}}}}{{Author tag|{{{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:{{{genre|}}}|<!---
    --><tr><!--
      --><td style="text-align: left; font-size: x-small;">Genre:</td><!--
      --><td style="font-size: x-small;">{{{genre}}}</td><!--
    --></tr><!--
  -->{{#if:{{{series|}}}|<!--
    --><tr><!--
      --><td style="font-size: x-small; text-align: left;">Series:</td><!--
      --><td style="font-size: x-small;">{{{series}}} {{#if:{{{position|}}}|(&#35;{{{position}}})}}</td><!--
    --></tr><!--
    -->{{#if:{{{previous|}}}|<!--
      --><tr><!--
        --><td style="text-align: left; font-size: x-small;">Previous:</td><!--
        --><td style="font-size: x-small;">{{{previous}}}</td><!--
      --></tr><!--
    -->}}<!--
    -->{{#if:{{{next|}}}|<!--
      --><tr><!--
        --><td style="font-size: x-small; text-align: left;">Next:</td><!--
        --><td style="font-size: x-small;">{{{next}}}</td><!--
      --></tr><!--
    -->}}<!--
  -->}}<!--
  -->{{#if:{{{setting|}}}|<!--
    --><tr><!--
      --><td style="font-size: x-small; text-align: left;">Setting/Universe:</td><!--
      --><td style="font-size: x-small;">{{{setting}}}{{Universe tag|{{{setting}}}}}</td><!--
    --></tr><!--
  -->}}<!--
-->}}<!--
--></table></includeonly><noinclude>


{{#ifeq:{{{series|No}}}|No|
Example of a full declaration of this template:
{| class="toc floatright" style="border: 1px #aaa; border-style: solid; width:300px; text-align:center;"
 
| -
<pre>{{info
| style="text-align: center;" colspan="2" | ''{{#var:title}}''
|author=&lt;author name&gt;
| -
|title=&lt;story title&gt;
| style="text-align:left; font-size:x-small;" | Author:
|website=&lt;author website&gt;
| {{#ifeq:{{{contact| }}}| |{{#var:author}}|<a href="mailto:{{{contact}}}">{{#var:author}}</a>}}
|contact=&lt;author email&gt;|setting=&lt;universe&gt;
| -
|series=&lt;series name&gt;|position=&lt;position of story in series&gt;
| style="text-align:left; font-size:x-small;" | Website:
|previous=&lt;link to previous story in series&gt;
| {{#ifeq:{{{website| }}}| |''Unknown''|[{{{website}}} {{{website}}}]}}
|next=&lt;link to next story in series&gt;
| -
|genre=&lt;the genre of the story&gt;}}</pre>
| style="text-align:left; font-size:x-small;" | Setting:
 
| {{{setting|''Custom (possibly)''}}}
Example of how it looks:
| -
{| class="toc floatright" style="border: 1px solid #888; width:300px; text-align:center;"
| style="text-align:left; font-size:x-small;" | Transformation Type:
  |-
| {{{tftype|''Unknown''}}}
| [[Image:Info_icon.png|20px]]
| -
  | style="font-size: 125%; font-weight: bold; text-align: left; font-variant: small-caps;" | Infobox Example
| style="text-align:left; font-size:x-small;" | Transformation:
  |-
| {{{tf|''Unknown''}}}
| -
| style="text-align:left; font-size:x-small;" | Genre:
| {{{genre|''Unknown''}}}
|)
|
{| class="toc floatright" style="border: 1px #aaa; border-style: solid; width:300px; text-align:center;"
  | -
  | style="text-align: center;" colspan="2" | ''{{#var:title}}''
  | -
  | style="text-align:left; font-size:x-small;" | Author:  
  | style="text-align:left; font-size:x-small;" | Author:  
  | {{#ifeq:{{{contact| }}}| |{{#var:author}}|<a href="mailto:{{{contact}}}">{{#var:author}}</a>}}
  | style="font-size:x-small;" | [mailto:pornrat@watanabe.com Pornrat Watanabe]
  | -
  |-
  | style="text-align:left; font-size:x-small;" | Website:
  | style="text-align:left; font-size:x-small;" | Website:
| {{#ifeq:{{{website| }}}| |''Unknown''|[{{{wenbsite}}} {{{website}}}]}}
  | style="font-size:x-small;" | [http://watanabe.com http://watanabe.com]
| -
  |-
  | style="text-align:left; font-size:x-small;" | Series:
| {{{series}}} {{#ifeq:{{{position|-1}}}|-1||#{{{position}}}
| -
| style="text-align:left; font-size:x-small;" | Previous Story in Series:
| {{{previous|''None''}}}
| -
| style="text-align:left; font-size:x-small;" | Next Story in Series:
| {{{next|''None''}}}
| -
| style="text-align:left; font-size:x-small;" | Setting:
| {{{setting|''Custom (possibly)''}}}
| -
| style="text-align:left; font-size:x-small;" | Transformation Type:
| {{{tftype|''Unknown''}}}
| -
| style="text-align:left; font-size:x-small;" | Transformation:
| {{{tf|''Unknown''}}}
  | -
  | style="text-align:left; font-size:x-small;" | Genre:
  | style="text-align:left; font-size:x-small;" | Genre:
  | {{{genre|''Unknown''}}}
  | style="font-size:x-small;" | Fantasy
  |)
|-
}}<noinclude>
| style="text-align:left; font-size: x-small;" | Setting/Universe:
<nowiki>{{info|author=&lt;author name&gt;|title=&lt;story title&gt;|website=&lt;author website&gt;|contact=&lt;author email&gt;|tftype=&lt;animal, mythical, etc...&gt;|setting=&lt;universe&gt;|tf=&lt;main transformation - like: Human(Male) to Horse(Female)&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>
  | style="font-size: x-small;" | Xanadu
|}
<pre>{{info
|author=Pornrat Watanabe
|title=Infobox Example
|contact=pornrat@watanabe.com
|website=http://watanabe.com
|setting=Xanadu
|genre=Fantasy}}</pre>


Parameters are optional.
All parameters are optional.
</noinclude>
</noinclude>

Latest revision as of 19:10, 12 February 2009


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
Setting/Universe: Xanadu
{{info
|author=Pornrat Watanabe
|title=Infobox Example
|contact=pornrat@watanabe.com
|website=http://watanabe.com
|setting=Xanadu
|genre=Fantasy}}

All parameters are optional.