Template:Madlibs/doc

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

For Mad Libs type content. Spits out a random word.

Because Scribunto runs at parse time and is cached, this template cannot randomize content on every page reload (unlike <choose uncached>). The output only changes when the page is re-parsed (e.g., after a cache purge). There are no plans to rework the current Mad Libs templates to use Module:Madlibs, since (because of the aforementioned inability to randomize when reloading) it would break a lot of expected behavior, although <choose uncached> only ever really randomized content on page reloading for logged-in users. IP's are stuck with cached pages, and that garish notice banner.

Usage

{{Madlibs|pagename|1}}

Parameter {{{1}}}

The {{{1}}} parameter specifies a pagename, which must correspond to a module subpage of "Module:Madlibs/data", as in "Module:Madlibs/data/verb". Accepted shorthands for pagenames are found in Module:Madlibs/config.

Parameter {{{2}}}

The {{{2}}} parameter accepts a number used to reseed each module invocation, so that multiple calls (if using a different number to reseed) will give you a different word.

Markup Output
{{madlibs|inf}}, {{madlibs|inf}}, {{madlibs|inf}} to extrude, to extrude, to extrude
{{madlibs|inf}}, {{madlibs|inf|1}}, {{madlibs|inf|2}}. to extrude, to deport, to orate.

Example

The {{madlibs|adj}} {{madlibs|noun}} {{madlibs|verb past}} on Bob's dad, crushing his {{madlibs|body part}}, which made his friends want {{madlibs|inf}} with a {{madlibs|gerund}} {{madlibs|animal}}.

Jim wanted {{madlibs|inf|1}} an {{madlibs|noun vowel}} with a {{madlibs|demonym}} {{madlibs|noun consonant}}, but the {{madlibs|noun plural}} {{madlibs|verb past|1}} his {{madlibs|noun|1}} and {{madlibs|verb past|2}} with his wife in {{madlibs|country}}.

{{Clickable button|url={{fullurl:{{FULLPAGENAMEE}}|action=purge}}|Randomize}}

The hopeless fork froze on Bob's dad, crushing his head, which made his friends want to extrude with a imploding hog.

Jim wanted to deport an asparagus with a Swede grue, but the giraffes deleted his cow and nattered with his wife in Finland.

Randomize

All data subpages

This module takes words from these data page. You can edit them to add or remove words.