Template:Infobox: Difference between revisions

From questden
Jump to navigationJump to search
m (Required linebreak for Template:TD usage.)
(Undo revision 34123 by Delian (talk))
Tag: Undo
 
(53 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>{{Infobox/Doc}}</noinclude><includeonly><!-- Be careful with blank lines; you'll get superflous para breaks
<noinclude>{{Infobox/Doc}}</noinclude><includeonly><!-- Be careful with blank lines; you'll get superflous para breaks
-->{{#if:{{{author|}}}||{{#if:{{{suppresscat|}}}||[[Template:Noauthor]]}}}}
-->{|class="infobox" cellpadding="2" border="1" align="right" style="width:250px"
{|cellpadding="2" border="1" align="right" style="width:250px"
|+ style="caption-side:bottom"|<div style="padding-top:4px">{{#if:{{{caption|}}}|{{{caption}}}|}}</div>
!style="font-weight: normal;"|<big>'''{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}'''{{#if:{{{author|}}}|<nowiki /> by&nbsp;[[{{{author}}}]]|}}</big>
!style="font-weight: normal;"|<div style="width: 250px; height: 0; margin: 0;"></div><big>'''{{{title|{{PAGENAME}}}}}'''{{#if:{{{author|}}}|<nowiki /> by&nbsp;[[{{{author}}}{{#if:{{{authoralias|}}}|{{!}}{{{authoralias}}}}}]]{{#if:{{{authorext|}}}|<nowiki />{{#if:{{{authorextcomma|}}}|,|}}&nbsp;{{{authorext}}}|}}|}}</big>
{{#if:{{{image|}}}|{{TR}}{{TD}}[[image:{{{image}}}|250px]]|}}
{{#if:{{{image|}}}|{{TR}}{{TD}}[[image:{{{image}}}|250px|{{{mouseover|}}}]]|}}<!-- on-wiki, then off-wiki
-->{{#if:{{{imageext|}}}|{{TR}}{{TD}}<div style="text-align: center"><span class="plainlinks" {{#if:{{{mouseover|}}}|title="{{{mouseover}}}"|}}>[https://tgchan.org/kusaba/image-for/{{{imageextboard|quest}}}/{{{imageext}}} http://tgchan.org/kusaba/thumb-for/{{{imageextboard|quest}}}/{{{imageext}}}.png]</span></div>|}}<!-- auto fallback
-->{{#if:{{{image|}}}{{{imageext|}}}{{{suppressimg|}}}|<!-- image provided or suppressed, do nothing -->|{{#if:{{{thread1|}}}|<!-- do auto -->{{TR}}{{TD}}<div style="text-align: center"><span class="plainlinks" {{#if:{{{mouseover|}}}|title="{{{mouseover}}}"|}}>[https://tgchan.org/kusaba/image-for/quest/{{{thread1}}} http://tgchan.org/kusaba/thumb-for/quest/{{{thread1}}}.png]</span></div>|<!-- no thread1, can't auto -->}}}}
|-
|-
| <!-- REGULAR THREADS (and one line of magic)
| <!-- REGULAR THREADS (and one line of magic)  
       The correct way to edit these blocks is with Vim and batch regexps.
       The correct way to edit these blocks is with Vim and batch regexps.
       BE CAREFUL! Stuff like the empty comments are necessary to squash autogenerated paragraphs. --><!--
       BE CAREFUL! Stuff like the empty comments are necessary to squash autogenerated paragraphs. --><!--
-->{{#if:{{{prethreads|}}}|{{TR}}{{TD}}
-->{{#if:{{{prethreads|}}}|{{{prethreads}}}|<nowiki />}}<!--
{{{prethreads}}}|}}<!--
-->{{#if:{{{thread1|}}}|{{{thread1pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread1}}}.html {{{thread1name|Thread{{#if:{{{thread2|}}}{{{thread3|}}}|<nowiki /> 1|}}}}}]|}}<!--
-->{{#if:{{{thread1|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread1}}}.html {{{thread1name|Thread 1}}}]|}}<!--
-->{{#if:{{{thread2|}}}|{{{thread2pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread2}}}.html {{{thread2name|Thread 2}}}]|}}<!--
-->{{#if:{{{thread2|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread2}}}.html {{{thread2name|Thread 2}}}]|}}<!--
-->{{#if:{{{thread3|}}}|{{{thread3pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread3}}}.html {{{thread3name|Thread 3}}}]|}}<!--
-->{{#if:{{{thread3|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread3}}}.html {{{thread3name|Thread 3}}}]|}}<!--
-->{{#if:{{{thread4|}}}|{{{thread4pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread4}}}.html {{{thread4name|Thread 4}}}]|}}<!--
-->{{#if:{{{thread4|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread4}}}.html {{{thread4name|Thread 4}}}]|}}<!--
-->{{#if:{{{thread5|}}}|{{{thread5pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread5}}}.html {{{thread5name|Thread 5}}}]|}}<!--
-->{{#if:{{{thread5|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread5}}}.html {{{thread5name|Thread 5}}}]|}}<!--
-->{{#if:{{{thread6|}}}|{{{thread6pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread6}}}.html {{{thread6name|Thread 6}}}]|}}<!--
-->{{#if:{{{thread6|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread6}}}.html {{{thread6name|Thread 6}}}]|}}<!--
-->{{#if:{{{thread7|}}}|{{{thread7pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread7}}}.html {{{thread7name|Thread 7}}}]|}}<!--
-->{{#if:{{{thread7|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread7}}}.html {{{thread7name|Thread 7}}}]|}}<!--
-->{{#if:{{{thread8|}}}|{{{thread8pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread8}}}.html {{{thread8name|Thread 8}}}]|}}<!--
-->{{#if:{{{thread8|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread8}}}.html {{{thread8name|Thread 8}}}]|}}<!--
-->{{#if:{{{thread9|}}}|{{{thread9pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread9}}}.html {{{thread9name|Thread 9}}}]|}}<!--
-->{{#if:{{{thread9|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread9}}}.html {{{thread9name|Thread 9}}}]|}}<!--
-->{{#if:{{{thread10|}}}|{{{thread10pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread10}}}.html {{{thread10name|Thread 10}}}]|}}<!--
-->{{#if:{{{thread10|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread10}}}.html {{{thread10name|Thread 10}}}]|}}<!--
-->{{#if:{{{thread11|}}}|{{{thread11pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread11}}}.html {{{thread11name|Thread 11}}}]|}}<!--
-->{{#if:{{{thread11|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread11}}}.html {{{thread11name|Thread 11}}}]|}}<!--
-->{{#if:{{{thread12|}}}|{{{thread12pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread12}}}.html {{{thread12name|Thread 12}}}]|}}<!--
-->{{#if:{{{thread12|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread12}}}.html {{{thread12name|Thread 12}}}]|}}<!--
-->{{#if:{{{thread13|}}}|{{{thread13pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread13}}}.html {{{thread13name|Thread 13}}}]|}}<!--
-->{{#if:{{{thread13|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread13}}}.html {{{thread13name|Thread 13}}}]|}}<!--
-->{{#if:{{{thread14|}}}|{{{thread14pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread14}}}.html {{{thread14name|Thread 14}}}]|}}<!--
-->{{#if:{{{thread14|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread14}}}.html {{{thread14name|Thread 14}}}]|}}<!--
-->{{#if:{{{thread15|}}}|{{{thread15pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread15}}}.html {{{thread15name|Thread 15}}}]|}}<!--
-->{{#if:{{{thread15|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread15}}}.html {{{thread15name|Thread 15}}}]|}}<!--
-->{{#if:{{{thread16|}}}|{{{thread16pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread16}}}.html {{{thread16name|Thread 16}}}]|}}<!--
-->{{#if:{{{thread16|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread16}}}.html {{{thread16name|Thread 16}}}]|}}<!--
-->{{#if:{{{thread17|}}}|{{{thread17pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread17}}}.html {{{thread17name|Thread 17}}}]|}}<!--
-->{{#if:{{{thread17|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread17}}}.html {{{thread17name|Thread 17}}}]|}}<!--
-->{{#if:{{{thread18|}}}|{{{thread18pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread18}}}.html {{{thread18name|Thread 18}}}]|}}<!--
-->{{#if:{{{thread18|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread18}}}.html {{{thread18name|Thread 18}}}]|}}<!--
-->{{#if:{{{thread19|}}}|{{{thread19pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread19}}}.html {{{thread19name|Thread 19}}}]|}}<!--
-->{{#if:{{{thread19|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread19}}}.html {{{thread19name|Thread 19}}}]|}}<!--
-->{{#if:{{{thread20|}}}|{{{thread20pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread20}}}.html {{{thread20name|Thread 20}}}]|}}<!--
-->{{#if:{{{thread20|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread20}}}.html {{{thread20name|Thread 20}}}]|}}<!--
-->{{#if:{{{thread21|}}}|{{{thread21pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread21}}}.html {{{thread21name|Thread 21}}}]|}}<!--
-->{{#if:{{{thread21|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread21}}}.html {{{thread21name|Thread 21}}}]|}}<!--
-->{{#if:{{{thread22|}}}|{{{thread22pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread22}}}.html {{{thread22name|Thread 22}}}]|}}<!--
-->{{#if:{{{thread22|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread22}}}.html {{{thread22name|Thread 22}}}]|}}<!--
-->{{#if:{{{thread23|}}}|{{{thread23pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread23}}}.html {{{thread23name|Thread 23}}}]|}}<!--
-->{{#if:{{{thread23|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread23}}}.html {{{thread23name|Thread 23}}}]|}}<!--
-->{{#if:{{{thread24|}}}|{{{thread24pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread24}}}.html {{{thread24name|Thread 24}}}]|}}<!--
-->{{#if:{{{thread24|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread24}}}.html {{{thread24name|Thread 24}}}]|}}<!--
-->{{#if:{{{thread25|}}}|{{{thread25pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread25}}}.html {{{thread25name|Thread 25}}}]|}}<!--
-->{{#if:{{{thread25|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread25}}}.html {{{thread25name|Thread 25}}}]|}}<!--
-->{{#if:{{{thread26|}}}|{{{thread26pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread26}}}.html {{{thread26name|Thread 26}}}]|}}<!--
-->{{#if:{{{thread26|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread26}}}.html {{{thread26name|Thread 26}}}]|}}<!--
-->{{#if:{{{thread27|}}}|{{{thread27pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread27}}}.html {{{thread27name|Thread 27}}}]|}}<!--
-->{{#if:{{{thread27|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread27}}}.html {{{thread27name|Thread 27}}}]|}}<!--
-->{{#if:{{{thread28|}}}|{{{thread28pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread28}}}.html {{{thread28name|Thread 28}}}]|}}<!--
-->{{#if:{{{thread28|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread28}}}.html {{{thread28name|Thread 28}}}]|}}<!--
-->{{#if:{{{thread29|}}}|{{{thread29pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread29}}}.html {{{thread29name|Thread 29}}}]|}}<!--
-->{{#if:{{{thread29|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread29}}}.html {{{thread29name|Thread 29}}}]|}}<!--
-->{{#if:{{{thread30|}}}|{{{thread30pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{thread1name|}}}}}|#|*}}[https://tgchan.org/kusaba/quest/res/{{{thread30}}}.html {{{thread30name|Thread 30}}}]|}}<!--
-->{{#if:{{{thread30|}}}|{{#if:{{{thread1name|}}}|#|*}}[http://tgchan.org/kusaba/quest/res/{{{thread30}}}.html {{{thread30name|Thread 30}}}]|}}<!--
-->{{#if:{{{postthreads|}}}|{{{postthreads}}}|<nowiki />}}<!--
--><!-- DISCUSSION THREADS: careful, we special-case the first thread in case it's the only one (likely)! -->
--><!-- DISCUSSION THREADS: careful, we special-case the first thread in case it's the only one (likely)! -->
{{#if:{{{disthread1|}}}|{{TR}}{{TD}}|<nowiki />}}
{{#if:{{{disthread1|}}}|{{TR}}{{TD}}|<nowiki />}}
<!-- ^ Conditional template row --><!--
<!-- ^ Conditional template row --><!--
-->{{#if:{{{disthread1|}}}|*[http://tgchan.org/kusaba/questdis/res/{{{disthread1}}}.html Discussion{{#if:{{{disthread2|}}}|<nowiki /> thread 1|}}]|}}<!--
-->{{#if:{{{predisthreads|}}}|{{{predisthreads}}}|<nowiki />}}<!--
-->{{#if:{{{disthread2|}}}|*[http://tgchan.org/kusaba/questdis/res/{{{disthread2}}}.html Discussion thread 2]|}}<!--
-->{{#if:{{{disthread1|}}}|{{{disthread1pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{disthread1|}}}}}|*|*}}[https://tgchan.org/kusaba/questdis/res/{{{disthread1}}}.html {{{disthread1name|Discussion{{#if:{{{disthread2|}}}|<nowiki /> thread 1|}}}}}]|}}<!--
-->{{#if:{{{disthread3|}}}|*[http://tgchan.org/kusaba/questdis/res/{{{disthread3}}}.html Discussion thread 3]|}}<!--
-->{{#if:{{{disthread2|}}}|{{{disthread2pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{disthread2|}}}}}|*|*}}[https://tgchan.org/kusaba/questdis/res/{{{disthread2}}}.html {{{disthread2name|Discussion thread 2}}}]|}}<!--
-->{{#if:{{{disthread4|}}}|*[http://tgchan.org/kusaba/questdis/res/{{{disthread4}}}.html Discussion thread 4]|}}<!--
-->{{#if:{{{disthread3|}}}|{{{disthread3pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{disthread3|}}}}}|*|*}}[https://tgchan.org/kusaba/questdis/res/{{{disthread3}}}.html {{{disthread3name|Discussion thread 3}}}]|}}<!--
-->{{#if:{{{disthread5|}}}|*[http://tgchan.org/kusaba/questdis/res/{{{disthread5}}}.html Discussion thread 5]|}}<!--
-->{{#if:{{{disthread4|}}}|{{{disthread4pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{disthread4|}}}}}|*|*}}[https://tgchan.org/kusaba/questdis/res/{{{disthread4}}}.html {{{disthread4name|Discussion thread 4}}}]|}}<!--
-->{{#if:{{{disthread5|}}}|{{{disthread5pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{disthread5|}}}}}|*|*}}[https://tgchan.org/kusaba/questdis/res/{{{disthread5}}}.html {{{disthread5name|Discussion thread 5}}}]|}}<!--
-->{{#if:{{{postdisthreads|}}}|{{{postdisthreads}}}|<nowiki />}}<!--
--><!-- SPECIAL THREADS -->
--><!-- SPECIAL THREADS -->
{{#if:{{{specthread1|}}}|{{TR}}{{TD}}|<nowiki />}}<!--
{{#if:{{{specthread1|}}}|{{TR}}{{TD}}|<nowiki />}}<!--
-->{{#if:{{{specthread1|}}}|*[http://tgchan.org/kusaba/{{{specthread1board|quest}}}/res/{{{specthread1}}}.html {{{specthread1name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{prespecthreads|}}}|{{{prespecthreads}}}|<nowiki />}}<!--
-->{{#if:{{{specthread2|}}}|*[http://tgchan.org/kusaba/{{{specthread2board|quest}}}/res/{{{specthread2}}}.html {{{specthread2name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread1|}}}|{{{specthread1pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{specthread1|}}}}}|*|*}}[https://tgchan.org/kusaba/{{{specthread1board|quest}}}/res/{{{specthread1}}}.html {{{specthread1name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread3|}}}|*[http://tgchan.org/kusaba/{{{specthread3board|quest}}}/res/{{{specthread3}}}.html {{{specthread3name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread2|}}}|{{{specthread2pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{specthread2|}}}}}|*|*}}[https://tgchan.org/kusaba/{{{specthread2board|quest}}}/res/{{{specthread2}}}.html {{{specthread2name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread4|}}}|*[http://tgchan.org/kusaba/{{{specthread4board|quest}}}/res/{{{specthread4}}}.html {{{specthread4name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread3|}}}|{{{specthread3pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{specthread3|}}}}}|*|*}}[https://tgchan.org/kusaba/{{{specthread3board|quest}}}/res/{{{specthread3}}}.html {{{specthread3name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread5|}}}|*[http://tgchan.org/kusaba/{{{specthread5board|quest}}}/res/{{{specthread5}}}.html {{{specthread5name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread4|}}}|{{{specthread4pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{specthread4|}}}}}|*|*}}[https://tgchan.org/kusaba/{{{specthread4board|quest}}}/res/{{{specthread4}}}.html {{{specthread4name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread6|}}}|*[http://tgchan.org/kusaba/{{{specthread6board|quest}}}/res/{{{specthread6}}}.html {{{specthread6name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread5|}}}|{{{specthread5pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{specthread5|}}}}}|*|*}}[https://tgchan.org/kusaba/{{{specthread5board|quest}}}/res/{{{specthread5}}}.html {{{specthread5name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread7|}}}|*[http://tgchan.org/kusaba/{{{specthread7board|quest}}}/res/{{{specthread7}}}.html {{{specthread7name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread6|}}}|{{{specthread6pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{specthread6|}}}}}|*|*}}[https://tgchan.org/kusaba/{{{specthread6board|quest}}}/res/{{{specthread6}}}.html {{{specthread6name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread8|}}}|*[http://tgchan.org/kusaba/{{{specthread8board|quest}}}/res/{{{specthread8}}}.html {{{specthread8name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread7|}}}|{{{specthread7pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{specthread7|}}}}}|*|*}}[https://tgchan.org/kusaba/{{{specthread7board|quest}}}/res/{{{specthread7}}}.html {{{specthread7name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread9|}}}|*[http://tgchan.org/kusaba/{{{specthread9board|quest}}}/res/{{{specthread9}}}.html {{{specthread9name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread8|}}}|{{{specthread8pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{specthread8|}}}}}|*|*}}[https://tgchan.org/kusaba/{{{specthread8board|quest}}}/res/{{{specthread8}}}.html {{{specthread8name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread9|}}}|{{{specthread9pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{specthread9|}}}}}|*|*}}[https://tgchan.org/kusaba/{{{specthread9board|quest}}}/res/{{{specthread9}}}.html {{{specthread9name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{specthread10|}}}|{{{specthread10pre|}}}{{#if:{{#if:{{{suppressnum|}}}||{{{specthread10|}}}}}|*|*}}[https://tgchan.org/kusaba/{{{specthread10board|quest}}}/res/{{{specthread10}}}.html {{{specthread10name|NAME MISSING}}}]|}}<!--
-->{{#if:{{{postspecthreads|}}}|{{{postspecthreads}}}|<nowiki />}}<!--
-->
-->
|}
|} <!--
{{#if:{{{suppresscat|}}}||[[Category:Quests]]}}</includeonly>
-->{{#if:{{{author|}}}||{{#if:{{{suppresscat|}}}||{{Template:Noauthor}}}}}}{{#if:{{{thread1|}}}||{{#if:{{{suppresscat|}}}||{{Template:Nolink}}}}}}<!--
-->{{#if:{{{suppresscat|}}}||{{#if:{{{dead|}}}|[[Category:Dead Quests]]|[[Category:Quests]]}}{{#if:{{{thread2|}}}|[[Category:Series Quests]]|}}{{#if:{{{authorext|}}}|[[Category:Quests with Multiple Authors]]|}}}}</includeonly><noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 09:51, 26 April 2020

Purpose

Template Quest by LionsPhil

This is the template for making a neat infobox for a quest, as shown on the right. Put it at the top of quest pages. It automatically adds the page to Category:Quests, to Category:Series Quests if it has multiple threads, and will add Template:Noauthor and Template:Nolink if appropriate. You'll still need to list other categories manually, as appropriate.

Usage

Parameters (all are optional, although at least author and thread1 are expected):

Metadata

title
Title of the quest. Defaults to the current page name; normally you should leave it to do this. Useful if the page name includes a disambiguation in parenthesis. (Ie, if the page name is "Quest Name (Author)" set |title=Quest Name to avoid the silliness of "Quest Name (Author) by Author").
author
Quest author; will be linked to as a wiki node, even if it has whitespace.
image
Quest image, without namespace. Will be thumbnailed to fit. Optional.
imageext
Post number on the board to take the image from. Use this or image, not both. You can override the board with imageextboard, but should never need to. Useful if the dis thread OP is better than the thread OP. Optional.

If neither image parameter is provided, the Infobox will fall back to using the OP image of the first thread by default.

Special cases

authorext
Extra authors; this is appended after the primary author, so if you need to use it you probably want something like and [[Dave]], or et al.. Adds Category:Quests with Multiple Authors automatically if used. Optional.
authorextcomma
Adds a comma right after the author if set to 1. Useful if there's more than 2 authors, since authorext adds a space before its text appears. Optional.
authoralias
Author alias; this is used if the author goes by a different name, for instance the infamous Silvermoon series. Optional.
dead
Set this to 1 to put the quest in Category:Dead Quests instead of Category:Quests and keep it off the main list. A quest is considered dead if and only if all threads are in the graveyard.
mouseover
Allows you to set mouseover / title text for the infobox image. Optional, use sparingly.

Threads

All thread parameters must be numbered, starting from 1. For example, thread1=500|thread2=600….

threadN
Post numbers for the threads of the quest.
threadNname
Optional 'name' for the thread, e.g. "Chapters 1–2". If the first thread is named, a numbered list is used to automatically provide the thread numbers.
disthreadN
Post numbers for discussion threads.
disthreadNname
Optional name for discussion threads.

Specials

For example, 'April Fool' versions of quests.

specthreadN
Post numbers for any 'special' threads.
specthreadNboard
Board for corresponding 'special' thread; defaults to quest.
specthreadNname
Required name for corresponding special thread.

Other

prethreads
Value is spat out verbatim in the thread block, before thread 1. Avoid using this; it's for some very special cases where quests have some of their threads hosted externally. It is not for subheadings.
threadNpre
Place some markup before a thread entry, for example to do horizontal rules separating the list. You need to do a <nowiki></nowiki> (or <nowiki/>, same thing) trick to get a leading newline to separate it from a previous list element; see Bubble Bucket and Cutebold Slaughter Fest for examples. The matching threadN must be specified.
postthreads
Works like prethreads, but spits out information after the last thread instead of before thread 1. Useful only in special cases, say, when the final thread or epilogue material is hosted externally.

If you really need them, there are dis and spec thread versions of the previous three commands, as well. (Namely predisthreads, disthreadNpre, postdisthreads, prespecthreads, specthreadNpre and postspecthreads). They use the same syntax and function in the same manner, just in different blocks of the infobox.

suppresscat
Set this to 1 to disable automatic categorisation. You probably don't want to use this.
suppressnum
Set this to 1 to disable automatic numbering of threads when using thread names.
suppressimg
Set this to 1 to disable automatic fallback to using the OP image of thread1. Has no effect if you manually specify an image with image or imageext.
caption
Places a caption centered beneath the infobox. Useful if you need to have a footnote, for some reason.

Example

A quick reminder of MediaWiki template syntax; whitespace is reasonably flexible either side of the pipes, so do whatever is most readable:

{{Infobox
|author=TestPattern
|image=tozol_title.png
|thread1=79880
|thread2=94645
|disthread1=316424
|specthread1=156238|specthread1name=April Fool's Edition
}}

There are some more abstract examples on the development testing page, and you can find pages using this template.

Maintenance notes

  • Depends on the automatic redirect from /quest/ to /questarch/ (or /graveyard/) for archived threads (semantically, the /quest/ version is considered its canonical URI). This allows the "current thread" to work without having to be flagged as special in any way.
  • Automatic image fallback depends on the same redirects as Template:Fanart.
  • Depends on the ParserFunctions extension to support optional parameters gracefully. This makes the code pretty hairy, so take care editing.
  • The maximum number of threads is limited by the implementation repeating the definition for each number. Unfortunately this is a common MediaWiki paradigm as it has no set handling in templates.
  • The width is set as a battle between a desired table width of 250px, which sets a softer maximum than a max-width, and a div strut in the title which may be matched by a 250px image, which acts as a min-width for the inner (content) boundary of the table.