Difference between revisions of "Template:QuoteList"
Jump to navigation
Jump to search
DewiMorgan (talk | contribs) (Sadly the only way I know to debug a template is to repeatedly save it. Adding second line.) |
DewiMorgan (talk | contribs) m (→Example: typofixxins) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div style="float:left">Quotes: </div><div class="mw-collapsible mw-collapsed" style="float:left"> | <includeonly><div style="float:left">Quotes: </div><div class="mw-collapsible mw-collapsed" style="float:left"> | ||
− | + | *{{#if:{{{2|}}}|{{{2|}}}: |}}<b>{{{3|}}}</b> | |
− | :{{#if:{{{4|}}}| – {{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}}| }} {{#if:{{{1|}}}| – {{{1|}}} | }} {{#if:{{{ | + | ::<i>{{#if:{{{4|}}}| – {{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}}|}} {{#if:{{{1|}}}| – {{{1|}}} |}}</i> |
− | {{#if:{{{6|}}}| | + | {{#if:{{{8|}}}| |
− | :{{#if:{{{ | + | *{{#if:{{{7|}}}|{{{7|}}}: |}}<b>{{{8|}}}</b> |
− | :{{#if:{{{ | + | ::<i>{{#if:{{{9|}}}| – {{#ifexist:{{{9|}}}|[[{{{9|}}}]]|{{{9|}}}}}|}} {{#if:{{{6|}}}| – {{{6|}}} |}}</i> |
+ | |}}{{#if:{{{13|}}}| | ||
+ | *{{#if:{{{12|}}}|{{{12|}}}: |}}<b>{{{13|}}}</b> | ||
+ | ::<i>{{#if:{{{14|}}}| – {{#ifexist:{{{14|}}}|[[{{{14|}}}]]|{{{14|}}}}}|}} {{#if:{{{11|}}}| – {{{11|}}} |}}</i> | ||
+ | |}}{{#if:{{{18|}}}| | ||
+ | *{{#if:{{{17|}}}|{{{17|}}}: |}}<b>{{{18|}}}</b> | ||
+ | ::<i>{{#if:{{{19|}}}| – {{#ifexist:{{{19|}}}|[[{{{19|}}}]]|{{{19|}}}}}|}} {{#if:{{{16|}}}| – {{{16|}}} |}}</i> | ||
+ | |}}{{#if:{{{23|}}}| | ||
+ | *{{#if:{{{22|}}}|{{{22|}}}: |}}<b>{{{23|}}}</b> | ||
+ | ::<i>{{#if:{{{24|}}}| – {{#ifexist:{{{24|}}}|[[{{{24|}}}]]|{{{24|}}}}}|}} {{#if:{{{21|}}}| – {{{21|}}} |}}</i> | ||
+ | |}}{{#if:{{{28|}}}| | ||
+ | *{{#if:{{{27|}}}|{{{27|}}}: |}}<b>{{{28|}}}</b> | ||
+ | ::<i>{{#if:{{{29|}}}| – {{#ifexist:{{{29|}}}|[[{{{29|}}}]]|{{{29|}}}}}|}} {{#if:{{{26|}}}| – {{{26|}}} |}}</i> | ||
+ | |}}{{#if:{{{33|}}}| | ||
+ | *{{#if:{{{32|}}}|{{{32|}}}: |}}<b>{{{33|}}}</b> | ||
+ | ::<i>{{#if:{{{34|}}}| – {{#ifexist:{{{34|}}}|[[{{{34|}}}]]|{{{34|}}}}}|}} {{#if:{{{31|}}}| – {{{31|}}} |}}</i> | ||
+ | |}}{{#if:{{{38|}}}| | ||
+ | *{{#if:{{{37|}}}|{{{37|}}}: |}}<b>{{{38|}}}</b> | ||
+ | ::<i>{{#if:{{{39|}}}| – {{#ifexist:{{{39|}}}|[[{{{39|}}}]]|{{{39|}}}}}|}} {{#if:{{{36|}}}| – {{{36|}}} |}}</i> | ||
+ | |}}{{#if:{{{43|}}}| | ||
+ | *{{#if:{{{42|}}}|{{{42|}}}: |}}<b>{{{43|}}}</b> | ||
+ | ::<i>{{#if:{{{44|}}}| – {{#ifexist:{{{44|}}}|[[{{{44|}}}]]|{{{44|}}}}}|}} {{#if:{{{41|}}}| – {{{41|}}} |}}</i> | ||
+ | |}}{{#if:{{{48|}}}| | ||
+ | *{{#if:{{{47|}}}|{{{47|}}}: |}}<b>{{{48|}}}</b> | ||
+ | ::<i>{{#if:{{{49|}}}| – {{#ifexist:{{{49|}}}|[[{{{49|}}}]]|{{{49|}}}}}|}} {{#if:{{{46|}}}| – {{{46|}}} |}}</i> | ||
+ | |}}{{#if:{{{53|}}}| | ||
+ | *{{#if:{{{52|}}}|{{{52|}}}: |}}<b>{{{53|}}}</b> | ||
+ | ::<i>{{#if:{{{54|}}}| – {{#ifexist:{{{54|}}}|[[{{{54|}}}]]|{{{54|}}}}}|}} {{#if:{{{51|}}}| – {{{51|}}} |}}</i> | ||
+ | |}}{{#if:{{{58|}}}| | ||
+ | *{{#if:{{{57|}}}|{{{57|}}}: |}}<b>{{{58|}}}</b> | ||
+ | ::<i>{{#if:{{{59|}}}| – {{#ifexist:{{{59|}}}|[[{{{59|}}}]]|{{{59|}}}}}|}} {{#if:{{{56|}}}| – {{{56|}}} |}}</i> | ||
+ | |}}{{#if:{{{63|}}}| | ||
+ | *{{#if:{{{62|}}}|{{{62|}}}: |}}<b>{{{63|}}}</b> | ||
+ | ::<i>{{#if:{{{64|}}}| – {{#ifexist:{{{64|}}}|[[{{{64|}}}]]|{{{64|}}}}}|}} {{#if:{{{61|}}}| – {{{61|}}} |}}</i> | ||
+ | |}}{{#if:{{{68|}}}| | ||
+ | *{{#if:{{{67|}}}|{{{67|}}}: |}}<b>{{{68|}}}</b> | ||
+ | ::<i>{{#if:{{{69|}}}| – {{#ifexist:{{{69|}}}|[[{{{69|}}}]]|{{{69|}}}}}|}} {{#if:{{{66|}}}| – {{{66|}}} |}}</i> | ||
+ | |}}{{#if:{{{73|}}}| | ||
+ | *{{#if:{{{72|}}}|{{{72|}}}: |}}<b>{{{73|}}}</b> | ||
+ | ::<i>{{#if:{{{74|}}}| – {{#ifexist:{{{74|}}}|[[{{{74|}}}]]|{{{74|}}}}}|}} {{#if:{{{71|}}}| – {{{71|}}} |}}</i> | ||
+ | |}}{{#if:{{{78|}}}| | ||
+ | *{{#if:{{{77|}}}|{{{77|}}}: |}}<b>{{{78|}}}</b> | ||
+ | ::<i>{{#if:{{{79|}}}| – {{#ifexist:{{{79|}}}|[[{{{79|}}}]]|{{{79|}}}}}|}} {{#if:{{{76|}}}| – {{{76|}}} |}}</i> | ||
+ | |}}{{#if:{{{83|}}}| | ||
+ | *{{#if:{{{82|}}}|{{{82|}}}: |}}<b>{{{83|}}}</b> | ||
+ | ::<i>{{#if:{{{84|}}}| – {{#ifexist:{{{84|}}}|[[{{{84|}}}]]|{{{84|}}}}}|}} {{#if:{{{81|}}}| – {{{81|}}} |}}</i> | ||
+ | |}}{{#if:{{{88|}}}| | ||
+ | *{{#if:{{{87|}}}|{{{87|}}}: |}}<b>{{{88|}}}</b> | ||
+ | ::<i>{{#if:{{{89|}}}| – {{#ifexist:{{{89|}}}|[[{{{89|}}}]]|{{{89|}}}}}|}} {{#if:{{{86|}}}| – {{{86|}}} |}}</i> | ||
+ | |}}{{#if:{{{93|}}}| | ||
+ | *{{#if:{{{92|}}}|{{{92|}}}: |}}<b>{{{93|}}}</b> | ||
+ | ::<i>{{#if:{{{94|}}}| – {{#ifexist:{{{94|}}}|[[{{{94|}}}]]|{{{94|}}}}}|}} {{#if:{{{91|}}}| – {{{91|}}} |}}</i> | ||
+ | |}}{{#if:{{{98|}}}| | ||
+ | *{{#if:{{{97|}}}|{{{97|}}}: |}}<b>{{{98|}}}</b> | ||
+ | ::<i>{{#if:{{{99|}}}| – {{#ifexist:{{{99|}}}|[[{{{99|}}}]]|{{{99|}}}}}|}} {{#if:{{{96|}}}| – {{{96|}}} |}}</i> | ||
|}} | |}} | ||
</div><div style="clear:both"></div></includeonly> | </div><div style="clear:both"></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 | + | Each line has four elements, with no surrounding whitespace, ''in this order'': |
− | *1 the 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 | + | *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=== | ===Example=== | ||
− | < | + | <pre>{{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| | |
− | || Reference name || || | + | |MapRegion/gatetovaultofnyx||ENTRANCE TO VAULT OF NYX| |
− | + | }}</pre> | |
− | + | ||
− | }} | + | 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== | ||
+ | *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.