Template:Info: Difference between revisions

From Shifti
Jump to navigation Jump to search
m update to take advantage of {{universe}} (and fix the example that somehow never got updated along with the template)
m hack this one to also include automagic semantic annotations
 
(16 intermediate revisions by 2 users not shown)
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="width: 300px; text-align: center; border: 1px solid #888;"><!--
   -->{{#if:{{{title|}}}|<!--
   -->{{#if:{{{title|}}}|<!--
     --><tr><td colspan="2">{{{title}}}</td></tr><!--
     --><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|}}}|<!--
   -->}}{{#if:{{{author|}}}|<!--
     --><tr><!--
     --><tr><!--
       --><td style="text-align: left; font-size: x-small;">Author:</td><!--
       --><td style="text-align: left; font-size: x-small;">Author:</td><!--
       --><td style="font-size: x-small;">{{#if:{{{contact|}}}|[mailto:{{{contact}}} {{{author}}}]|{{{author}}}}}</td><!--
       --><td style="font-size: x-small;">{{#if:{{{contact|}}}|[mailto:{{{contact}}} {{{author}}}]|{{{author}}}}}{{Author tag|{{{author}}}}}</td><!--
     --></tr><!--
     --></tr><!--
   -->}}{{#if:{{{website|}}}|<!--
   -->}}{{#if:{{{website|}}}|<!--
Line 18: Line 21:
       --><td style="font-size: x-small;">{{{genre}}}</td><!--
       --><td style="font-size: x-small;">{{{genre}}}</td><!--
     --></tr><!--
     --></tr><!--
   -->}}<!--
   -->{{#if:{{{series|}}}|<!--
--></table><!--
    --><tr><!--
-->{{#if:{{{setting|}}}|<!--
      --><td style="font-size: x-small; text-align: left;">Series:</td><!--
  -->{{universe|{{{setting}}}}}<!--
      --><td style="font-size: x-small;">{{{series}}} {{#if:{{{position|}}}|(&#35;{{{position}}})}}</td><!--
-->}}<!--
    --></tr><!--
-->{{#if:{{{series|}}}|<!--
    -->{{#if:{{{previous|}}}|<!--
  -->{{#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|}}}|<!--
     -->{{#if:{{{next|}}}|<!--
       -->{{series box|series={{{series}}} <!--
       --><tr><!--
        -->{{#if:{{{position|}}}|&#35;{{{position}}}}}|next={{{next}}}|previous={{{previous}}}<!--
        --><td style="font-size: x-small; text-align: left;">Next:</td><!--
      -->}}|<!--
         --><td style="font-size: x-small;">{{{next}}}</td><!--
    -->{{series box|series={{{series}}} <!--
       --></tr><!--
      -->{{#if:{{{position|}}}|&#35;{{{position}}}}}|previous={{{previous}}}<!--
    -->}}}}|{{#if:{{{next|}}}|<!--
      -->{{series box|series={{{series}}} <!--
         -->{{#if:{{{position|}}}|&#35;{{{position}}}}}|next={{{next}}}}}|{{series box|series={{{series}}}<!--
       -->}}<!--
     -->}}<!--
     -->}}<!--
   -->}}<!--
   -->}}<!--
-->}}</includeonly><noinclude>
  -->{{#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>


Example of a full declaration of this template:
Example of a full declaration of this template:
Line 52: Line 61:


Example of how it looks:
Example of how it looks:
{| class="toc floatright" style="border: 1px #aaa; border-style: solid; width:300px; text-align:center;"
{| class="toc floatright" style="border: 1px solid #888; width:300px; text-align:center;"
  |-
  |-
  | style="text-align: center;" colspan="2" | ''Infobox Example''
| [[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;" | Author:  
  | style="text-align:left; font-size:x-small;" | Author:  
Line 64: Line 74:
  | 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="text-align:left; font-size: x-small;" | Setting/Universe:
  | style="font-size: 75%;" | '''Xanadu''' story universe
  | style="font-size: x-small;" | Xanadu
  |}
  |}
<pre>{{info
<pre>{{info

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.