Difference between revisions of "Template:QuoteList"

From UnderWiki
Jump to navigation Jump to search
(debug)
(debug2)
Line 1: Line 1:
 
<includeonly>Quotes: <div class="mw-collapsible  mw-collapsed">
 
<includeonly>Quotes: <div class="mw-collapsible  mw-collapsed">
 
*{{#if:{{{2|}}}|{{{2|}}}:&nbsp;|}}<b>{{{3|}}}</b>
 
*{{#if:{{{2|}}}|{{{2|}}}:&nbsp;|}}<b>{{{3|}}}</b>
*:<i>{{#if:{{{4|}}}| – {{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}}|}} {{#if:{{{1|}}}| – {{{1|}}} |}}</i>
+
::<i>{{#if:{{{4|}}}| – {{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}}|}} {{#if:{{{1|}}}| – {{{1|}}} |}}</i>
{{#if:{{{6|}}}|
+
{{#if:{{{8|}}}|
 
*{{#if:{{{7|}}}|{{{7|}}}:&nbsp;|}}<b>{{{8|}}}</b>
 
*{{#if:{{{7|}}}|{{{7|}}}:&nbsp;|}}<b>{{{8|}}}</b>
*:<i>{{#if:{{{9|}}}| – {{#ifexist:{{{9|}}}|[[{{{9|}}}]]|{{{9|}}}}}|}} {{#if:{{{6|}}}| – {{{6|}}} |}}</i>
+
::<i>{{#if:{{{9|}}}| – {{#ifexist:{{{9|}}}|[[{{{9|}}}]]|{{{9|}}}}}|}} {{#if:{{{6|}}}| – {{{6|}}} |}}</i>
 
|}}
 
|}}
 +
{{#if:{{{13|}}}|
 
*{{#if:{{{12|}}}|{{{12|}}}:&nbsp;|}}<b>{{{13|}}}</b>
 
*{{#if:{{{12|}}}|{{{12|}}}:&nbsp;|}}<b>{{{13|}}}</b>
*:<i>{{#if:{{{14|}}}| – {{#ifexist:{{{14|}}}|[[{{{14|}}}]]|{{{14|}}}}}|}} {{#if:{{{11|}}}| – {{{11|}}} |}}</i>
+
::<i>{{#if:{{{14|}}}| – {{#ifexist:{{{14|}}}|[[{{{14|}}}]]|{{{14|}}}}}|}} {{#if:{{{11|}}}| – {{{11|}}} |}}</i>
{{#if:{{{16|}}}|
+
|}}
 +
{{#if:{{{18|}}}|
 
*{{#if:{{{17|}}}|{{{17|}}}:&nbsp;|}}<b>{{{18|}}}</b>
 
*{{#if:{{{17|}}}|{{{17|}}}:&nbsp;|}}<b>{{{18|}}}</b>
*:<i>{{#if:{{{19|}}}| – {{#ifexist:{{{19|}}}|[[{{{19|}}}]]|{{{19|}}}}}|}} {{#if:{{{16|}}}| – {{{16|}}} |}}</i>
+
::<i>{{#if:{{{19|}}}| – {{#ifexist:{{{19|}}}|[[{{{19|}}}]]|{{{19|}}}}}|}} {{#if:{{{16|}}}| – {{{16|}}} |}}</i>
 
|}}
 
|}}
 
</div></includeonly>
 
</div></includeonly>
 
<noinclude>
 
<noinclude>
 
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 [[Template::Quote]] twenty times, so prevents pages complaining about "too many expensive parser calls".
 
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 [[Template::Quote]] twenty times, so prevents pages complaining about "too many expensive parser calls".
 
+
3.0
 
==Usage==
 
==Usage==
 
Each line has four elements, with no surrounding whitespace, ''in this order'':  
 
Each line has four elements, with no surrounding whitespace, ''in this order'':  
Line 27: Line 29:
  
 
===Example===
 
===Example===
<nowiki>{{QuoteList<br>
+
<pre>{{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>
 
|Reference name||Quoted text|<br>
 
|Reference name||Quoted text|<br>
 
|MapRegion/gatetovaultofnyx||ENTRANCE TO VAULT OF NYX|<br>
 
|MapRegion/gatetovaultofnyx||ENTRANCE TO VAULT OF NYX|<br>
}}</nowiki>
+
}}</pre>
  
 
The above displays as:
 
The above displays as:
Line 38: Line 40:
 
|Reference name|Title|Big ol' blob o' quoted texts|NPC who said that|
 
|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)|
 
|Signage/spectre|Warning|specter warren ahead!|Graffiti (in-joke about Warren Spector)|
|Reference name||Quoted text|
+
|Reference name||Quoted text||
 
|MapRegion/gatetovaultofnyx||ENTRANCE TO VAULT OF NYX|
 
|MapRegion/gatetovaultofnyx||ENTRANCE TO VAULT OF NYX|
 
}}
 
}}
Line 46: Line 48:
  
 
{{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 22:31, 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". 3.0

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:

  • Title: Big ol' blob o' quoted texts
– NPC who said that – Reference name
  • Warning: specter warren ahead!
– Graffiti (in-joke about Warren Spector) – Signage/spectre
  • Quoted text
– Reference name
  • ENTRANCE TO VAULT OF NYX
– MapRegion/gatetovaultofnyx


ToDo

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

Quotes:

  • 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



Quotes:

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



Quotes:

  • Note From Hig Harkens: HH THEORY #2: DEEP SLUGS HAVE A RICH INNER LIFE
– Signage/deepslug
  • Note From Hig Harkens: HH THEORY #19: THE DEEP SLUGS ARE STRANGE REMNANTS OF A CURSED GOD
– Signage/slugs
  • The Underworld is a hard place to have a soft body. Even Deep Slugs, common fodder for Abyssal beasts, have a thick hide. Heed their example. Seek this stout body armor, Hide of Deep Slugs, and try it for a time. It awaits somewhere in THE UNDERSWAMP.
– QuestDescription/Swamp1_Gather_003
  • DEEP SLUGS dwell near the bottom of The Underworld's food chain. Yet the Dwarves of THE EXPEDITION value them for science rather than sustenance. They use Ripper Pome to lure slugs for study. Alas, supplies are limited in the Dwarves' exile. Recover the Ripper Pome in THE UNDERSWAMP.
– QuestDescription/Swamp1_Gather_008