Template:WPBannerMeta/istemplate/doc
< Template:WPBannerMeta | istemplate
Revision as of 09:34, 12 May 2010 by Cottrells (talk | contribs) (Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This {{tlx|WPBannerMeta}} subtemplate decides whether the banner instance is o…')
|
|
This is a documentation subpage for Template:WPBannerMeta/istemplate (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
This {{WPBannerMeta{{{2}}}{{{3}}}{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} subtemplate decides whether the banner instance is on the main templatepage, that is, whether the banner should display in its 'demo' version with all options demonstrated. It performs two checks
| Is the page the BANNER_NAME or subpage? | |||||
|---|---|---|---|---|---|
| No | Yes | No | Yes | ||
| and | and not | ||||
| Is category=no set? | No | yes | yes | ||
| Yes | |||||
- Is the pagename the
|BANNER_NAME=, or is the page a subpage of that page? - Is the
|category=noparameter set?
And then combines them together either with "and" (default) or another logical operator, eg "or"; this can be specified in the first unnamed parameter.