I am using Pywikibot at this moment, to add a lot of files in a category, and the Edit summary looks like this: "Bot: Adding category Taken with Sony DSC-WX350)"
I would like to add the text "using Pywikibot in automatic mode"
How to do that?
pywikibot.save has a parameter summary
Related
I search the documentation but I didn't know exactly how to call that.
I have a template Index2Name that return a name based on an index.
I'm trying to use that name in a link:
[[Articles/{{Index2Name|0001}}|{{Index2Name|0001}}]]
or
Image:Big-0001.png|link=Articles/{{Index2Name|0001}}|''{{Index2Name|0001}}''
In the last example, the name is printed but the link doesn't work. (In gallery element)
It doesn't work. The value from the template is printed but it is not converted to a link.
How can I make this works? And does this have a name? (For future reference)
EDIT: Index2Name is a simple switch returning a few words depending of the id. Since I'm using subpages I only want the name to appear (Example: MyArticle) but the link is Articles/MyArticle
Could you clarify exactly what you want to happen please. (Where you want to link and how you want it to look).
But for example if you use:
[[Image:Big-0001.png|''{{Index2Name|0001}}'']]
It will link to the page Image:Big-0001.png with the link text being the output of:
''{{Index2Name|0001}}''
Or if you use:
[[Image:Big-001.jpg|link=Articles/{{Index2Name|0001}}]]
The image, when clicked, will redirect you to the output of:
{{Index2Name|0001}}
I have a drop-down menu in a form where you choose the year from pre-entered values. That field is used in different queries to display different data depending on the year you've chosen from the drop down menu ([Field]).
I would like to use this field in a query with the Like operator an a Wild card character.
I have the form open and the value of the [Form]![SubForm]![Field] equals for example 2018. If I try Like "*2018" it works fine.
I tried this but it doesn't work: Like "*[Form]![SubForm]![Field]"
Any ideas on how I could achieve this?
Your original code is taking the text as is.
Like "*[Form]![SubForm]![Field]" is searching for text that is like [Form]![SubForm]![Field].
You need to look for text that is like the contents of the control, not the reference to the control:
Like "*" & [Form]![SubForm]![Field]
The code above concatenates * with the value held in the control.
I know it is a simple problem and I should be able to google it and work it out myself, yet 2 hours later and I still cannot get my head around this simple problem.
I have:
Navigation Form called "Menu2"
Form called "Red Tag"
Field in Red Tag called "Nr" and "Tekst149"
I now that I do not call "Red Tag" but use its control name which is "PodformularzNawigacji".
I tried:
Forms![Menu2].[PodformularzNawigacji].Form.[Nr] Like Forms![Menu2].[PodformularzNawigacji].Form.[Tekst149]
Or
Forms![Menu2].[PodformularzNawigacji].Form.[Nr] Like Forms![Menu2].[PodformularzNawigacji].Form.[Tekst149]
Or
Forms![Menu2]![PodformularzNawigacji]![Nr] like Forms![Menu2]![PodformularzNawigacji]![Tekst149]
And many more but without success. I do not have English version of Access, perhaps that also the problem (of course I don't use "Forms" but its equivalent in my language)
Edit:
The problem is that this reference is incorrect "This form is not connected to any table or a query". When I had this form as a stand alone form everything worked it was only:
[Nr] Like Forms![Red Tag]![Tekst152]
It could be:
Forms![Menu2]![PodformularzNawigacji].Form![Nr] Like Forms![Menu2]![PodformularzNawigacji].Form![Tekst149]
I want to make friendly names of Union All inputs; however, the Destination Name is dimmed.
I have 10+ inputs and it is really annoying finding the destination "Union All Input 10"
The best solution I could find so far is add Path Annotation as displayed in the picture below:
I want to rename Union All Input 1 to somthing meaningful.
Looks like Microsoft has stated that they Won't Fix This. Bummer. Everyone please upvote the Microsoft Connect link and maybe they will assign a developer.
Edit it in the XML Code, like so:
<input refId="{}" hasSideEffects="true" name="YOUR NEW NAME HERE">
I m working lot of on this file I have lot of numbers connected with sign =
for example i have lot of rows like this.
1day
01234567890123456=00000000000000000000? 120:15:7 theNameOfTheArticleAndNumber
120:15:13 signA1
120:15:14 signB2
120:15:18 signC3
120:15:53 signD4
120:15:58 signE5
0123456789012888=00000000000000000001? 120:20:15 theNameOfTheArticleAndNumber
120:20:20 signA1
120:20:21 signB2
120:20:22 signC3
120:20:27 signD4
120:20:58 signE5
2day
01234567890123333=00000000000000000000? 120:15:7 theNameOfTheArticleAndNumber
120:15:13 signA1
120:15:14 signB2
120:15:18 signC3
120:15:53 signD4
120:15:58 signE5
01234567890199993=00000000000000000001? 120:20:15 theNameOfTheArticleAndNumber
120:20:20 signA1
120:20:21 signB2
120:20:22 signC3
120:20:27 signD4
120:20:58 signE5
What I want to delete everything in the file right and bottom of the number
01234567890123456=00000000000000000000, 0123456789012888=00000000000000000001
I want to have result in the notepad++ like this:
:::::::::::::::::::::::::::::::::::::::::::::::::::::;;
1day
01234567890123456=00000000000000000000
0123456789012888=000000000000000000001
2day
01234567890123333=00000000000000000000
01234567890199993=00000000000000000001
:::::::::::::::::::::::::::::::::::::::::::::::::
What replace command I have to use to have result like this. I m new in this program.
Thanks in advance
Kind regards
Nenad
Yes you are appsolutely right I want number in front of the ? saved yes. And to have a result like that I describe
1day
2343445665465465465=3425432543253425
1231231231312312313=1321313131313131
2day
32424324324234234324=42423432423424
23424242423232423334=23423432423432
I find a solution. In Notepad++ First I select with altand left click mouse ? 120:15:7 theNameOfTheArticleAndNumber. I make a selection of 1000 lines (with? and 120:15:7 theNameOfTheArticleAndNumber). Than I go to Search/ Mark... and in mark type : than select Bookmark line and Search mode Normal. Left click on the button Mark All after this I m going on Search Bookmark Remove Bookmark lines and waaalaa i have erased all lines between numbers with =. After this I select all text than TextFx TextFx Edit Delete Surplus Blank Lines and after this I m formating just I want. If you find faster way please post. Thanks brothers Good bless you all
Kind regards Nenad