Difference between revisions of "Forum:OCG Ruling Sources"

From Yugipedia
Jump to: navigation, search
(comment)
(add a bit to the examples)
Line 29: Line 29:
 
:::-- [[User:Deltaneos|Deltaneos]] ([[User talk:Deltaneos|talk]]) 13:44, August 6, 2012 (UTC)
 
:::-- [[User:Deltaneos|Deltaneos]] ([[User talk:Deltaneos|talk]]) 13:44, August 6, 2012 (UTC)
  
::::I think we would need to ensure the templates all still work properly if SMW is disabled, too... That could be done via <code><nowiki>{{subst:ruling ref loader|ja/en}}</nowiki></code> (name not set, BTW), where the substitution replaces it with <code><nowiki>{{ruling ref|ja/en|</nowiki>''database ID''<nowiki>}}</nowiki></code>. "Ruling ref" could then be designed to output a notice and categorize pages when it's not given an ID (though for maximum usefulness, it would load the ID via SMW in these cases; this would also allow the notice to generate the exact code that should be used). <span style="white-space:nowrap;">「[[User:Dinoguy1000|<span style="color:#00f;">ディノ</span><span style="color:#080;">奴</span>]][[Special:Contributions/Dinoguy1000|<span style="color:#F90;">千?!</span>]]」<sup>[[wikipedia:Help:IJP|?]] · [[User talk:Dinoguy1000#top|☎ Dinoguy1000]]</sup></span> 19:18, August 6, 2012 (UTC)
+
::::I think we would need to ensure the templates all still work properly if SMW is disabled, too... That could be done via <code><nowiki>{{subst:ruling ref loader|ja/en|other optional parameters}}</nowiki></code> (name not set, BTW), where the substitution replaces it with <code><nowiki>{{ruling ref|ja/en|</nowiki>''database ID''<nowiki>|other optional parameters}}</nowiki></code>. "Ruling ref" could then be designed to output a notice and categorize pages when it's not given an ID (though for maximum usefulness, it would load the ID via SMW in these cases; this would also allow the notice to generate the exact code that should be used). <span style="white-space:nowrap;">「[[User:Dinoguy1000|<span style="color:#00f;">ディノ</span><span style="color:#080;">奴</span>]][[Special:Contributions/Dinoguy1000|<span style="color:#F90;">千?!</span>]]」<sup>[[wikipedia:Help:IJP|?]] · [[User talk:Dinoguy1000#top|☎ Dinoguy1000]]</sup></span> 19:18, August 6, 2012 (UTC)

Revision as of 19:19, 6 August 2012

Konami starts to put OCG rulings on the card database site(japanese version)[1] and now the official faq also redirects to that page. So now all the source links that we have on the wiki for the ocg rulings are dead links(They redirects to main page of the database). So we need update the reference/source for all OCG rulings now.--X-Metaman (talkcontribs) 18:55, August 3, 2012 (UTC)

Yeah, it's going to be a pain, updating all the old links. One thing that could help make the code cleaner and maybe quicker to add would be a template where you just enter the id of the ruling. So we'd use something like...
<ref>{{ja ruling ref|10000|Can I use "Proto-Cyber ​​Dragon" as Fusion Material for "Cyber ​​End Dragon"?}}</ref>
... which would be the same as saying...
<ref>[http://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=10000&request_locale=ja db.yugioh-card.com] Q&A » Can I use "Proto-Cyber ​​Dragon" as Fusion Material for "Cyber ​​End Dragon"?</ref>
-- Deltaneos (talk) 22:02, August 5, 2012 (UTC)
It will take a lot of time to update the rulings with their new links, but it must be done. That template Deltaneos made may help and save us some time. Delta, can you make one for these links too?:
<ref>[http://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=4029 db.yugioh-card.com] Q&A » The Wicked Worm Beast</ref>
something like: <ref>{{ja s ruling ref|4029|The Wicked Worm Beast}}</ref>
ATEMVEGETA (Talk) 07:53, August 6, 2012 (UTC)
Aren't the numbers we are going to put into that template always going to be the same as the "database_id" for that page? since the database seems to do the "mentions in other rulings" thing for us I think.
If it is, we can just make "database_id" a SMW query and so we only need to update the main card page and bots can update the rulings pages. -Falzar FZ- (talk page|useful stuff) 13:37, August 6, 2012 (UTC)
[Edit conflict]
I see, so that links to the list of all rulings for a particular card. What does the "s" in the template name stand for btw? The url uses the same "cid" as the card search. Since we're adding those IDs to the card articles, we could use SMW to make a template, where you just need to add...
<ref>{{ja ruling ref}}</ref>
... to Card Rulings:The Wicked Worm Beast and it'll change to the desired output you gave above. Then if you want to use it on any other page, you'd use something like...
<ref>{{ja ruling ref|The Wicked Worm Beast}}</ref> or <ref>{{ja ruling ref|cid=4029}}</ref>
And to link to an individual ruling...
<ref>{{ja ruling ref|fid=10000|desc=Can I use "Proto-Cyber ​​Dragon" as Fusion Material for "Cyber ​​End Dragon"?}}</ref>
Do you think Konami will be putting the English rulings up there some time? In that case, we should probably have one template where you use...
<ref>{{ruling ref|ja|...}}</ref> or <ref>{{ruling ref|en|...}}</ref>
-- Deltaneos (talk) 13:44, August 6, 2012 (UTC)
I think we would need to ensure the templates all still work properly if SMW is disabled, too... That could be done via {{subst:ruling ref loader|ja/en|other optional parameters}} (name not set, BTW), where the substitution replaces it with {{ruling ref|ja/en|database ID|other optional parameters}}. "Ruling ref" could then be designed to output a notice and categorize pages when it's not given an ID (though for maximum usefulness, it would load the ID via SMW in these cases; this would also allow the notice to generate the exact code that should be used). ディノ千?!? · ☎ Dinoguy1000 19:18, August 6, 2012 (UTC)