Template:Aside

From blackwiki
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Usage

As wrapper

For use as a simple wrapper, use {{aside|Your text here}}, which generates:

<aside>Your text here</aside>

Note that this text currently is displayed as <aside>Your text here</aside> because Phabricator bug 104770 has not yet been resolved, so the tags are inactivated before the wikitext is passed to the user. After this is resolved, this template may have little if any visible impact on the text in many browsers. [1]

This functionality of the template occurs at Template:Aside/wrapper

As page summary

If the named page parameter is specified, there is a much more complex usage under development and is subject to change. This ignores unnamed parameters but depends on:

  • page: this is a talk page from which a brief digest is posted when this template is transcluded.
  • user: the talk page of whoever started the conversation. This is typically a user but potentially could be a forum such as the Village Pump or an admin board. Basically, the "user" is where you file your complaints.
  • position: left, right, or unspecified. A left or right value restricts the width to 250 pixels floating either left or right of the main page text, and makes the text smaller by default. Omitting this leaves the aside at full page width and normal text size by default.
  • comments: the number of recent comments to list at the end.
  • length: the number of characters to truncate each comment to.
  • scale: the text size displayed by the template. Overrides the effect of "position" above. Typically expressed as a percentage value, e.g. 85%.
  • order: omit this parameter to display the most recent comments at the bottom, regardless of placement on the page. Give it any value but "new" to simply display the last comments on the page at the bottom of the digest produced by this template.

Current output from {{aside|page=User talk:Wnt/asides/test#Can it handle a heading?|user=User talk:Wnt|position=right}} is at right.

Lua error in Module:Aside at line 49: error: failed to get text from User talk:Wnt/asides/test.
 V  D  E 

This portion of the template is handled by Template:Aside/talk page