Toaru Majutsu no Index Wiki
No edit summary
No edit summary
 
Line 4: Line 4:
 
Current problems:
 
Current problems:
 
#Since I predict there will be some inevitable crossover for the reference ids for novels, manga and anime, I decided that it would be necessary for there to be an input for what type of material was being referenced. Otherwise it would be too hard to distinguish between the different tags.
 
#Since I predict there will be some inevitable crossover for the reference ids for novels, manga and anime, I decided that it would be necessary for there to be an input for what type of material was being referenced. Otherwise it would be too hard to distinguish between the different tags.
#Reference name and output can't take input parameters. This ones the real kicker. I was hoping for the input parameter to do all the heavy lifting but it seems to be incompatible with template transclusions. This essentially forces me from making the template as simple as I wanted it. To get the same output as in the post above the input would have to be:
+
#Reference name and output can't take input parameters. This ones the real kicker. I was hoping for the input parameter to do all the heavy lifting but it seems to be incompatible with references. This essentially prevents me from making the template as simple as I wanted it. To get the same output as in the post above the input would have to be:
 
*<tt><nowiki><ref name=NT9Ch8Pt3>{{Qref|L|NT9Ch8Pt3}}</ref></nowiki></tt>
 
*<tt><nowiki><ref name=NT9Ch8Pt3>{{Qref|L|NT9Ch8Pt3}}</ref></nowiki></tt>
 
...which isn't the worst; but still a step down from the ideal.
 
...which isn't the worst; but still a step down from the ideal.

Latest revision as of 09:02, 10 May 2020

So after playing around some more I've got a working test template for references. Currently works as follows:

  • Input - {{Qref|L|NT9Ch8Pt3}}
  • Output - {{Qvl|Shinyaku|L|9|NT Volume 9}} Chapter 8 Part 3

Current problems:

  1. Since I predict there will be some inevitable crossover for the reference ids for novels, manga and anime, I decided that it would be necessary for there to be an input for what type of material was being referenced. Otherwise it would be too hard to distinguish between the different tags.
  2. Reference name and output can't take input parameters. This ones the real kicker. I was hoping for the input parameter to do all the heavy lifting but it seems to be incompatible with references. This essentially prevents me from making the template as simple as I wanted it. To get the same output as in the post above the input would have to be:
  • <ref name=NT9Ch8Pt3>{{Qref|L|NT9Ch8Pt3}}</ref>

...which isn't the worst; but still a step down from the ideal.