Sjabloon:Tq/doc: verschil tussen versies

Uit informatiestandaarden
Naar navigatie springen Naar zoeken springen
(Nieuwe pagina aangemaakt met '{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> == Usage == The template {{tlx|tq}} (for "talk quotation") can be used ...')
 
 
Regel 25: Regel 25:
  
 
== Style ==
 
== Style ==
The template applies a green color and also (because some users are color-blind) changes the font to serif (or, optionally, sans-serif in italics).  For users of screen readers with ''user CSS'' at the browser end, or WP users who simply like to [[Help:Cascading Style Sheets|customize the appearance of page elements]] by editing their [[Special:Mypage/skin.css]], the template applies CSS classes to the marked up content:
+
The template applies a green color and also (because some users are color-blind) changes the font to serif (or, optionally, sans-serif in italics).  For users of screen readers with ''user CSS'' at the browser end, or WP users who simply like to [[Wikipedia:Help:Cascading Style Sheets|customize the appearance of page elements]] by editing their [[Special:Mypage/skin.css]], the template applies CSS classes to the marked up content:
 
* <code>inline-quote-talk</code>&nbsp;&nbsp;by default
 
* <code>inline-quote-talk</code>&nbsp;&nbsp;by default
 
* <code>inline-quote-talk2</code>&nbsp;&nbsp;if the <kbd>i</kbd> option is given
 
* <code>inline-quote-talk2</code>&nbsp;&nbsp;if the <kbd>i</kbd> option is given

Huidige versie van 17 jul 2013 om 11:35

Usage

The template {{tq}} (for "talk quotation") can be used in talk page discussions to quote, in a visually and CSS-class distinct way, material quoted, e.g. from a guideline or from another editor's previous post. If the parameter i is given, the text will be rendered in italics; otherwise, it will appear in a serif font. It does not automatically add quotations marks (it is recommended that you do add them, but this cannot be automated, because the template cannot magically know whether you need double or single quotes in the context).

Default appearance:

When you say {{tq|"I'm not certain that source is entirely reliable"}}, I think I see what you mean now.
When you say "I'm not certain that source is entirely reliable", I think I see what you mean now.

In italics:

Shortcut:
When you say {{tq|i=y|"I'm not certain that source is entirely reliable"}}, I think I see what you mean now.
When you say "I'm not certain that source is entirely reliable", I think I see what you mean now.

Parameters

Unnamed (positional) parameters
{{tq|text}}
  • text unnamed parameter is the text that is quoted. It may appear before or after any named parameters.
Using named parameters
{{tq|i=y|title=Jimbo Wales|text}}
Explanation of named parameters
  • i: If set to any value, makes the text italic and sans-serif, instead of the default non-italic and serif, and adds a special CSS class (see below)
  • title: Add title HTML attribute to text. This "offers advisory information about the element"[1]. On most browsers the title appears as a pop-up "tooltip" when the cursor is hovered over the text. It is suggested that this parameter be used to name the party/source being quoted. This parameter cannot contain any wikimarkup, HTML or other formatting, only plain text.

Style

The template applies a green color and also (because some users are color-blind) changes the font to serif (or, optionally, sans-serif in italics). For users of screen readers with user CSS at the browser end, or WP users who simply like to customize the appearance of page elements by editing their Special:Mypage/skin.css, the template applies CSS classes to the marked up content:

  • inline-quote-talk  by default
  • inline-quote-talk2  if the i option is given

See also

  • {{Talkquote}} – for quoting other editors (or guidelines, etc.) on talk pages, in a block