Template:Info: Difference between revisions
Jump to navigation
Jump to search
ShadowWolf (talk | contribs) m more fixes |
ShadowWolf (talk | contribs) refactor code, add a better example and basically make the infobox easier to use. |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<table class="toc floatright" style="border: 1px #aaa; border-style: solid; width:300px; text-align:center;"> | |||
{{#ifeq:{{{title| }}}| | | |||
{{#ifeq:{{NAMESPACE}}|User| | |||
<tr> | |||
<td colspan="2">{{SUBPAGENAME}}</td> | |||
</tr>| | |||
}} | | |||
<tr> | |||
<td colspan="2">{{{title}}}</td> | |||
</tr> | |||
}} | |||
{{#ifeq:{{{author| }}}| | | |||
{{#ifeq:{{NAMESPACE}}|User| | |||
<tr> | |||
<td style="text-align:left; font-size:x-small;">Author:</td> | |||
<td style="font-size:x-small;"> | |||
{{#ifeq:{{{contact| }}}| | | |||
[[User:{{BASEPAGENAME}}]] | | |||
[mailto:{{{contact}}} {{BASEPAGENAME}}] }} | |||
</td> | |||
</tr> | |||
| }} | | |||
<tr> | |||
<td style="text-align:left; font-size:x-small;">Author:</td> | |||
<td style="font-size:x-small;"> | |||
{{#ifeq:{{{contact| }}}| | | |||
{{{author}}} | [mailto:{{{contact}}} {{{author}}}] }} | |||
</td> | |||
</tr> | |||
}} | |||
{{#ifeq:{{{website| }}}| || | |||
<tr> | |||
<td style="text-align:left; font-size:x-small;">Authors Website:</td> | |||
<td style="font-size:x-small;">[{{{website}}} {{{website}}}]</td> | |||
</tr> | |||
}} | |||
{{#ifeq:{{{series| }}}| || | |||
<tr> | |||
<td style="text-align:left; font-size:x-small;">Series:</td> | |||
<td style="font-size:x-small;">{{{series}}} {{#ifeq:{{{position| }}}| ||#{{{position}}}}}</td> | |||
</tr> | |||
<tr> | |||
<td style="text-align:left; font-size:x-small;">Previous Story:</td> | |||
<td style="font-size:x-small;">{{{previous|''None''}}}</td> | |||
</tr> | |||
<tr> | |||
<td style="text-align:left; font-size:x-small;">Next Story:</td> | |||
<td style="font-size:x-small;">{{{next|''None''}}}</td> | |||
</tr> | |||
}} | |||
{{#ifeq:{{{setting| }}}| || | |||
<tr> | |||
<td style="text-align:left; font-size:x-small;">Setting:</td> | |||
<td style="font-size:x-small;">{{{setting}}}</td> | |||
</tr> | |||
}}</ | }} | ||
{ | {{#ifeq:{{{type| }}}| || | ||
<tr> | |||
<td style="text-align:left; font-size:x-small;">TF Type:</td> | |||
<td style="font-size:x-small;">{{{type}}}</td> | |||
</tr> | |||
}} | |||
{{#ifeq:{{{tf| }}}| || | |||
<tr> | |||
| | <td style="text-align:left; font-size:x-small;">Transformation:</td> | ||
<td style="font-size:x-small;">{{{tf}}}</td> | |||
</tr> | |||
}} | |||
{{#ifeq:{{{genre| }}}| || | |||
<tr> | |||
| | <td style="text-align:left; font-size:x-small;">Genre:</td> | ||
<td style="font-size:x-small;">{{{genre}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</includeonly><noinclude> | |||
<nowiki>{{info|author=<author name>|title=<story title>|website=<author website>|contact=<author email>|type=<animal, mythical, etc...>|setting=<universe>|tf=<main transformation - like: Human(Male) to Horse(Female)>|series=<series name>|position=<position of story in series>|previous=<link to previous story in series>|next=<link to next story in series>}}</nowiki> | |||
<nowiki>{{info|author=<author name>|title=<story title>|website=<author website>|contact=<author email>| | |||
Example: | |||
<table class="toc floatright" style="border: 1px #aaa; border-style: solid; width:300px; text-align:center;"> | |||
<tr> | |||
<td colspan="2">Infobox Example</td> | |||
</tr> | |||
<tr> | |||
<td style="text-align:left; font-size:x-small;">Author:</td> | |||
<td style="font-size:x-small;">[mailto:pornrat@watanabe.com Pornrat Watanabe]</td> | |||
</tr> | |||
<tr> | |||
<td style="text-align:left; font-size:x-small;">Authors Website:</td> | |||
<td style="font-size:x-small;">[http://watanabe.com http://watanabe.com]</td> | |||
</tr> | |||
<tr> | |||
<td style="text-align:left; font-size:x-small;">Setting:</td> | |||
<td style="font-size:x-small;">Xanadu</td> | |||
</tr> | |||
<tr> | |||
<td style="text-align:left; font-size:x-small;">TF Type:</td> | |||
<td style="font-size:x-small;">Mythical</td> | |||
</tr> | |||
<tr> | |||
<td style="text-align:left; font-size:x-small;">Transformation:</td> | |||
<td style="font-size:x-small;">Human to Dragon</td> | |||
</tr> | |||
<tr> | |||
<td style="text-align:left; font-size:x-small;">Genre:</td> | |||
<td style="font-size:x-small;">Fantasy</td> | |||
</tr> | |||
</table> | |||
<nowiki>{{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}}</nowiki> | |||
All parameters are optional. | |||
</noinclude> | </noinclude> | ||
Revision as of 01:05, 10 August 2007
{{info|author=<author name>|title=<story title>|website=<author website>|contact=<author email>|type=<animal, mythical, etc...>|setting=<universe>|tf=<main transformation - like: Human(Male) to Horse(Female)>|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 |
| Authors Website: | http://watanabe.com |
| Setting: | Xanadu |
| TF 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.