Segítség:Stílussegédlet

A Gentoo Linux Wiki wikiből

FIXME: Fordítás!

Tartalomjegyzék

[szerkesztés] Címsor 1

[szerkesztés] Címsor 2

[szerkesztés] Címsor 3

[szerkesztés] Címsor 4

[szerkesztés] Címsor 5
[szerkesztés] Címsor 6

Ajánlás: Próbálj meg mindent egy blokkba írni, mert így könnyebb szerkeszteni és olvasni

[szerkesztés] Automatikus számozás

  1. első
  2. második
  3. harmadik
  4. negyedik
  5. ötödik

[szerkesztés] Behúzás

  • első
    • második
      • harmadik

vagy:

első
második
harmadik

[szerkesztés] Nem automatikus számozás/betűzés

1) egyes szám
   a) 1a
   b) 1b
   c) 1c
2) kettes szám
3) hármas szám
4) négyes szám
5) ötös szám

[szerkesztés] Tables of Contents

  • Néha olyan cikket kell írni, aminél azt szeretnéd, hogy a főoldalhoz és a fejezetben lévő más oldalak többségéhez lehessen kapcsolni. Erre a MediaWiki névtere egy egyszerű módot kínál.

[szerkesztés] Példa:

Ha ezt a kódot írod:

[[Példa cikk]]
*Chapter 1 → [[ExampleBook:Chap1Page1|1]] - [[ExampleBook:Chap1Page2|2]] - [[ExampleBook:Chap1Page3|3]]
*Chapter 2 → [[ExampleBook:Chap2Page1|1]] - [[ExampleBook:Chap2Page2|2]] - [[ExampleBook:Chap2Page3|3]]
*Chapter 3 → [[ExampleBook:Chap3Page1|1]] - [[ExampleBook:Chap3Page2|2]] - [[ExampleBook:Chap3Page3|3]]
----

You get a Table Of Contents(TOC) like this

Example Book

  • Chapter 1 → 1 - 2 - 3
  • Chapter 2 → 1 - 2 - 3
  • Chapter 3 → 1 - 2 - 3

To add this to each page in your book all you have to do is dump the TOC code into a page under the namespace MediaWiki

http://wiki.gentoo-portage.com/wiki/MediaWiki:ExampleBookTOC

and add a message to it at the top of each wikibook. This will show all the stuff thats in the TOC wherever the link {{msg:ExampleBookTOC}} is shown.

[szerkesztés] Example2:

{{msg:ExampleBookTOC}}


Sablon:ExampleBookTOC

You can see that now all you have to do to add a TOC to any of your pages is include the code: {{msg:YourBookTOC}} wherever you want it.

[szerkesztés] Note:

As part of the added coolness of a TOC in your books, any selflink, (a link that points to the page its on) is shown in bold. This means that if you were on page 2 of chapter 2 in your book, that link would be changed to a bold non-linking string:

[szerkesztés] Example

Example Book

  • Chapter 1 → 1 - 2 - 3
  • Chapter 2 → 1 - 2 - 3
  • Chapter 3 → 1 - 2 - 3

[szerkesztés] Colours and Tables

{| WIDTH="75%" | style="background-color: #F3F3FF; border: solid 1px #D6D6FF; padding: 1em;" valign=top|<center><big> </big></center>|}

Try using blue tables for mathematical formulas and stuff

{| WIDTH="75%" | style="background-color: #FFF7F7; border: solid 1px #ffd6d6; padding: 1em;" valign=top| |}

and pink tables (background=#FFF7F7,border=#ffd6d6) for terms
f=force
a=acceleration
s=displacement
v=velocity

{| WIDTH="100%" | style="background-color: #FFFFEE; border: solid 1px #ffeaa5; padding: 1em;" valign=top| |}


  • Full width yellow tables are good for definitions (background=#FFFFEE,border=#ffeaa5)

===wiki:=== term used to identify either a specific type of hypertext document collection or the collaborative software used to create it.

{| WIDTH="75%" | style="background-color: #f2fff2; border: solid 1px #bfffbf; padding: 1em;" valign=top| |}

Pale green tables can be used for anything else (background=#f2fff2,border=#bfffbf)

Don't forget to enjoy yourself in this unified quest for knowledge.


[szerkesztés] See Also

Wiki markup tables

Személyes eszközök