Template:Question

explain xkcd: It's 'cause you're dumb.
Jump to navigation Jump to search

This template is used for inserting the question and reader's name in the second column of the what if? articles index. See also {{Article}} and {{what if}}.

Usage[edit]

{{Question|question text|reader's name}} The first parameter is the question itself, shown in italics and enclosed in quotation marks. The second parameter is the reader's name, shown right-aligned on the line below, preceded by an em dash, and also used to set an anchor id on that row (so it can be linked to directly, in the same way as {{what if}}).

If the reader's name is unknown or the question was not submitted by a named reader, add noreader=yes and omit the second parameter entirely: {{Question|question text|noreader=yes}} In this case, no reader line is shown at all.

Any other combination produces a visible error message instead of silently failing:

  • Giving a second parameter together with noreader=yes produces an error, since the two are contradictory.
  • Omitting the second parameter without noreader=yes produces an error, since a reader's name is expected by default.
  • Giving a third parameter at all produces an error, since the template only accepts two.

The template also creates an invisible anchor for both the question and the reader's name. Try jumping to #Questioner below, for example.

Examples[edit]

Valid Question with explicitly noreader

  • "Question"

Valid Question with Reader

  • "Question"
Questioner

Error of a Question with explicitly no reader, yet a Reader named

  • "Question"
Error! Parameter 2 cannot be given when noreader=yes

Error of a Question with a Reader and something else

  • "Question"
Error! This template only accepts two parameters

Error(?) of no Question and explicitly noreader

  • ""

Error(?) of no Question and yet a Reader option sneakily provided anyway

  • ""
whatever