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) (Lines 3, 4) |
||
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|}}}: |}}< | + | :{{#if:{{{2|}}}|{{{2|}}}: |}}<b>{{{3|}}}</b> |
:{{#if:{{{4|}}}| – {{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}}| }} {{#if:{{{1|}}}| – {{{1|}}} | }} {{#if:{{{5|}}}| ({{{5|}}}) | }} | :{{#if:{{{4|}}}| – {{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}}| }} {{#if:{{{1|}}}| – {{{1|}}} | }} {{#if:{{{5|}}}| ({{{5|}}}) | }} | ||
{{#if:{{{6|}}}| | {{#if:{{{6|}}}| | ||
− | :{{#if:{{{7|}}}|{{{7|}}}: |}}< | + | :{{#if:{{{7|}}}|{{{7|}}}: |}}<b>{{{8|}}}</b> |
:{{#if:{{{9|}}}| – {{#ifexist:{{{9|}}}|[[{{{9|}}}]]|{{{9|}}}}}| }} {{#if:{{{6|}}}| – {{{6|}}} | }} {{#if:{{{10|}}}| ({{{10|}}}) | }} | :{{#if:{{{9|}}}| – {{#ifexist:{{{9|}}}|[[{{{9|}}}]]|{{{9|}}}}}| }} {{#if:{{{6|}}}| – {{{6|}}} | }} {{#if:{{{10|}}}| ({{{10|}}}) | }} | ||
|}} | |}} | ||
+ | :{{#if:{{{12|}}}|{{{12|}}}: |}}<b>{{{13|}}}</b> | ||
+ | :{{#if:{{{14|}}}| – {{#ifexist:{{{14|}}}|[[{{{14|}}}]]|{{{14|}}}}}| }} {{#if:{{{11|}}}| – {{{11|}}} | }} {{#if:{{{15|}}}| ({{{15|}}}) | }} | ||
+ | {{#if:{{{16|}}}| | ||
+ | :{{#if:{{{17|}}}|{{{17|}}}: |}}<b>{{{18|}}}</b> | ||
+ | :{{#if:{{{19|}}}| – {{#ifexist:{{{19|}}}|[[{{{19|}}}]]|{{{19|}}}}}| }} {{#if:{{{16|}}}| – {{{16|}}} | }} {{#if:{{{20|}}}| ({{{20|}}}) | }} | ||
+ | |}} | ||
+ | |||
</div><div style="clear:both"></div></includeonly> | </div><div style="clear:both"></div></includeonly> | ||
− | + | banana | |
<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". | ||
==Usage== | ==Usage== | ||
− | Each line has | + | Each line has four elements, ''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. |
− | |||
While most of these can be empty, the separators for all fields must be present. | While most of these can be empty, the separators for all fields must be present. | ||
===Example=== | ===Example=== | ||
− | <nowiki>{{QuoteList | + | <nowiki>{{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> | |
− | ... | + | ...<br> |
− | + | | Reference name | | Quoted texts - likely the most common way this'll be used |<br> | |
− | + | | MapRegion/gatetovaultofnyx || ENTRANCE TO VAULT OF NYX |<br> | |
− | ... | + | ...<br> |
}}</nowiki> | }}</nowiki> | ||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |
Revision as of 21:32, 14 January 2019
banana
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, 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.
While most of these can be empty, the separators for all fields must be present.
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> ...<br> | Reference name | | Quoted texts - likely the most common way this'll be used |<br> | MapRegion/gatetovaultofnyx || ENTRANCE TO VAULT OF NYX |<br> ...<br> }}