Difference between revisions of "Template:QuoteList"
Jump to navigation
Jump to search
DewiMorgan (talk | contribs) (Problem fixed, removed from ToDo.) |
DewiMorgan (talk | contribs) m (→Example: typofixxins) |
||
(One intermediate revision by the same user not shown) | |||
Line 70: | Line 70: | ||
*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 | + | You should probably include at least the quoted text, 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). | 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=== | ||
− | <pre>{{QuoteList | + | <pre>{{QuoteList |
− | |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| |
}}</pre> | }}</pre> | ||
Latest revision as of 07:29, 15 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[edit]
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 text, 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[edit]
{{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| }}
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[edit]
- This is pretty horrible code.