User talk:Takashimaru: Difference between revisions

imported>Mathetesalexandrou
imported>K6ka
 
(2 intermediate revisions by 2 users not shown)
Line 26:
Regarding that, I haven't done that myself.
 
I believe this is done through a script. I'm not in charge of scripting in the wiki (and personally haven't done any here given my lack of know-hows (yet)), but it's javascript.
 
Most of this comes from what we're using, with minor changes to remove the formatting such as red text and so.
 
 
<code>
 
<code> function (insert name for function) ()
{
var options = {'': '', //Nothing
Line 40 ⟶ 41:
//(Stuff for your licensed image regarding option n) will usually have
// \n== Licensing ==\n with whatever you want to accompany it.
var optstr = '';''
for ( i in options )
{
Line 48 ⟶ 49:
}
}
var html = '<p style="text-align:center;"><select id="QLicenseSelect">' + optstr + '</select>&nbsp;<a class="wikia-button" style="margin:0 1em; cursor:pointer;" id="aSubmit">Add license</a>';
//Add button with the description Add license
if($('#LicensedFile').length || $('#Licensing').length)
Line 76 ⟶ 77:
//Add this thing to the page if it is in the File namespace
}
</code>
 
 
 
This should be written as a js file then uploaded to the wiki, and all image files should link to this script.
Line 83 ⟶ 86:
 
[[User:Mathetesalexandrou|<span style="color:#00CC33">MILK FOR THE UNYUUFEX, </span><span style="color:#00AADD">FLAT CHEST FOR THE CUTENESS THRONE, </span><span style="color:#88AAAA">SKULLS FOR THE SKULL PROBES </span>]] ([[user talk:Mathetesalexandrou]]) 00:33, February 14, 2015 (UTC)
 
:I apologize if I misunderstood your question.
 
:The license bar on top of files is very simple to use. Click on the bar and then pick an option from the menu. You will want to find the option that best suits the file you are licensing. Once you have found the best option, click on it, and then click the green button called "Add license".
 
:For your second question, there can be two definitions of MediaWiki. One is the [[wikipedia:MediaWiki|MediaWiki software]], which powers this website. However, I think you are referring to the [[Help:Namespace#What_are_the_basic_namespaces.3F|MediaWiki namespace]]. The MediaWiki namespace is any page that starts with "MediaWiki:". It can only be edited by administrators like me.
 
:I hope this helps you. --I am [[User:K6ka|'''<span style="color:#0040FF">k6ka</span>''']] [[User talk:K6ka|<span style="color:#0080FF"><sup>Talk to me!</sup></span>]] [[Special:Contributions/K6ka|<span style="color:#0B4C5F"><sub>See what I have done</sub></span>]] 03:12, February 14, 2015 (UTC)
 
::We use [[wikipedia:Javascript|Javascript]] to make our license bar work. We put that code in [[MediaWiki:Common.js]]. I am not proficient with Javascript, nor did I write the script, so I am afraid I am unable to help you if you would like to make your own, if that is what you wanted to do. --I am [[User:K6ka|'''<span style="color:#0040FF">k6ka</span>''']] [[User talk:K6ka|<span style="color:#0080FF"><sup>Talk to me!</sup></span>]] [[Special:Contributions/K6ka|<span style="color:#0B4C5F"><sub>See what I have done</sub></span>]] 03:20, February 14, 2015 (UTC)
Anonymous user