Sjabloon:Tq

Uit informatiestandaarden
Versie door Ahenket (overleg | bijdragen) op 17 jul 2013 om 11:35 (Nieuwe pagina aangemaakt met '{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{FormattingError|Template:Tq is only for quoting in talk and project pages. Do not use it in actual articles.}}|<!-- --><span <!-- -...')
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)
Naar navigatie springen Naar zoeken springen

Example text

[bewerken] [purge] Template documentation

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