No edit summary |
m (added FOD) |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly><!-- |
<onlyinclude><includeonly><!-- |
||
+ | -->{{#switch:{{lc:{{{mode|}}}}}<!-- |
||
− | -->{{Infobox |
||
+ | |||
− | |games ={{{games|}}} |
||
+ | -->|list=<!-- |
||
− | |title ={{{name|}}} |
||
+ | -->{{Overviewpagelist/aux<!-- |
||
− | |subtitle ={{{subtitle|}}} |
||
+ | -->|abbmode={{{abbmode|}}}<!-- |
||
− | |supertitle =weapon |
||
+ | -->|check for={{{check for|}}}<!-- |
||
− | |supertitle link =weapons |
||
+ | -->|games=WL1,FOD,WL2<!-- |
||
− | |icon ={{{icon|}}} |
||
⚫ | |||
− | |icon offset ={{{icon offset|}}} |
||
+ | |||
− | |main image1 ={{{image|}}} |
||
+ | -->|#default=<!-- |
||
− | |main image1 size ={{{image size|}}} |
||
+ | -->{{Navbox<!-- |
||
− | |main image2 ={{{image2|}}} |
||
+ | -->|options =columns, wraplinks<!-- |
||
− | |main image2 size ={{{image2 size|}}} |
||
− | | |
+ | -->|title =Overviews per game<!-- |
+ | -->|position =right<!-- |
||
− | |main image3 size ={{{image3 size|}}} |
||
− | | |
+ | -->|width =250px<!-- |
+ | -->|contentA1 =<!-- |
||
− | |main image4 size ={{{image4 size|}}} |
||
+ | -->{{#if:{{{image|}}}|[[File:{{{image}}}|200x100px|center]]}}<!-- |
||
− | |main image5 ={{{image5|}}} |
||
+ | -->{{Overviewpagelist/aux<!-- |
||
− | |main image5 size ={{{image5 size|}}} |
||
− | + | -->|abbmode={{{abbmode|}}}<!-- |
|
+ | -->|check for={{{check for|}}}<!-- |
||
− | |size main images =x200px |
||
+ | -->|games=WL1,FOD,WL2<!-- |
||
− | |label1-1 =skill |
||
+ | -->}}<!-- |
||
− | |content1-2 ={{{skill|}}} |
||
+ | -->}}<!-- |
||
− | |label2-1 =damage |
||
+ | |||
− | |content2-2 ={{{damage|}}} |
||
+ | -->}}<!-- |
||
− | |label3-1 =distance |
||
− | |content3-2 ={{{distance|}}} |
||
− | |label4-1 =ammo |
||
− | |content4-2 ={{{ammo|}}} |
||
− | |label5-1 =value |
||
− | |content5-2 ={{{value|}}} |
||
⚫ | |||
--></includeonly></onlyinclude> |
--></includeonly></onlyinclude> |
||
− | {{ |
+ | {{Documentation}} |
− | [[Category: |
+ | [[Category:List templates]] |
+ | [[Category:Navigation templates]] |
Revision as of 19:22, 20 March 2012
Template which generates a list of overview pages. Uses a parameter as a base and detects whether game-specific pages of the same name in plural exist and generates a list for the existing ones.
Usage
Simply put the following where you want the list to appear:
{{Overviewpagelist|check for=name of pages to check for}}
Parameters
By default, the template assumes that the page names to look are like the name of the current page with an "s" appended and a game name in front. If the page name already ends with an "s", no further "s" is appended. This parameter allows you to specify page names to look for directly and circumvent this default behaviour.
Formatting of the page list.
Available options:
- default: Produces a right-floated navbox.
- list: Produces a plain unnumbered list.
If mode
is set to "default", this parameter allows an image to be shown above the list of pages. Enter the file name without "File:".
Examples
{{Overviewpagelist|check for=items}}
List
{{Overviewpagelist|mode=list|check for=items}}
results in:
Technical
Limitations
This template uses the parser function #ifexist:
which is considered an "expensive parser function", only a limited number of which can be included on any one page (including functions inside transcluded templates). When this limit is exceeded, any further #ifexist:
functions automatically return false, whether the target page exists or not.
As such, this template should not be expanded to check for more than 95 games. 99 is the default value for expensive parser functions per page; this template uses 1 ifexist call per game, making the theoretical maximum of games 99. A little "buffer" should be given, hence 95 games maximum.
Despite of the somewhat generous limit, the template should only be used to check for common or "main" games at the wiki. If an overview page for a certain game does not exist, the template produces a redlink to said page which shows up on Special:WantedPages. Using the template to check for "fringe" games will hence result in a lot of redlinks.
Games the template checks for
Auxiliary templates
{{Abblink}}
{{Navbox}}
{{Overviewpagelist/aux}}