Difference between revisions of "Template:QuoteList"

From UnderWiki
Jump to navigation Jump to search
(Of course, I can debug it by calling it from its own noinclude section and previewing it. Hrm, except, not always.)
(stoopid cacheing!)
Line 1: Line 1:
 
<includeonly>Quotes: <div class="mw-collapsible  mw-collapsed">
 
<includeonly>Quotes: <div class="mw-collapsible  mw-collapsed">
*{{#if:{{{2|}}}|{{{2|}}}: |}}<b>{{{3|}}}</b>
+
*{{#if:{{{2|}}}|{{{2|}}}:&nbsp;xyzzy|}}<b>{{{3|}}}</b>
 
*: {{#if:{{{4|}}}| – {{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}}|}} {{#if:{{{1|}}}| – {{{1|}}} |}}
 
*: {{#if:{{{4|}}}| – {{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}}|}} {{#if:{{{1|}}}| – {{{1|}}} |}}
 
{{#if:{{{6|}}}|
 
{{#if:{{{6|}}}|

Revision as of 23:02, 14 January 2019


The purpose of this template is to provide a collapsible block of up to (at the time of writing) 20 quotes. This is a lot cheaper than calling Quote twenty times, so prevents pages complaining about "too many expensive parser calls".

Usage

Each line has four elements, in this order:

  • 1 the variable reference name;
  • 2 the title;
  • 3 the quoted text (REQUIRED!);
  • 4 the speaker and/or any notes about the quote.

While most of these can be empty, the separators for all fields must be present.

Example

{{QuoteList<br> | Reference name | Title | Big ol' blob o' quoted texts | NPC who said that |<br> | Signage/spectre | Warning | specter warren ahead! | Graffiti (in-joke about Warren Spector) |<br> ...<br> | Reference name | | Quoted texts - likely the most common way this'll be used |<br> | MapRegion/gatetovaultofnyx || ENTRANCE TO VAULT OF NYX |<br> ...<br> }}

ToDo

This is pretty horrible.

Quotes:


Quotes:


Quotes: