User:Leonim/Template:MainPage/Section

From Guild Wars 2 Wiki
Jump to navigationJump to search

Description[edit]

Provides a section's layout for the wiki's main page (GW2W). The generated wiki code should be incorporated into a table, and works in tandem with the User:Leonim/MainPage proposal.

Thanks[edit]

Usage[edit]

{{User:Leonim:Template:MainPage/Section
| section = 
| colspan = 
| rowspan =
| valign = 
| icon = 
| title = 
| stroke = 
| spots = 
| nav = 
| links =
| highlight =
| content = 
}}

Parameters[edit]

Variable Nature Scope Description Defaults
section Recommanded Page Anchor id to navigate to this particular section in the page.
nav Optional Page Indicates if a nav icon is to be found in the upper-left corner of the section box. Possible values : none, top or any other section. none
icon Required Title Section's icon (left to the title).
title Required Title Section's title.
spots Optional Title The number (see gallery below) of the leftmost part of the title's banner. 1
strokes Optional Title The number (see gallery below) of the rightmost part of the title's banner. 7
colspan Optional Table Number of cells to span the section horizontally. 1
rowspan Optional Table Number of cells to span the section vertically. 1
valign Optional Cell Vertical-align (CSS) of the section box in the surrounding table cell. top
highlight Optional Highlight Highlight image (resized to a 80px width size).
feature Optional Highlight Legend or featured topic of the highlight image (if present). Featured article
width Optional Contents Width (CSS) of the content, relative to the box size. auto
height Not implemented Contents Max height (CSS) of the contents relative to the box. auto
overflow Not implemented Contents Indicates what to do when the content is bigger than the provided height parameter (possibles values : scroll, hidden or auto). auto
content Required Contents Contents of the section box.
links Optional Contents Small links in the lower-right corner fo the section.

Resources[edit]

Spots[edit]

Leftmost parts of the title's banner.

Strokes[edit]

Rightmost parts of the title's banner.

Icons[edit]

Any in-game icon (48px and bigger) would do, they are resized to a 60x60 resolution.

See below for examples associated to the current categories :

Old ones :

Code[edit]

Click edit to view the code.

Preview[edit]

User Alfa-R MainPage spots 1.png
User Alfa-R MainPage stroke 7.png
Signet of Water.png
Title
Featured article
Test
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

See also[edit]