Template:Random portal component/doc

From Uncyclopedia, the content-free encyclopedia

Jump to: navigation, search
This is a documentation subpage for Template:Random portal component.
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:Random portal component.

This template generates a box for a portal home page. The content is drawn randomly from a pre-defined list.

Layout

{{Random portal component
 |max      =
 |header   =
 |footer   =
 |subpage  = 
 |seed     =
 |rootpage =
}}

Usage

  • header: (optional) The header text of the box. If no header is passed to the template, the default is the subpage name.
  • footer: (optional) The footer text in the box. e.g Nominations for selected picture
  • rootpage: (optional) The root of the transcluded page, e.g. Portal:Foo
  • subpage: The subpage of the transcluded page, e.g. Selected picture
  • max: The maximum number of sub-subpages. Must be a positive integer.
  • seed: (optional) The default seed is 17 and can be set to any other integer value (used to generate distinct values on the same page). Prime numbers work best, such as 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, and 113.

Formatting subpages

  • Create a sub-page first. If your portal is Portal:Foo, then a sub-page could be Portal:Foo/Selected bar;
  • On the Portal:Foo/Selected bar sub-page, place the template {{numbered subpages}} on the page and save it. The template will default to 50 subject sub-pages, however you can also use {{25 Numbered subpages}} or {{75 Numbered subpages}} for more or less sub-pages;
  • Once the list of subject links have been created, use one of the Selected subject templates from below to format each of the subject sub-pages.
  • This template calls /box-header and /box-footer for it's color styles and closing, consequently - these must be present in your portal design for it to work correctly.

Example

To see a real time example, see what links here.

Here's a stale example of the output generated by this template.

{{Portal:Box-header | title=header
|editpage   = Template:Lorem ipsum
|border     = Black
|titleforeground = #ffe247
|titlebackground = #A9A9A9
|background = #FFFFFF
|foreground = black
}}
{{Lorem}}
{{Portal:box-footer | footer }}

will produce:

edit 

header

Lorum ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas dictum ipsum ut sapien. Nulla at massa ac nibh pretium tempor. Donec libero. Donec sit amet nisi a pede auctor hendrerit. Proin tristique risus eu risus. Donec eget metus. Proin posuere, lectus quis malesuada convallis, felis nisi fermentum magna, ut vulputate diam enim ac tellus. Proin pede. Donec a justo ac leo ullamcorper lacinia. In pretium convallis purus. Etiam venenatis, nisl vel consectetuer pellentesque, orci mi malesuada urna, vel tempus nunc est at purus. Maecenas volutpat.

Vivamus ultrices. Cras porttitor eleifend libero. Nunc mi massa, convallis vel, dignissim quis, volutpat vitae, nunc. Donec consequat. Donec congue pede sit amet enim. Duis pulvinar ante. Nunc consectetuer. Donec accumsan, quam sit amet vulputate iaculis, justo libero varius purus, sed bibendum turpis purus eget lorum. Quisque neque dui, dapibus nec, malesuada vel, fermentum in, odio. Phasellus vitae tortor. Integer nec elit. Nam vitae felis vel lorum placerat hendrerit. Praesent ornare. Lorum ipsum dolor sit amet, consectetuer adipiscing elit. Nullam nisi. Pellentesque lacinia volutpat arcu.

Quisque non nunc. In ornare commodo velit. Sed nunc risus, gravida at, rhoncus id, tempus eu, nulla. Phasellus est lacus, commodo sed, tincidunt pulvinar, facilisis vel, nisi. Vivamus dapibus. Nulla enim. Donec porta convallis dolor. Proin non mauris. Etiam lorum urna, vestibulum et, aliquam vitae, suscipit nec, tellus. Etiam sodales diam eget neque tempus porta. In ultrices dolor.

footer

See also


Personal tools
projects