Difference between revisions of "Template:QuoteList"

From UnderWiki
Jump to navigation Jump to search
(This may be a bad way to solve the problem of me way overusing quotes, but...)
 
(Sadly the only way I know to debug a template is to repeatedly save it. Adding second line.)
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|}}}: |}}<span style="font-style: bold;">{{{3|}}}</span>
 
:{{#if:{{{2|}}}|{{{2|}}}: |}}<span style="font-style: bold;">{{{3|}}}</span>
:{{#if:{{{4|}}}| &endash; {{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}}| }} {{#if:{{{1|}}}| &endash; {{{1|}}} | }} {{#if:{{{5|}}}| ({{{5|}}}) | }}
+
:{{#if:{{{4|}}}| {{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}}| }} {{#if:{{{1|}}}| {{{1|}}} | }} {{#if:{{{5|}}}| ({{{5|}}}) | }}
- from ''{{#ifexist:{{{book}}}|[[{{{book}}}]]|{{{book}}}}}'' {{#if: {{{game|}}}|||(<span style="font-style: italic;">[[{{{game}}}]]</span>)}}
+
{{#if:{{{6|}}}|
 +
:{{#if:{{{7|}}}|{{{7|}}}: |}}<span style="font-style: bold;">{{{8|}}}</span>
 +
:{{#if:{{{9|}}}| – {{#ifexist:{{{9|}}}|[[{{{9|}}}]]|{{{9|}}}}}| }} {{#if:{{{6|}}}| – {{{6|}}} | }} {{#if:{{{10|}}}| ({{{10|}}}) | }}
 +
|}}
 
</div><div style="clear:both"></div></includeonly>
 
</div><div style="clear:both"></div></includeonly>
  

Revision as of 21:19, 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 five elements, in this order:

  • 1 the reference name;
  • 2 the title;
  • 3 the quoted text (REQUIRED!);
  • 4 the speaker;
  • 5 and any notes.

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

Example

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