FANDOM


test
– 
test

/quotes Template:Quotebox/quotes/sandbox/quotes

Test quotation 2, followed by Template:!.---Test source 2, preceded by Template:!

Test:


Test with plaintext:

  • Test quotation 5, followed by Template:!.
  • Test source 5, preceded by Template:!


Test:

  • Test quotation 5, followed by Template:!.
  • Test source 5, preceded by Template:!


Set 2b


Set 1b

Would this work?

  1. Create Template:Choose.
  2. In {{choose}}, put options for numbers 0-9.
  3. Create a quotes page, like Grog Strongjaw/quotes.
  4. On the quotes page, type in all the quotes in format:
    • +++Quote 1.---Source 1[1]
    • +++Quote 2.---Source 2[2]
    • +++Quote 3.---Source 3[3]
    • +++Quote 4.---Source 4[4]
  5. On the quotes page, have something like this:
{{#arraydefine:ArrayofQuotations|
+++Quote 1.---Source 1{{ep ref|ep=1x01|1:11:11}}
+++Quote 2.---Source 2{{ep ref|ep=1x02|2:22:22}}
+++Quote 3.---Source 3{{ep ref|ep=1x03|3:33:33}}
+++Quote 4.---Source 4{{ep ref|ep=1x04|4:44:44}}
|+++}}<!--
-->{{#vardefine:Chosen|{{Choose|{{#arraysize:ArrayofQuotations}}}}}}<!--
-->{{#arraydefine:ChosenRow|{{#arrayprint:ArrayofQuotations|{{#expr:{{#var:Chosen}}-1}}}}|---}}<!--
-->{{quotebox|{{#arrayindex:ChosenRow|0}}|{{#arrayindex:ChosenRow|1}}}}

Test

Output

Using Random Number

This section works, but I don't think {{random number}} is as effective as <choose> at picking new choices.  {{random number}} may need page cache updates.

Quote 4.
– 
Source 4[4]

4

Using <choose>

This currently will not work, because the output from {{choose}} is not the simple text that appears on screen, so it can't be parsed by #expr.

Expression error: Unrecognised punctuation character "".Quote 1.
– 
Source 1[1]Expression error: Unrecognised punctuation character "".Quote 2.
  • #var:Chosen 7
  • {{Chosen}} Template:Chosen {{Chosen}} Template:Chosen
  • #arraysize:ArrayofQuotations 5
  • #sub:7|0|1
  • #expr:7-1 Expression error: Unrecognised punctuation character "".
  • #arrayprint:ArrayofQuotations|Expression error: Unrecognised punctuation character "". Expression error: Unrecognised punctuation character "".Quote 1.---Source 1[1]Expression error: Unrecognised punctuation character "".Quote 2.---Source 2[2]Expression error: Unrecognised punctuation character "".Quote 3.---Source 3[3]Expression error: Unrecognised punctuation character "".Quote 4.---Source 4[4]
  • #arraydefine:ChosenRow||---


Miscellaneous

Quote1
– 
Source 1


– 
Table version of "The Sunken Tomb" (1x44) at 0:00:00

References

  1. See "Arrival at Kraghammer" (1x01) at 1:11:11.
  2. See "Into the Greyspine Mines" (1x02) at 2:22:22.
  3. See "Strange Bedfellows" (1x03) at 3:33:33.
  4. See "Attack on the Duergar Warcamp" (1x04) at 4:44:44.
  5. See "Trust" (1x70) at 70:70:70.
Community content is available under CC-BY-SA unless otherwise noted.