2023-08-11 14:51:20 +00:00
|
|
|
using Markdig.Syntax.Inlines;
|
2023-08-08 20:03:41 +00:00
|
|
|
|
2023-08-13 16:33:54 +00:00
|
|
|
namespace OliverBooth.Markdown.Template;
|
2023-08-08 20:03:41 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a Markdown inline element that represents a MediaWiki-style template.
|
|
|
|
/// </summary>
|
|
|
|
public sealed class TemplateInline : Inline
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the raw argument string.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The raw argument string.</value>
|
|
|
|
public string ArgumentString { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the argument list.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The argument list.</value>
|
|
|
|
public IReadOnlyList<string> ArgumentList { get; set; } = ArraySegment<string>.Empty;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the name of the template.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The name of the template.</value>
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the template parameters.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The template parameters.</value>
|
2023-08-08 21:18:42 +00:00
|
|
|
public IReadOnlyDictionary<string, string> Params { get; set; } = null!;
|
2023-08-15 16:04:43 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the variant of the template.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The variant of the template.</value>
|
|
|
|
public string Variant { get; set; } = string.Empty;
|
2023-08-08 20:03:41 +00:00
|
|
|
}
|