Difference between revisions of "Template:Test"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | This is the "Book" | + | This is the "Book Template" template. It should be called in the following format: |
− | + | <pre> | |
− | + | {{BookHeader | |
− | + | | BookTitle = What is the Book Title? | |
+ | | Img = link to Book image | ||
+ | | BookType = What format Book is this? Movie? TV? Radio? News? | ||
+ | | BookReleaseDate = When was the Book released? | ||
+ | | Synopsis = What is the Book about? | ||
+ | | BookAuthors = Who Wrote the book? | ||
+ | }} | ||
+ | </pre> | ||
+ | Edit the page to see the template text. | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
− | + | {| class="toccolours" style="width: 900px; float: left; margin-left:10px; margin-right:1px; margin-bottom:10px; text-align: left" cellspacing="2" | |
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
+ | ! style="background:{{{Color|black}}}; color:{{{TextColor|ffff66}}}; border: 1px ridge; font-size: 110%;" align="center" colspan="4" | '''{{{BookTitle|Untitled}}}''' | ||
|- | |- | ||
− | ! | + | ! colspan="4" align="center" | <img src="{{{Img}}}" width="300"> |
− | | {{{ | ||
|- | |- | ||
+ | ! style="background:{{{Color|black}}}; color:{{{TextColor|ffff66}}}; border: 1px ridge; font-size: 110%;" align="center" colspan="4" | '''{{{BookType|Fiction}}}''' | ||
|- | |- | ||
− | ! Book | + | |- class="LogRow" |
− | | {{{ | + | ! class="LogCell" | Start Date: || class="LogCell" | {{#set:Book Date={{{BookReleaseDate}}}}}{{#time: d F Y | {{{BookReleaseDate}}} }} |
|- | |- | ||
+ | |- class="LogRow" | ||
+ | ! class="LogCell" | Synopsis: || class="LogCell" | {{#set:Book Synopsis={{{Synopsis}}}}}{{{Synopsis|}}} | ||
|- | |- | ||
− | ! | + | |- class="LogRow" |
− | | | + | ! class="LogCell" | Author(s): || class="LogCell" | {{#arraymap:{{{BookAuthors}}}|,|x|{{#set:Book Authors=x}}{{#if: {{#vardefineecho: x | {{#ask: [[Char_id::x]]}}}} | {{#var: x}} | x}}|, }} |
− | | | + | |} [[Category:Books]] |
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | |||
− | | {{ | ||
− | |||
− | |||
− | {{{ | ||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | + | ---- | |
− | </ | + | </includeonly> |
Revision as of 00:11, 7 September 2022
This is the "Book Template" template. It should be called in the following format:
{{BookHeader | BookTitle = What is the Book Title? | Img = link to Book image | BookType = What format Book is this? Movie? TV? Radio? News? | BookReleaseDate = When was the Book released? | Synopsis = What is the Book about? | BookAuthors = Who Wrote the book? }}
Edit the page to see the template text.