Difference between revisions of "CreditsTest"
From Sega Retro
(→references: new section) |
|||
Line 31: | Line 31: | ||
or something. Is there a cleaner method? -[[User:Black Squirrel|Black Squirrel]] ([[User talk:Black Squirrel|talk]]) 06:15, 10 November 2017 (CST) | or something. Is there a cleaner method? -[[User:Black Squirrel|Black Squirrel]] ([[User talk:Black Squirrel|talk]]) 06:15, 10 November 2017 (CST) | ||
+ | : Would we ever use anything besides fileref? If not, we could just have pdf and pdfpage parameters like in the ratings template, which we can store without any formatting problems. - [[User:Hivebrain|Hivebrain]] ([[User talk:Hivebrain|talk]]) 08:36, 10 November 2017 (CST) |
Latest revision as of 09:37, 10 November 2017
Any idea how to add a column? I've declared a "date" column and clicked a lot of buttons, but it's still seemingly generating a date-less table. Unless it's exceedingly slow
(incidentally we could probably get release date of a game automatically rather than passing it in as a template parameter, but I've skipped that step for the sake for testing) -Black Squirrel (talk) 10:54, 5 November 2017 (CST)
- Sometimes recreate data fails. Maybe you need to wait a minute before clicking it, to give the edit time to process or something. It worked when I did it. - Hivebrain (talk) 11:18, 5 November 2017 (CST)
- Fair enough
- In the next few hours, Jesse Taylor should become producer of Stellar Assault. To test aliases, he should also be getting credited for the manual. If this works, this template should be ready to roll out -Black Squirrel (talk) 13:10, 5 November 2017 (CST)
references
I'm not sure I can get cargo to store the string "{{fileref|blah blah blah.pdf|page=whatever}}" - the fileref template is evaluated before the cargo_store call is made, so it stores internal mediawiki gubbins instead.
I thought there might be workarounds by dropping the curly brackets and passing ¦ or {{!}} instead of bar characters, but even though that sort-of works, it's extra explaining to do for editors and it's really messy. Also we need to fileref template to evaluate, so that there's a reference on the game page.
Unless there is a better way I've yet to think of, the only thing I can think of is to declare variables in each of the ref templates, re-construct the arguments in creditstable/creditstest for the cargo_store and then do fancy things in productionHistoryLine
sort of like:
- var:refType
- var:filename
- var:pagenumber
etc.
if {{#var:refType}} == fileRef: {{fileref|{{#var:filename}}|{{#var:pagenumber}}}} else if {{#var:refType}} == intRef: {{intref|{{#var:filename}}}}
or something. Is there a cleaner method? -Black Squirrel (talk) 06:15, 10 November 2017 (CST)