Template:Info: Difference between revisions

From Shifti
Jump to navigation Jump to search
use the HTML comment convention to add some formatting into the code so it's a bit easier for people to track
using preformatting and line breaks to make the template's parameters easier to distinguish
Line 35: Line 35:
   -->}}<!--
   -->}}<!--
-->}}</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>


Example:
Example of a full declaration of this template:
 
<pre>{{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;}}</pre>
 
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 #aaa; border-style: solid; width:300px; text-align:center;"
  |-
  |-
Line 54: Line 64:
  | style="font-size:x-small;" | Fantasy
  | style="font-size:x-small;" | Fantasy
  |}
  |}
<nowiki>{{info|author=Pornrat Watanabe|title=Infobox Example|contact=pornrat@watanabe.com|website=http://watanabe.com|setting=Xanadu|genre=Fantasy}}</nowiki>
<pre>{{info
|author=Pornrat Watanabe
|title=Infobox Example
|contact=pornrat@watanabe.com
|website=http://watanabe.com
|setting=Xanadu
|genre=Fantasy}}</pre>


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

Revision as of 22:31, 14 August 2007


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

Example of how it looks:

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.