Jump to content

Template:User WP/based/examples/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Est. 2021 (talk | contribs) at 18:35, 4 February 2022 (examples with Yy). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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.

Second unnamed parameter options

  • 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;
  • yy, 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: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: {{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