Template:Madlibs
| This template uses Lua: |
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 absorb, to absorb, to absorb |
{{madlibs|inf}}, {{madlibs|inf|1}}, {{madlibs|inf|2}}.
|
to absorb, to suffocate, to dehydrate. |
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 ambiguous air conditioner ablated on Bob's dad, crushing his Achilles' tendon, which made his friends want to absorb with a amazing ant.
Jim wanted to suffocate an able-bodied spiderman gimp train with a Danish band, but the air conditioners suppressed his street sign and deadened with his wife in Algeria.
All data subpages
This module takes words from these data page. You can edit them to add or remove words.
- Madlibs/data/adjective
- Madlibs/data/adverb
- Madlibs/data/animal
- Madlibs/data/body part
- Madlibs/data/body parts
- Madlibs/data/conflict
- Madlibs/data/country
- Madlibs/data/demonym
- Madlibs/data/food
- Madlibs/data/killed
- Madlibs/data/language
- Madlibs/data/latin
- Madlibs/data/nationality
- Madlibs/data/noun
- Madlibs/data/noun consonants
- Madlibs/data/noun plural
- Madlibs/data/noun vowels
- Madlibs/data/orientation
- Madlibs/data/place
- Madlibs/data/relative
- Madlibs/data/religion
- Madlibs/data/test
- Madlibs/data/verb
- Madlibs/data/verb infinitive
- Madlibs/data/verb ing
- Madlibs/data/verb modal
- Madlibs/data/verb past
- Madlibs/data/verb past participle
- Madlibs/data/verb plural