Template:User WP/based/examples/doc

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 edit

First unnamed parameter edit

Name of the WP-based userbox (e.g. User WP Politics).

Second unnamed parameter options edit

  • none, to display basic examples only;
  • list, to display examples with the namesake parameter too;
  • break, to display examples with the namesake parameter too;
  • all, to display all examples;
  • table, to display all examples in a table;
  • usbk, to display all examples in a longer Usbk series of templates;
  • yy, to display all examples in a longer Yy series of templates.

Layout edit

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:Results in:
{{User WP Politics}}
{{User WP Politics|left}}
{{User WP Politics|left|list}}
{{User WP Politics|center}}
{{User WP Politics|center|list}}
{{User WP Politics|center|break}}

Code: {{usbktop}} {{User WP/subex|User WP Politics|usbk}} {{usbkbottom}}

Results in:

Code Result
{{Template:User WP Politics}} Usage
{{Template:User WP Politics|left}} Usage
{{Template:User WP Politics|left|list}} Usage
{{Template:User WP Politics|center}} Usage
{{Template:User WP Politics|center|list}} Usage
{{Template:User WP Politics|center|break}} Usage

Code: {{yytop}} {{User WP/subex|User WP Politics|yy}} {{yybottom}}

Results in:

Wikitext userbox where used
{{User WP Politics}} linked pages
{{User WP Politics|left}} linked pages
{{User WP Politics|left|list}} linked pages
{{User WP Politics|center}} linked pages
{{User WP Politics|center|list}} linked pages
{{User WP Politics|center|break}} linked pages