This is a documentation subtemplate, displaying basic examples for WikiProject userboxes based on Template:User WP.
{{User WP/subex}}
is a shortcut to this page, {{User WP/based/examples}}
, and can be used in its place.
Parameters
First unnamed parameter
Name of the WP-based userbox (e.g. User WP Politics).
Second unnamed parameter options
- none, to display basic examples only;
- <syntaxhighlight lang="text" class="" style="" inline="1">list</syntaxhighlight>, to display examples with the namesake parameter too;
- <syntaxhighlight lang="text" class="" style="" inline="1">break</syntaxhighlight>, to display examples with the namesake parameter too;
- <syntaxhighlight lang="text" class="" style="" inline="1">all</syntaxhighlight>, to display all examples;
- <syntaxhighlight lang="text" class="" style="" inline="1">table</syntaxhighlight>, to display all examples in a table;
- <syntaxhighlight lang="text" class="" style="" inline="1">usbk</syntaxhighlight>, to display all examples in a longer Usbk series of templates;
- <syntaxhighlight lang="text" class="" style="" inline="1">yy</syntaxhighlight>, to display all examples in a longer Yy series of templates.
Layout
Code: {{User WP/subex|User WP Politics}}
Results in:
Code: {{User WP/subex|User WP Politics|list}}
Results in:
Code: {{User WP/subex|User WP Politics|break}}
Results in:
Code: {{User WP/subex|User WP Politics|all}}
Results in:
Code: {{User WP/subex|User WP Politics|table}}
Results in:
Code: {{usbktop}}
{{User WP/subex|User WP Politics|usbk}}
{{usbkbottom}}
Results in:
Code: {{yytop}}
{{User WP/subex|User WP Politics|yy}}
{{yybottom}}
Results in: