Actions

Birdhouse

Book pages: Difference between revisions

From The Birdhouse

Created page with "There are a few parts to creating a book page. This guide will go through them one by one. == Book == To add a book to a page, copy & paste this code: <pre>{{Book |Your text here. }}</pre> Your text must stay on one line in the editor. To add line breaks, add <br/> wherever you'd like one, same as pressing enter in-game. == Infobox == It's recommended to also add an infobox to share additional information about the book. Here's the code: <pre>{{InfoboxBook |title..."
 
m better book codes finally
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
There are a few parts to creating a book page. This guide will go through them one by one.
There are a few parts to creating a book page. This guide will go through them one by one. If you want to look at an example, see [[Daisy Poem]].


== Book ==
== Book ==
Line 5: Line 5:
To add a book to a page, copy & paste this code:
To add a book to a page, copy & paste this code:


<pre>{{Book
<pre><div class="book">
|Your text here.
<div class="writing">
}}</pre>
YOUR TEXT HERE
</div>
</div></pre>


Your text must stay on one line in the editor. To add line breaks, add <br/> wherever you'd like one, same as pressing enter in-game.
To add single line breaks, add <nowiki><br/></nowiki> wherever you'd like one, same as pressing enter in-game. To add white space, use one <nowiki>nbsp;</nowiki> for every space.


== Infobox ==
== Infobox ==
Line 53: Line 55:
}}
}}


{{Book
<div class="book">
|Your text here.
<div class="writing">
}}
YOUR TEXT HERE
</div>
</div>


[[Category:Books]][[Category:Books by NAME]]</pre>
[[Category:Books]][[Category:Books by NAME]]</pre>

Latest revision as of 00:32, 19 August 2024

There are a few parts to creating a book page. This guide will go through them one by one. If you want to look at an example, see Daisy Poem.

Book

To add a book to a page, copy & paste this code:

<div class="book">
<div class="writing">
YOUR TEXT HERE
</div>
</div>

To add single line breaks, add <br/> wherever you'd like one, same as pressing enter in-game. To add white space, use one nbsp; for every space.

Infobox

It's recommended to also add an infobox to share additional information about the book. Here's the code:

{{InfoboxBook
 |title = Title
 |writtenby = [[NAME]] or Unknown
 |location = [[NAME]]
 |series = [[LINK]] to a series/collection
 |previous = [[LINK]] to previous entry
 |next = [[LINK]] to next entry
 |appearance = Lore-wise, what it looks like
 |desc = A description of the contents
}}

Any of the parameters can be deleted or kept blank and they won't display.

For series or collections of books, you can add links to the previous/next entry in the collection and so folks can easily click through in order. See how to create a page for series and how to link it in the next section.

Categories

For every book, add [[Category:Books]][[Category:Books by NAME]] to the bottom of the page, replacing "NAME" with the character. If the author is unknown, use "Books with unknown author" instead.

If the book is a part of a series or collection (such as books that are meant to be read in a particular sequence or are all found in the same place), add [[Category:SERIES NAME]] as well. Then, to link to the category page in the infobox, use [[:Category:SERIES NAME]] Take note of the colon at the beginning!

If you don't want "Category:" showing up in the link or want the name to display differently, add a | like this: [[:Category:SERIES NAME|Displayed text]] replacing "Displayed text" with whatever you want the link to say.

Once you've created a new category, you can go to its page and edit it. If you've just made a new "Books by X," add [[Category:Books]] to the category page, so it shows up as a subfolder in the list of books! For series, write a description of the collection if you'd like, and add [[Category:Book series]] instead.

Full template

{{InfoboxBook
 |title = Title
 |writtenby = [[NAME]] or Unknown
 |location = [[NAME]]
 |series = [[LINK]] to a series/collection
 |previous = [[LINK]] to previous entry
 |next = [[LINK]] to next entry
 |appearance = Lore-wise, what it looks like
 |desc = A description of the contents
}}

<div class="book">
<div class="writing">
YOUR TEXT HERE
</div>
</div>

[[Category:Books]][[Category:Books by NAME]]