FANDOM

(Difference between revisions) | User:Bobogoobo
(Image uploading: new section)
(Undo revision 853603 by (7)6(four) (talk) Never mind; I can just link to it there until I'm autoconfirmed)
Line 18: Line 18:
 
Hi Bobo. I don't understand what you mean on the reply on Porter21's talk page. I would like to get that box (Edited by blabla) that, if I'm right, appears on all of the pages. If you can't find it, can you try and make it? Thanks, {{User:Jr Mime/Signature}} 02:01, July 1, 2013 (UTC)
 
Hi Bobo. I don't understand what you mean on the reply on Porter21's talk page. I would like to get that box (Edited by blabla) that, if I'm right, appears on all of the pages. If you can't find it, can you try and make it? Thanks, {{User:Jr Mime/Signature}} 02:01, July 1, 2013 (UTC)
 
:I don't have the time right now. You have scripting experience, I'm sure you could figure it out by looking at similar scripts. For example, [[w:c:community:Thread:529693#7|here is]] a script that retrieves some page info and displays it on the page. In fact, I think you can use the second query in that code and just get different information from it to see the last revision user. See [[Special:ApiExplorer]] for API documentation. <span style="border:1px solid #7744A1; padding:3px;">~[[User:Bobogoobo|Bobogoobo]] ([[User talk:Bobogoobo|talk]]) {{filepath:Lyra speaks S2E25.png|40}} <span style="color:#558ABE;">02:11, July 1, 2013 (UTC)</span></span>
 
:I don't have the time right now. You have scripting experience, I'm sure you could figure it out by looking at similar scripts. For example, [[w:c:community:Thread:529693#7|here is]] a script that retrieves some page info and displays it on the page. In fact, I think you can use the second query in that code and just get different information from it to see the last revision user. See [[Special:ApiExplorer]] for API documentation. <span style="border:1px solid #7744A1; padding:3px;">~[[User:Bobogoobo|Bobogoobo]] ([[User talk:Bobogoobo|talk]]) {{filepath:Lyra speaks S2E25.png|40}} <span style="color:#558ABE;">02:11, July 1, 2013 (UTC)</span></span>
  +
 
::I don't have scripting experience, I only changed some easy things on scripts or asked someone to do them. Can you try and make it when you have time, or if you want to try it? I want it for Answers Sites, so a wiki stops signing every answer, it's annoying! Thanks, {{User:Jr Mime/Signature}} 02:20, July 1, 2013 (UTC)
 
::I don't have scripting experience, I only changed some easy things on scripts or asked someone to do them. Can you try and make it when you have time, or if you want to try it? I want it for Answers Sites, so a wiki stops signing every answer, it's annoying! Thanks, {{User:Jr Mime/Signature}} 02:20, July 1, 2013 (UTC)
 
:::Ah, okay. Here's a quick first draft. This might not work on Answers wikis if the code is different. I can adjust it however you want. <span style="border:1px solid #7744A1; padding:3px;">~[[User:Bobogoobo|Bobogoobo]] ([[User talk:Bobogoobo|talk]]) {{filepath:Lyra speaks S2E25.png|40}} <span style="color:#558ABE;">05:03, July 1, 2013 (UTC)</span></span>
 
:::Ah, okay. Here's a quick first draft. This might not work on Answers wikis if the code is different. I can adjust it however you want. <span style="border:1px solid #7744A1; padding:3px;">~[[User:Bobogoobo|Bobogoobo]] ([[User talk:Bobogoobo|talk]]) {{filepath:Lyra speaks S2E25.png|40}} <span style="color:#558ABE;">05:03, July 1, 2013 (UTC)</span></span>
Line 41: Line 42:
 
:If it's not too much, thanks! {{User:Jr Mime/Signature}} 22:09, July 1, 2013 (UTC)
 
:If it's not too much, thanks! {{User:Jr Mime/Signature}} 22:09, July 1, 2013 (UTC)
 
::Can you link me to a couple pages that this would apply to? For "when a page is created" do you mean to say that if the last edit is the only one? Ignoring bot edits would require adding a loop unless you have only one bot, but I can do it if you can give me some examples so I can look at the API data. <span style="border:1px solid #7744A1; padding:3px;">~[[User:Bobogoobo|Bobogoobo]] ([[User talk:Bobogoobo|talk]]) {{filepath:Lyra speaks S2E25.png|40}} <span style="color:#558ABE;">22:47, July 1, 2013 (UTC)</span></span>
 
::Can you link me to a couple pages that this would apply to? For "when a page is created" do you mean to say that if the last edit is the only one? Ignoring bot edits would require adding a loop unless you have only one bot, but I can do it if you can give me some examples so I can look at the API data. <span style="border:1px solid #7744A1; padding:3px;">~[[User:Bobogoobo|Bobogoobo]] ([[User talk:Bobogoobo|talk]]) {{filepath:Lyra speaks S2E25.png|40}} <span style="color:#558ABE;">22:47, July 1, 2013 (UTC)</span></span>
  +
 
:::"When a page is created" AKA When the questions is asked, and yes. Also, for the bots, we have 3 bots. One that edits all day long adding categories to new questions. Here are examples of bot edits: [[w:c:a:Special:Contributions/QuestionCatBot|QuestionCatBot]]. Thanks, {{User:Jr Mime/Signature}} 22:56, July 1, 2013 (UTC)
 
:::"When a page is created" AKA When the questions is asked, and yes. Also, for the bots, we have 3 bots. One that edits all day long adding categories to new questions. Here are examples of bot edits: [[w:c:a:Special:Contributions/QuestionCatBot|QuestionCatBot]]. Thanks, {{User:Jr Mime/Signature}} 22:56, July 1, 2013 (UTC)
 
::::Or, you could look [[w:c:a:Special:RecentChanges|here]], which you will see I am a bot adding categories to questions. {{User:Jr Mime/Signature}} 22:57, July 1, 2013 (UTC)
 
::::Or, you could look [[w:c:a:Special:RecentChanges|here]], which you will see I am a bot adding categories to questions. {{User:Jr Mime/Signature}} 22:57, July 1, 2013 (UTC)
Line 81: Line 83:
 
Are you 100-sure ? As far as I could see on the preview all pics were still there. --[[User:Rautamiekka|Rautamiekka]] ([[User talk:Rautamiekka|talk]]) 06:44, July 2, 2013 (UTC)
 
Are you 100-sure ? As far as I could see on the preview all pics were still there. --[[User:Rautamiekka|Rautamiekka]] ([[User talk:Rautamiekka|talk]]) 06:44, July 2, 2013 (UTC)
 
:They were not. For sure the "looses" one was not. Feel free to mark that one for renaming with {{T|file rename}}, but yeah, changing the file name in the gallery without the image itself being renamed will break it. <span style="border:1px solid #FCF4A4; padding:3px;">~[[User:Bobogoobo|Bobogoobo]] ([[User talk:Bobogoobo|talk]]) {{filepath:Lyra speaks S2E25.png|40}} <span style="color:#558ABE;">06:46, July 2, 2013 (UTC)</span></span>
 
:They were not. For sure the "looses" one was not. Feel free to mark that one for renaming with {{T|file rename}}, but yeah, changing the file name in the gallery without the image itself being renamed will break it. <span style="border:1px solid #FCF4A4; padding:3px;">~[[User:Bobogoobo|Bobogoobo]] ([[User talk:Bobogoobo|talk]]) {{filepath:Lyra speaks S2E25.png|40}} <span style="color:#558ABE;">06:46, July 2, 2013 (UTC)</span></span>
  +
 
::Hm, that sucks. --[[User:Rautamiekka|Rautamiekka]] ([[User talk:Rautamiekka|talk]]) 06:48, July 2, 2013 (UTC)
 
::Hm, that sucks. --[[User:Rautamiekka|Rautamiekka]] ([[User talk:Rautamiekka|talk]]) 06:48, July 2, 2013 (UTC)
 
:::Yep. Most of them should be good enough, but for the ones that are not, using that template will give them more attention and get them fixed as soon as someone can take care of it. <span style="border:1px solid #FCF4A4; padding:3px;">~[[User:Bobogoobo|Bobogoobo]] ([[User talk:Bobogoobo|talk]]) {{filepath:Lyra speaks S2E25.png|40}} <span style="color:#558ABE;">06:50, July 2, 2013 (UTC)</span></span>
 
:::Yep. Most of them should be good enough, but for the ones that are not, using that template will give them more attention and get them fixed as soon as someone can take care of it. <span style="border:1px solid #FCF4A4; padding:3px;">~[[User:Bobogoobo|Bobogoobo]] ([[User talk:Bobogoobo|talk]]) {{filepath:Lyra speaks S2E25.png|40}} <span style="color:#558ABE;">06:50, July 2, 2013 (UTC)</span></span>
Line 87: Line 90:
 
Hey Bobo, on [[User:Bobogoobo/Sources]] it mentions how to find the sources from an image on derpibooru. Derpibooru actually provides a source for most of its images, usually located below the image on the page and is usually a tumblr or deviantART link. {{User:Callofduty4/Sig}} ''07:52, July 2, 2013 (UTC)''
 
Hey Bobo, on [[User:Bobogoobo/Sources]] it mentions how to find the sources from an image on derpibooru. Derpibooru actually provides a source for most of its images, usually located below the image on the page and is usually a tumblr or deviantART link. {{User:Callofduty4/Sig}} ''07:52, July 2, 2013 (UTC)''
 
:Yeah, the mention on that page is more for reverse source finding, as in if the image is uploaded here and someone wants to know where it was found (other than using Google). Then they can maybe find that Derpibooru page and see the source there. I'll try to make that clearer on the page. Thanks, <span style="border:1px solid #FCF4A4; padding:3px;">~[[User:Bobogoobo|Bobogoobo]] ([[User talk:Bobogoobo|talk]]) {{filepath:Lyra speaks S2E25.png|40}} <span style="color:#558ABE;">07:56, July 2, 2013 (UTC)</span></span>
 
:Yeah, the mention on that page is more for reverse source finding, as in if the image is uploaded here and someone wants to know where it was found (other than using Google). Then they can maybe find that Derpibooru page and see the source there. I'll try to make that clearer on the page. Thanks, <span style="border:1px solid #FCF4A4; padding:3px;">~[[User:Bobogoobo|Bobogoobo]] ([[User talk:Bobogoobo|talk]]) {{filepath:Lyra speaks S2E25.png|40}} <span style="color:#558ABE;">07:56, July 2, 2013 (UTC)</span></span>
 
== Image uploading ==
 
 
I was going to upload a [[Hurricane Fluttershy]] [http://oi42.tinypic.com/2a3mg0.jpg screenshot] that I'm planning to use, but I just found out that I can't upload images apparently because I'm not an autoconfirmed user yet. Could you or someone with the time please upload it for me? (If so, "Pegasi looking up at Fluttershy in flashback S2E22.png" could be its file name.) [[User:(7)6(four)|(7)6(four)]] ([[User talk:(7)6(four)|talk]]) 11:09, July 2, 2013 (UTC)
 

Revision as of 11:40, July 2, 2013

Archives
01 | 02 | 03 | 04 | 05
06 | 07 | 08 | 09 | 10
11 | 12 | 13 | 14 | 15
16
Click here to leave me a message
(remember to use a descriptive heading and sign at the end).
Replies are posted on the same page under the original message.

Need wizard

Hi Bobo, would there be a mean to make the article force the template here to expand, if it's collapsed by default in its template code ? Alternately, may we do the contrary, and modify the template to only be collapsible and not collapsed ?

On an other subject, is there an example of transclusion on the wiki that I could use to see the proper use of it, given the "rules" I see here and there are obscure to my comprehension? Thanks –  Drakep6yPvD4.png  23:54, June 30, 2013 (UTC)

Done, it's now expanded by default and can be collapsed with the parameter |state=collapsed. List of ponies is entirely based on section transclusion, and currently I have a transclusion set up at Episodes#Season four to avoid duplication. If you're talking about section transclusion specifically, see mw:Extension:Labeled Section Transclusion. Regular transclusion works just like a template, it shows the full content of the specified page. ~Bobogoobo (talk) Lyra_speaks_S2E25.png 00:03, July 1, 2013 (UTC)
Perfect, thanks!
Ok, I understand the idea of creating a template out of a dedicated page – which is what I did with my sig if not mistaken. The partial transclusion is also a very nice idea to avoid duplicates or keep them automatically updated. The page about the rules is precisely the part which was unclear to me, having no example to analyze. Now, how may I apply this to the page Politics, where you suggested its use, if you please ? Thanks –  Drakep6yPvD4.png  00:18, July 1, 2013 (UTC)
I was saying that if you wanted to show information from different pages at once, you could transclude sections from them (similar to how the one on Episodes is done). I don't know if this would suit your purposes and intents. If the technical aspects are unclear I can try to explain better, but I'd rather not deal with actual content at the moment. ~Bobogoobo (talk) Lyra_speaks_S2E25.png 00:23, July 1, 2013 (UTC)
Ok, I think it will mostly come in handy for reference to begin with. The potential is enormous.

By the way, saw your amazing work for new personal articles headers (the one which allows to switch between E.G. info and pony info, for example), what are the conditions to implement such new templates into the wiki, a forum ?

Oh, and something else : you use your sandbox for all your notes, but can anyone create any page like /Todo or /Notes in user space; I mean is there any contrary rule ? Thanks –  Drakep6yPvD4.png  12:48, July 1, 2013 (UTC)
Indeed; substantial changes like that must be discussed in the forum. And you can create whatever pages you want in your user namespace, and do whatever you want with them, as long as you don't violate the abuse guidelines.-- Undisguised_Nyx_by_AibotNya.pngJonny Manztalkcontribse-mailedit count Disguised_Nyx_by_AibotNya.png  20:18, July 1, 2013 (UTC)
Got it! Thanks –  Drakep6yPvD4.png  21:05, July 1, 2013 (UTC)

Last edited by

Hi Bobo. I don't understand what you mean on the reply on Porter21's talk page. I would like to get that box (Edited by blabla) that, if I'm right, appears on all of the pages. If you can't find it, can you try and make it? Thanks, — Jr Mime (talk) 02:01, July 1, 2013 (UTC)

I don't have the time right now. You have scripting experience, I'm sure you could figure it out by looking at similar scripts. For example, here is a script that retrieves some page info and displays it on the page. In fact, I think you can use the second query in that code and just get different information from it to see the last revision user. See Special:ApiExplorer for API documentation. ~Bobogoobo (talk) Lyra_speaks_S2E25.png 02:11, July 1, 2013 (UTC)
I don't have scripting experience, I only changed some easy things on scripts or asked someone to do them. Can you try and make it when you have time, or if you want to try it? I want it for Answers Sites, so a wiki stops signing every answer, it's annoying! Thanks, — Jr Mime (talk) 02:20, July 1, 2013 (UTC)
Ah, okay. Here's a quick first draft. This might not work on Answers wikis if the code is different. I can adjust it however you want. ~Bobogoobo (talk) Lyra_speaks_S2E25.png 05:03, July 1, 2013 (UTC)
if (mw.config.get('wgArticleId') !== 0) {
(function() {
    var pagename = mw.config.get('wgPageName'), pageid = mw.config.get('wgArticleId');
 
    $('#WikiaArticle').before('<div id="ajaxrevisionuser" style="' + 
      'border-bottom:1px solid #CCC; margin-bottom:0.5em; padding-left:1em;' + 
      ' padding-bottom:0.75em;">Edited by <span></span></div>');
 
    $.getJSON('/api.php?action=query&prop=revisions&titles=' + pagename + 
      '&rvprop=user&rvlimit=1&format=json', function(data) {
        var link = data.query.pages[pageid].revisions[0].user;
        link = '<a href="/wiki/User:' + link + '">' + link + '</a>';
        $('#ajaxrevisionuser span').html(link);
    });
}());
}
That perfectly works. 2 things: When a page is created, is it possible to make it "Question asked by (name)"? Also, can you make it to ignore bot edits?
If it's not too much, thanks! — Jr Mime (talk) 22:09, July 1, 2013 (UTC)
Can you link me to a couple pages that this would apply to? For "when a page is created" do you mean to say that if the last edit is the only one? Ignoring bot edits would require adding a loop unless you have only one bot, but I can do it if you can give me some examples so I can look at the API data. ~Bobogoobo (talk) Lyra_speaks_S2E25.png 22:47, July 1, 2013 (UTC)
"When a page is created" AKA When the questions is asked, and yes. Also, for the bots, we have 3 bots. One that edits all day long adding categories to new questions. Here are examples of bot edits: QuestionCatBot. Thanks, — Jr Mime (talk) 22:56, July 1, 2013 (UTC)
Or, you could look here, which you will see I am a bot adding categories to questions. — Jr Mime (talk) 22:57, July 1, 2013 (UTC)
This should do it. I couldn't find a reliable way to see if a user was a bot from the revision data alone, so you'll need to keep a list of bots on the line near the top that starts "var revBotsList". It should look like this: var revBotsList = ['QuestionCatBot', 'OtherBot', 'ThirdBotName'];. Any further adjustments? ~Bobogoobo (talk) Lyra_speaks_S2E25.png 23:17, July 1, 2013 (UTC)
if (mw.config.get('wgArticleId') !== 0) {
(function() {
    var revBotsList = ['QuestionCatBot'];
    var pagename = mw.config.get('wgPageName'), pageid = mw.config.get('wgArticleId'), bots = revBotsList || [];
 
    $('#WikiaArticle').before('<div id="ajaxrevisionuser" style="' + 
      'border-bottom:1px solid #CCC; margin-bottom:0.5em; padding-left:1em;' + 
      ' padding-bottom:0.75em;"><span></span> by <span></span></div>');
 
    $.getJSON('/api.php?action=query&prop=revisions&titles=' + pagename + 
      '&rvprop=user&rvlimit=max&format=json', function(data) {
        data = data.query.pages[pageid].revisions;
 
        if (data.length === 1) {
            $('#ajaxrevisionuser span:first').html('Question asked');
            $('#ajaxrevisionuser span:last').html('<a href="/wiki/User:' + data[0].user + '">' + data[0].user + '</a>');
        } else {
            for (var i = 0; i < data.length; i++) {
                var link = data[i].user;
                if (bots.indexOf(link) === -1) {
                    link = '<a href="/wiki/User:' + link + '">' + link + '</a>';
                    $('#ajaxrevisionuser span:first').html('Edited');
                    $('#ajaxrevisionuser span:last').html(link);
                }
            }
        }
    });
}());
}
Not for now, thanks Bobo! You are the best! :). — Jr Mime (talk) 23:31, July 1, 2013 (UTC)

Fluttershy/Gallery/Season 1 episodes 1-13

Are you 100-sure ? As far as I could see on the preview all pics were still there. --Rautamiekka (talk) 06:44, July 2, 2013 (UTC)

They were not. For sure the "looses" one was not. Feel free to mark that one for renaming with {{file rename}}, but yeah, changing the file name in the gallery without the image itself being renamed will break it. ~Bobogoobo (talk) Lyra_speaks_S2E25.png 06:46, July 2, 2013 (UTC)
Hm, that sucks. --Rautamiekka (talk) 06:48, July 2, 2013 (UTC)
Yep. Most of them should be good enough, but for the ones that are not, using that template will give them more attention and get them fixed as soon as someone can take care of it. ~Bobogoobo (talk) Lyra_speaks_S2E25.png 06:50, July 2, 2013 (UTC)

Derpibooru

Hey Bobo, on User:Bobogoobo/Sources it mentions how to find the sources from an image on derpibooru. Derpibooru actually provides a source for most of its images, usually located below the image on the page and is usually a tumblr or deviantART link.  FANMADE_Animated_Derpy_Hooves_desktop_ponies_sprite.gif Sig1.png Sig2.png  07:52, July 2, 2013 (UTC)

Yeah, the mention on that page is more for reverse source finding, as in if the image is uploaded here and someone wants to know where it was found (other than using Google). Then they can maybe find that Derpibooru page and see the source there. I'll try to make that clearer on the page. Thanks, ~Bobogoobo (talk) Lyra_speaks_S2E25.png 07:56, July 2, 2013 (UTC)
Community content is available under CC-BY-SA unless otherwise noted.