Difference between revisions of "Template:QuoteList"
DewiMorgan (talk | contribs) (stoopid cacheing!) |
DewiMorgan (talk | contribs) (debug) |
||
Line 1: | Line 1: | ||
<includeonly>Quotes: <div class="mw-collapsible mw-collapsed"> | <includeonly>Quotes: <div class="mw-collapsible mw-collapsed"> | ||
− | *{{#if:{{{2|}}}|{{{2|}}}: | + | *{{#if:{{{2|}}}|{{{2|}}}: |}}<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> | |
− | : | + | *:<i>{{#if:{{{9|}}}| – {{#ifexist:{{{9|}}}|[[{{{9|}}}]]|{{{9|}}}}}|}} {{#if:{{{6|}}}| – {{{6|}}} |}}</i> |
|}} | |}} | ||
− | + | *{{#if:{{{12|}}}|{{{12|}}}: |}}<b>{{{13|}}}</b> | |
− | : | + | *:<i>{{#if:{{{14|}}}| – {{#ifexist:{{{14|}}}|[[{{{14|}}}]]|{{{14|}}}}}|}} {{#if:{{{11|}}}| – {{{11|}}} |}}</i> |
{{#if:{{{16|}}}| | {{#if:{{{16|}}}| | ||
− | + | *{{#if:{{{17|}}}|{{{17|}}}: |}}<b>{{{18|}}}</b> | |
− | : | + | *:<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. | ||
− | + | 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) | | + | |Signage/spectre|Warning|specter warren ahead!|Graffiti (in-joke about Warren Spector)|<br> |
− | + | |Reference name||Quoted text|<br> | |
− | | Reference name | | Quoted | + | |MapRegion/gatetovaultofnyx||ENTRANCE TO VAULT OF NYX|<br> |
− | | MapRegion/gatetovaultofnyx || ENTRANCE TO VAULT OF NYX | | ||
− | |||
}}</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 | + | |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 | + | |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 | + | |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: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:
- 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
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