WikiFunctions.Parse.HideText.HideMore C# (CSharp) Method

HideMore() public method

Hides images, external links, templates, headings and italics
public HideMore ( string articleText, bool hideOnlyTargetOfWikilink, bool hideWikiLinks ) : string
articleText string the text of the article
hideOnlyTargetOfWikilink bool whether to hide only the target of a wikilink (so that fixes such as typo corrections may be applied to the piped part of the link)
hideWikiLinks bool whether to hide all wikilinks including those with words attached outside the link
return string
        public string HideMore(string articleText, bool hideOnlyTargetOfWikilink, bool hideWikiLinks)
        {
            return HideMore(articleText, hideOnlyTargetOfWikilink, hideWikiLinks, true);
        }

Same methods

HideText::HideMore ( string articleText ) : string
HideText::HideMore ( string articleText, bool hideOnlyTargetOfWikilink ) : string
HideText::HideMore ( string articleText, bool hideOnlyTargetOfWikilink, bool hideWikiLinks, bool hideItalics ) : string

Usage Example

 private string HideMore(string text, bool hideExternalLinks, bool leaveMetaHeadings, bool hideImages)
 {
     Hider = new HideText(hideExternalLinks, leaveMetaHeadings, hideImages);
     string s = Hider.HideMore(text);
     Assert.AreEqual(text, Hider.AddBackMore(s));
     return s;
 }
All Usage Examples Of WikiFunctions.Parse.HideText::HideMore