Difference between revisions of "Template:Random page in category"
Rupert Havok (talk | contribs) (Created page with "<includeonly>{{Mod|(({{#time:U}}+({{{2|{{#time:z}}}}}))*({{{3|67}}})+({{NUMBEROFARTICLES:R}} mod ({{{3|67}}})))|{{{1|100}}}}}</includeonly><noinclude> This template creates a lin...") |
Rupert Havok (talk | contribs) |
||
Line 6: | Line 6: | ||
=== Examples === | === Examples === | ||
− | * {{Tl|Random page in category}} would produce on [[:Category: | + | * {{Tl|Random page in category}} would produce on [[:Category:Battles]]: [[Special:RandomInCategory/Battles|Random page in category Battles]] |
− | * {{Tl|Random page in category| | + | * {{Tl|Random page in category|Battles}} produces: {{Random page in category|Battles}} |
− | * {{Tl|Random page in category| | + | * {{Tl|Random page in category|Battles|text{{=}}Random page}} produces: {{Random page in category|Battles|text=Random page}} |
</noinclude> | </noinclude> | ||
[[Category:Templates]] | [[Category:Templates]] |
Revision as of 14:05, 28 May 2016
This template creates a link to random page from a Holocron category.
Usage
- First parameter is the category from which to get a random page. If it is not specified, it defaults to current page, which works only on category pages.
Examples
- {{Random page in category}} would produce on Category:Battles: Random page in category Battles
- {{Random page in category}} produces: Expression error: Unrecognized word "battles".
- {{Random page in category}} produces: Expression error: Unrecognized word "battles".