Template:Book/doc

From SprezzOSWiki
Revision as of 08:26, 4 December 2012 by Dank (talk | contribs) (Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> === Usage === To create a new book on the topic "Topic"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{#ifeq: doc | doc

 | 

{{

   #ifeq: show | show
   | {{
 {{#switch:
 {{#if: 
   | 
   | {{#if: 
     | 
       {{#ifeq:|
       | talk
       |  
       }}
     | 
       {{#ifeq:template|template talk
       | talk
       | template 
       }}
     }}
   }}

| main | = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | book = ombox | other | #default = ombox

}} | type = notice | image = | imageright = | class = | style = | textstyle = | text = This is a documentation subpage for Template:Book.
It contains usage information, categories, interlanguage links and other content that is not part of the original {{ #if: | {{{text2}}} | {{ #if: | {{{text1}}} | {{ #ifeq: Template | User | template template page | {{ #if: Template |template page|article}}}}}}}}. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }}

   }}{{
   #if: 
   | 
   | {{#ifexist:Template:Book|[[Category:{{
     #switch: Template
     | Template  = Template
     | User      = User
     | #default  = Wikipedia
   }} documentation pages]]|}}
 }}

| }}

Usage

To create a new book on the topic "Topic" using the book template, follow these steps:

1. Create a new page using [[Books:Topic]] or [[User:Username:Books/Topic]] as the title of the page (where "Topic" is the subject of your book) and enter the following text. The "category" parameter can be used if the "topic" should not be capitalized - it is not a proper noun.
{{subst:book
  |username=
  |topic=
  |subtitle=
  |category=
  |support1=
  |support2=
  |support3=
  |support4=
  |support5=
  |support6=
  |support7=
  |support8=
  |support9=
  |support10=
}}
  • The username parameter is for User:Username:Books/Topic "Table of contents" and "Introduction" subpages.
  • The topic parameter is the name of the main article to be used.
  • The subtitle parameter is the subtitle of the book.
  • Up to 10 support parameters can be specified for supporting articles. If needed, additional supporting articles can be added during editing.

Save.

2. Return to your book page and begin editing. Optional instructions on editing a "main article" book are below.
3. Delete the extra and follow the applicable "Introduction" subpage link to create an introduction.
4. For creating a main and supporting articles style of book, include the main article and all supporting articles that are referenced as major expansions of selected sections. Supporting article links typically are included at the top of a section using templates such as {{Main}}, {{See also}} and {{See}}. Delete extra or add more supporting article links.
5. If a new category is to be created for the book's topic, edit the red [[Category:Wikipedia:Books on Topic|Topic]] link. Add the following categories to the "Books on Topic" category page.
[[Category:Wikipedia:Books on broader topic|Topic]]
[[Category:Topic|β]]

This will ensure the new books topic is properly classified for books, and it is included as a books subcategory under the encyclopedia topic.

See also