Difference between revisions of "Template:QuoteList"
Jump to navigation
Jump to search
DewiMorgan (talk | contribs) (fix float... I don't like this fix.) |
DewiMorgan (talk | contribs) m (→Example: typofixxins) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
*{{#if:{{{7|}}}|{{{7|}}}: |}}<b>{{{8|}}}</b> | *{{#if:{{{7|}}}|{{{7|}}}: |}}<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:{{{13|}}}| | ||
*{{#if:{{{12|}}}|{{{12|}}}: |}}<b>{{{13|}}}</b> | *{{#if:{{{12|}}}|{{{12|}}}: |}}<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:{{{18|}}}| |
− | {{#if:{{{18|}}}| | ||
*{{#if:{{{17|}}}|{{{17|}}}: |}}<b>{{{18|}}}</b> | *{{#if:{{{17|}}}|{{{17|}}}: |}}<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> | ||
− | |}} | + | |}}{{#if:{{{23|}}}| |
− | {{#if:{{{23|}}}| | ||
*{{#if:{{{22|}}}|{{{22|}}}: |}}<b>{{{23|}}}</b> | *{{#if:{{{22|}}}|{{{22|}}}: |}}<b>{{{23|}}}</b> | ||
::<i>{{#if:{{{24|}}}| – {{#ifexist:{{{24|}}}|[[{{{24|}}}]]|{{{24|}}}}}|}} {{#if:{{{21|}}}| – {{{21|}}} |}}</i> | ::<i>{{#if:{{{24|}}}| – {{#ifexist:{{{24|}}}|[[{{{24|}}}]]|{{{24|}}}}}|}} {{#if:{{{21|}}}| – {{{21|}}} |}}</i> | ||
− | |}} | + | |}}{{#if:{{{28|}}}| |
− | {{#if:{{{28|}}}| | ||
*{{#if:{{{27|}}}|{{{27|}}}: |}}<b>{{{28|}}}</b> | *{{#if:{{{27|}}}|{{{27|}}}: |}}<b>{{{28|}}}</b> | ||
::<i>{{#if:{{{29|}}}| – {{#ifexist:{{{29|}}}|[[{{{29|}}}]]|{{{29|}}}}}|}} {{#if:{{{26|}}}| – {{{26|}}} |}}</i> | ::<i>{{#if:{{{29|}}}| – {{#ifexist:{{{29|}}}|[[{{{29|}}}]]|{{{29|}}}}}|}} {{#if:{{{26|}}}| – {{{26|}}} |}}</i> | ||
− | |}} | + | |}}{{#if:{{{33|}}}| |
− | {{#if:{{{33|}}}| | ||
*{{#if:{{{32|}}}|{{{32|}}}: |}}<b>{{{33|}}}</b> | *{{#if:{{{32|}}}|{{{32|}}}: |}}<b>{{{33|}}}</b> | ||
::<i>{{#if:{{{34|}}}| – {{#ifexist:{{{34|}}}|[[{{{34|}}}]]|{{{34|}}}}}|}} {{#if:{{{31|}}}| – {{{31|}}} |}}</i> | ::<i>{{#if:{{{34|}}}| – {{#ifexist:{{{34|}}}|[[{{{34|}}}]]|{{{34|}}}}}|}} {{#if:{{{31|}}}| – {{{31|}}} |}}</i> | ||
− | |}} | + | |}}{{#if:{{{38|}}}| |
− | {{#if:{{{38|}}}| | ||
*{{#if:{{{37|}}}|{{{37|}}}: |}}<b>{{{38|}}}</b> | *{{#if:{{{37|}}}|{{{37|}}}: |}}<b>{{{38|}}}</b> | ||
::<i>{{#if:{{{39|}}}| – {{#ifexist:{{{39|}}}|[[{{{39|}}}]]|{{{39|}}}}}|}} {{#if:{{{36|}}}| – {{{36|}}} |}}</i> | ::<i>{{#if:{{{39|}}}| – {{#ifexist:{{{39|}}}|[[{{{39|}}}]]|{{{39|}}}}}|}} {{#if:{{{36|}}}| – {{{36|}}} |}}</i> | ||
− | |}} | + | |}}{{#if:{{{43|}}}| |
− | {{#if:{{{43|}}}| | ||
*{{#if:{{{42|}}}|{{{42|}}}: |}}<b>{{{43|}}}</b> | *{{#if:{{{42|}}}|{{{42|}}}: |}}<b>{{{43|}}}</b> | ||
::<i>{{#if:{{{44|}}}| – {{#ifexist:{{{44|}}}|[[{{{44|}}}]]|{{{44|}}}}}|}} {{#if:{{{41|}}}| – {{{41|}}} |}}</i> | ::<i>{{#if:{{{44|}}}| – {{#ifexist:{{{44|}}}|[[{{{44|}}}]]|{{{44|}}}}}|}} {{#if:{{{41|}}}| – {{{41|}}} |}}</i> | ||
− | |}} | + | |}}{{#if:{{{48|}}}| |
− | {{#if:{{{48|}}}| | ||
*{{#if:{{{47|}}}|{{{47|}}}: |}}<b>{{{48|}}}</b> | *{{#if:{{{47|}}}|{{{47|}}}: |}}<b>{{{48|}}}</b> | ||
::<i>{{#if:{{{49|}}}| – {{#ifexist:{{{49|}}}|[[{{{49|}}}]]|{{{49|}}}}}|}} {{#if:{{{46|}}}| – {{{46|}}} |}}</i> | ::<i>{{#if:{{{49|}}}| – {{#ifexist:{{{49|}}}|[[{{{49|}}}]]|{{{49|}}}}}|}} {{#if:{{{46|}}}| – {{{46|}}} |}}</i> | ||
− | |}} | + | |}}{{#if:{{{53|}}}| |
− | {{#if:{{{53|}}}| | ||
*{{#if:{{{52|}}}|{{{52|}}}: |}}<b>{{{53|}}}</b> | *{{#if:{{{52|}}}|{{{52|}}}: |}}<b>{{{53|}}}</b> | ||
::<i>{{#if:{{{54|}}}| – {{#ifexist:{{{54|}}}|[[{{{54|}}}]]|{{{54|}}}}}|}} {{#if:{{{51|}}}| – {{{51|}}} |}}</i> | ::<i>{{#if:{{{54|}}}| – {{#ifexist:{{{54|}}}|[[{{{54|}}}]]|{{{54|}}}}}|}} {{#if:{{{51|}}}| – {{{51|}}} |}}</i> | ||
− | |}} | + | |}}{{#if:{{{58|}}}| |
− | {{#if:{{{58|}}}| | ||
*{{#if:{{{57|}}}|{{{57|}}}: |}}<b>{{{58|}}}</b> | *{{#if:{{{57|}}}|{{{57|}}}: |}}<b>{{{58|}}}</b> | ||
::<i>{{#if:{{{59|}}}| – {{#ifexist:{{{59|}}}|[[{{{59|}}}]]|{{{59|}}}}}|}} {{#if:{{{56|}}}| – {{{56|}}} |}}</i> | ::<i>{{#if:{{{59|}}}| – {{#ifexist:{{{59|}}}|[[{{{59|}}}]]|{{{59|}}}}}|}} {{#if:{{{56|}}}| – {{{56|}}} |}}</i> | ||
− | |}} | + | |}}{{#if:{{{63|}}}| |
− | {{#if:{{{63|}}}| | ||
*{{#if:{{{62|}}}|{{{62|}}}: |}}<b>{{{63|}}}</b> | *{{#if:{{{62|}}}|{{{62|}}}: |}}<b>{{{63|}}}</b> | ||
::<i>{{#if:{{{64|}}}| – {{#ifexist:{{{64|}}}|[[{{{64|}}}]]|{{{64|}}}}}|}} {{#if:{{{61|}}}| – {{{61|}}} |}}</i> | ::<i>{{#if:{{{64|}}}| – {{#ifexist:{{{64|}}}|[[{{{64|}}}]]|{{{64|}}}}}|}} {{#if:{{{61|}}}| – {{{61|}}} |}}</i> | ||
− | |}} | + | |}}{{#if:{{{68|}}}| |
− | {{#if:{{{68|}}}| | ||
*{{#if:{{{67|}}}|{{{67|}}}: |}}<b>{{{68|}}}</b> | *{{#if:{{{67|}}}|{{{67|}}}: |}}<b>{{{68|}}}</b> | ||
::<i>{{#if:{{{69|}}}| – {{#ifexist:{{{69|}}}|[[{{{69|}}}]]|{{{69|}}}}}|}} {{#if:{{{66|}}}| – {{{66|}}} |}}</i> | ::<i>{{#if:{{{69|}}}| – {{#ifexist:{{{69|}}}|[[{{{69|}}}]]|{{{69|}}}}}|}} {{#if:{{{66|}}}| – {{{66|}}} |}}</i> | ||
− | |}} | + | |}}{{#if:{{{73|}}}| |
− | {{#if:{{{73|}}}| | ||
*{{#if:{{{72|}}}|{{{72|}}}: |}}<b>{{{73|}}}</b> | *{{#if:{{{72|}}}|{{{72|}}}: |}}<b>{{{73|}}}</b> | ||
::<i>{{#if:{{{74|}}}| – {{#ifexist:{{{74|}}}|[[{{{74|}}}]]|{{{74|}}}}}|}} {{#if:{{{71|}}}| – {{{71|}}} |}}</i> | ::<i>{{#if:{{{74|}}}| – {{#ifexist:{{{74|}}}|[[{{{74|}}}]]|{{{74|}}}}}|}} {{#if:{{{71|}}}| – {{{71|}}} |}}</i> | ||
− | |}} | + | |}}{{#if:{{{78|}}}| |
− | {{#if:{{{78|}}}| | ||
*{{#if:{{{77|}}}|{{{77|}}}: |}}<b>{{{78|}}}</b> | *{{#if:{{{77|}}}|{{{77|}}}: |}}<b>{{{78|}}}</b> | ||
::<i>{{#if:{{{79|}}}| – {{#ifexist:{{{79|}}}|[[{{{79|}}}]]|{{{79|}}}}}|}} {{#if:{{{76|}}}| – {{{76|}}} |}}</i> | ::<i>{{#if:{{{79|}}}| – {{#ifexist:{{{79|}}}|[[{{{79|}}}]]|{{{79|}}}}}|}} {{#if:{{{76|}}}| – {{{76|}}} |}}</i> | ||
− | |}} | + | |}}{{#if:{{{83|}}}| |
− | {{#if:{{{83|}}}| | ||
*{{#if:{{{82|}}}|{{{82|}}}: |}}<b>{{{83|}}}</b> | *{{#if:{{{82|}}}|{{{82|}}}: |}}<b>{{{83|}}}</b> | ||
::<i>{{#if:{{{84|}}}| – {{#ifexist:{{{84|}}}|[[{{{84|}}}]]|{{{84|}}}}}|}} {{#if:{{{81|}}}| – {{{81|}}} |}}</i> | ::<i>{{#if:{{{84|}}}| – {{#ifexist:{{{84|}}}|[[{{{84|}}}]]|{{{84|}}}}}|}} {{#if:{{{81|}}}| – {{{81|}}} |}}</i> | ||
− | |}} | + | |}}{{#if:{{{88|}}}| |
− | {{#if:{{{88|}}}| | ||
*{{#if:{{{87|}}}|{{{87|}}}: |}}<b>{{{88|}}}</b> | *{{#if:{{{87|}}}|{{{87|}}}: |}}<b>{{{88|}}}</b> | ||
::<i>{{#if:{{{89|}}}| – {{#ifexist:{{{89|}}}|[[{{{89|}}}]]|{{{89|}}}}}|}} {{#if:{{{86|}}}| – {{{86|}}} |}}</i> | ::<i>{{#if:{{{89|}}}| – {{#ifexist:{{{89|}}}|[[{{{89|}}}]]|{{{89|}}}}}|}} {{#if:{{{86|}}}| – {{{86|}}} |}}</i> | ||
− | |}} | + | |}}{{#if:{{{93|}}}| |
− | {{#if:{{{93|}}}| | ||
*{{#if:{{{92|}}}|{{{92|}}}: |}}<b>{{{93|}}}</b> | *{{#if:{{{92|}}}|{{{92|}}}: |}}<b>{{{93|}}}</b> | ||
::<i>{{#if:{{{94|}}}| – {{#ifexist:{{{94|}}}|[[{{{94|}}}]]|{{{94|}}}}}|}} {{#if:{{{91|}}}| – {{{91|}}} |}}</i> | ::<i>{{#if:{{{94|}}}| – {{#ifexist:{{{94|}}}|[[{{{94|}}}]]|{{{94|}}}}}|}} {{#if:{{{91|}}}| – {{{91|}}} |}}</i> | ||
− | |}} | + | |}}{{#if:{{{98|}}}| |
− | {{#if:{{{98|}}}| | ||
*{{#if:{{{97|}}}|{{{97|}}}: |}}<b>{{{98|}}}</b> | *{{#if:{{{97|}}}|{{{97|}}}: |}}<b>{{{98|}}}</b> | ||
::<i>{{#if:{{{99|}}}| – {{#ifexist:{{{99|}}}|[[{{{99|}}}]]|{{{99|}}}}}|}} {{#if:{{{96|}}}| – {{{96|}}} |}}</i> | ::<i>{{#if:{{{99|}}}| – {{#ifexist:{{{99|}}}|[[{{{99|}}}]]|{{{99|}}}}}|}} {{#if:{{{96|}}}| – {{{96|}}} |}}</i> | ||
Line 88: | 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> | ||
Line 109: | Line 91: | ||
==ToDo== | ==ToDo== | ||
− | This is pretty horrible code. | + | *This is pretty horrible code. |
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |
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.