Difference between revisions of "Template:QuoteList"

From UnderWiki
Jump to navigation Jump to search
(stoopid cacheing!)
(debug)
Line 1: Line 1:
 
<includeonly>Quotes: <div class="mw-collapsible  mw-collapsed">
 
<includeonly>Quotes: <div class="mw-collapsible  mw-collapsed">
*{{#if:{{{2|}}}|{{{2|}}}:&nbsp;xyzzy|}}<b>{{{3|}}}</b>
+
*{{#if:{{{2|}}}|{{{2|}}}:&nbsp;|}}<b>{{{3|}}}</b>
*: {{#if:{{{4|}}}| – {{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}}|}} {{#if:{{{1|}}}| – {{{1|}}} |}}
+
*:<i>{{#if:{{{4|}}}| – {{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}}|}} {{#if:{{{1|}}}| – {{{1|}}} |}}</i>
 
{{#if:{{{6|}}}|
 
{{#if:{{{6|}}}|
:{{#if:{{{7|}}}|{{{7|}}}: |}}<b>{{{8|}}}</b>
+
*{{#if:{{{7|}}}|{{{7|}}}:&nbsp;|}}<b>{{{8|}}}</b>
::{{#if:{{{9|}}}| – {{#ifexist:{{{9|}}}|[[{{{9|}}}]]|{{{9|}}}}}|}} {{#if:{{{6|}}}| – {{{6|}}} |}}
+
*:<i>{{#if:{{{9|}}}| – {{#ifexist:{{{9|}}}|[[{{{9|}}}]]|{{{9|}}}}}|}} {{#if:{{{6|}}}| – {{{6|}}} |}}</i>
 
|}}
 
|}}
:{{#if:{{{12|}}}|{{{12|}}}: |}}<b>{{{13|}}}</b>
+
*{{#if:{{{12|}}}|{{{12|}}}:&nbsp;|}}<b>{{{13|}}}</b>
::{{#if:{{{14|}}}| – {{#ifexist:{{{14|}}}|[[{{{14|}}}]]|{{{14|}}}}}|}} {{#if:{{{11|}}}| – {{{11|}}} |}}
+
*:<i>{{#if:{{{14|}}}| – {{#ifexist:{{{14|}}}|[[{{{14|}}}]]|{{{14|}}}}}|}} {{#if:{{{11|}}}| – {{{11|}}} |}}</i>
 
{{#if:{{{16|}}}|
 
{{#if:{{{16|}}}|
:{{#if:{{{17|}}}|{{{17|}}}: |}}<b>{{{18|}}}</b>
+
*{{#if:{{{17|}}}|{{{17|}}}:&nbsp;|}}<b>{{{18|}}}</b>
::{{#if:{{{19|}}}| – {{#ifexist:{{{19|}}}|[[{{{19|}}}]]|{{{19|}}}}}|}} {{#if:{{{16|}}}| – {{{16|}}} |}}
+
*:<i>{{#if:{{{19|}}}| – {{#ifexist:{{{19|}}}|[[{{{19|}}}]]|{{{19|}}}}}|}} {{#if:{{{16|}}}| – {{{16|}}} |}}</i>
 
|}}
 
|}}
 
</div></includeonly>
 
</div></includeonly>
Line 17: Line 17:
  
 
==Usage==
 
==Usage==
Each line has four elements, ''in this order'':  
+
Each line has four elements, with no surrounding whitespace, ''in this order'':  
 
*1 the variable reference name;
 
*1 the variable reference name;
 
*2 the title;
 
*2 the title;
 
*3 the quoted text (REQUIRED!);
 
*3 the quoted text (REQUIRED!);
 
*4 the speaker and/or any notes about the quote.
 
*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.
+
You should probably include at least the quoted test, and one other field.
 +
 
 +
The separators for all fields must be present, including the one at the end of the line (used to swallow the line break).
  
 
===Example===
 
===Example===
 
<nowiki>{{QuoteList<br>
 
<nowiki>{{QuoteList<br>
| Reference name | Title | Big ol' blob o' quoted texts | NPC who said that |<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>
+
|Signage/spectre|Warning|specter warren ahead!|Graffiti (in-joke about Warren Spector)|<br>
...<br>
+
|Reference name||Quoted text|<br>
| Reference name | | Quoted texts - likely the most common way this'll be used |<br>
+
|MapRegion/gatetovaultofnyx||ENTRANCE TO VAULT OF NYX|<br>
| MapRegion/gatetovaultofnyx || ENTRANCE TO VAULT OF NYX |<br>
 
...<br>
 
 
}}</nowiki>
 
}}</nowiki>
 +
 +
The above displays as:
 +
{{QuoteList
 +
|Reference name|Title|Big ol' blob o' quoted texts|NPC who said that|
 +
|Signage/spectre|Warning|specter warren ahead!|Graffiti (in-joke about Warren Spector)|
 +
|Reference name||Quoted text|
 +
|MapRegion/gatetovaultofnyx||ENTRANCE TO VAULT OF NYX|
 +
}}
  
 
==ToDo==
 
==ToDo==
This is pretty horrible.
+
This is pretty horrible. The expand tag floats right. Everything's unfriendly.
  
 
{{QuoteList
 
{{QuoteList
| 1SignageTitles/cultures1 | 2Note from Hig Harkens2 | 3HH THEORY #11: DIG DEEPLY ENOUGH HERE & YOU WILL FIND REPRESENTATIONS OF EVERY CULTURES' MYTHS OF THE UNDERWORLD3 | 4Hig Harkens4 | 5One of a series of graffiti he left around the place.5}}
+
|1SignageTitles/cultures1|2Note from Hig Harkens2|3HH THEORY #11: DIG DEEPLY ENOUGH HERE & YOU WILL FIND REPRESENTATIONS OF EVERY CULTURES' MYTHS OF THE UNDERWORLD3|4Hig Harkens4 (5One of a series of graffiti he left around the place.5)}}
  
 
{{QuoteList
 
{{QuoteList
| 1SignageTitles/cultures1 | 2Note from Hig Harkens2 | 3HH THEORY #11: DIG DEEPLY ENOUGH HERE & YOU WILL FIND REPRESENTATIONS OF EVERY CULTURES' MYTHS OF THE UNDERWORLD3 | 4Hig Harkens4 | 5One of a series of graffiti he left around the place.5|
+
|1SignageTitles/cultures1|2Note from Hig Harkens2|3HH THEORY #11: DIG DEEPLY ENOUGH HERE & YOU WILL FIND REPRESENTATIONS OF EVERY CULTURES' MYTHS OF THE UNDERWORLD3|4Hig Harkens4 (5One of a series of graffiti he left around the place.5)|
|6SignageTitles/cultures6|7Note from Hig Harkens7|8HH THEORY #11: DIG DEEPLY ENOUGH HERE & YOU WILL FIND REPRESENTATIONS OF EVERY CULTURES' MYTHS OF THE UNDERWORLD8|9Hig Harkens9|10One of a series of graffiti he left around the place.10}}
+
|6SignageTitles/cultures6|7Note from Hig Harkens7|8HH THEORY #11: DIG DEEPLY ENOUGH HERE & YOU WILL FIND REPRESENTATIONS OF EVERY CULTURES' MYTHS OF THE UNDERWORLD8|9Hig Harkens9 (10One of a series of graffiti he left around the place.10)}}
  
 
{{QuoteList
 
{{QuoteList

Revision as of 23:23, 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, with no surrounding whitespace, 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.

You should probably include at least the quoted test, and one other field.

The separators for all fields must be present, including the one at the end of the line (used to swallow the line break).

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> |Reference name||Quoted text|<br> |MapRegion/gatetovaultofnyx||ENTRANCE TO VAULT OF NYX|<br> }}

The above displays as:

Quotes:


ToDo

This is pretty horrible. The expand tag floats right. Everything's unfriendly.

Quotes:


Quotes:


Quotes: