Difference between revisions of "Template:QuoteList"

From UnderWiki
Jump to navigation Jump to search
(Lines 3, 4)
(debug)
Line 1: Line 1:
 
<includeonly><div style="float:left">Quotes:&nbsp;</div><div class="mw-collapsible  mw-collapsed" style="float:left">
 
<includeonly><div style="float:left">Quotes:&nbsp;</div><div class="mw-collapsible  mw-collapsed" style="float:left">
 
:{{#if:{{{2|}}}|{{{2|}}}: |}}<b>{{{3|}}}</b>
 
:{{#if:{{{2|}}}|{{{2|}}}: |}}<b>{{{3|}}}</b>
:{{#if:{{{4|}}}| – {{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}}| }} {{#if:{{{1|}}}| – {{{1|}}} | }} {{#if:{{{5|}}}| ({{{5|}}}) | }}
+
:{{#if:{{{4|}}}| – {{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}}|}} {{#if:{{{1|}}}| – {{{1|}}} |}}
 
{{#if:{{{6|}}}|
 
{{#if:{{{6|}}}|
 
:{{#if:{{{7|}}}|{{{7|}}}: |}}<b>{{{8|}}}</b>
 
:{{#if:{{{7|}}}|{{{7|}}}: |}}<b>{{{8|}}}</b>
:{{#if:{{{9|}}}| – {{#ifexist:{{{9|}}}|[[{{{9|}}}]]|{{{9|}}}}}| }} {{#if:{{{6|}}}| – {{{6|}}} | }} {{#if:{{{10|}}}| ({{{10|}}}) | }}
+
:{{#if:{{{9|}}}| – {{#ifexist:{{{9|}}}|[[{{{9|}}}]]|{{{9|}}}}}|}} {{#if:{{{6|}}}| – {{{6|}}} |}}
 
|}}
 
|}}
 
:{{#if:{{{12|}}}|{{{12|}}}: |}}<b>{{{13|}}}</b>
 
:{{#if:{{{12|}}}|{{{12|}}}: |}}<b>{{{13|}}}</b>
:{{#if:{{{14|}}}| – {{#ifexist:{{{14|}}}|[[{{{14|}}}]]|{{{14|}}}}}| }} {{#if:{{{11|}}}| – {{{11|}}} | }} {{#if:{{{15|}}}| ({{{15|}}}) | }}
+
:{{#if:{{{14|}}}| – {{#ifexist:{{{14|}}}|[[{{{14|}}}]]|{{{14|}}}}}|}} {{#if:{{{11|}}}| – {{{11|}}} |}}
 
{{#if:{{{16|}}}|
 
{{#if:{{{16|}}}|
 
:{{#if:{{{17|}}}|{{{17|}}}: |}}<b>{{{18|}}}</b>
 
:{{#if:{{{17|}}}|{{{17|}}}: |}}<b>{{{18|}}}</b>
:{{#if:{{{19|}}}| – {{#ifexist:{{{19|}}}|[[{{{19|}}}]]|{{{19|}}}}}| }} {{#if:{{{16|}}}| – {{{16|}}} | }} {{#if:{{{20|}}}| ({{{20|}}}) | }}
+
:{{#if:{{{19|}}}| – {{#ifexist:{{{19|}}}|[[{{{19|}}}]]|{{{19|}}}}}|}} {{#if:{{{16|}}}| – {{{16|}}} |}}
 
|}}
 
|}}
  

Revision as of 22:35, 14 January 2019

banana

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> }}