Template:Wikifer definition macro: Difference between revisions
Jump to navigation
Jump to search
Amwelladmin (talk | contribs) No edit summary |
Amwelladmin (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
With Selection.Find | With Selection.Find | ||
.Text = ChrW(8220) & "([a-z,A-Z,0-9, ]{1,})" & ChrW(8221) | .Text = ChrW(8220) & "([a-z,A-Z,0-9, ]{1,})" & ChrW(8221) | ||
.Replacement.Text = ChrW(8220) & "'''<nowiki> | .Replacement.Text = ChrW(8220) & "<nowiki>'''{{</nowiki>{{{1}}}prov|\1<nowiki>}}'''</nowiki>" & ChrW(8221 _ | ||
) | ) | ||
.Forward = True | .Forward = True |
Latest revision as of 22:07, 20 January 2020
Sub Wikifier definition Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = ChrW(8220) & "([a-z,A-Z,0-9, ]{1,})" & ChrW(8221) .Replacement.Text = ChrW(8220) & "'''{{{{{1}}}prov|\1}}'''" & ChrW(8221 _ ) .Forward = True .Wrap = wdFindAsk .Format = False .MatchCase = False .MatchWholeWord = False .MatchAllWordForms = False .MatchSoundsLike = False .MatchWildcards = True End With Selection.Find.Execute Replace:=wdReplaceAll End Sub