<!-- The control template for metadata line including display url and suffix-->
<ControlTemplate xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:tm="using:SearchUI.TemplateManager"
                 x:Key="Web.Metadata_8_1_RP">
    <Grid>
        <RichTextBlock MaxLines="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}"
                       TextWrapping="Wrap"
                       IsTextSelectionEnabled="false"
                       AutomationProperties.AutomationId="Metadata">
            <Paragraph>
                <InlineUIContainer>
                    <!-- Display Url -->
                    <TextBlock tm:RichText.Text="{Binding Extended:metadata.Extended:attribution.System_Search_Contents}"
                               MaxLines="2"
                               TextWrapping="Wrap"
                               TextTrimming="CharacterEllipsis"
                               FlowDirection="LeftToRight"
                               Style="{CustomResource Resources.Shared.LinkTextStyle}"
                               AutomationProperties.AutomationId="DisplayUrl" />
                </InlineUIContainer>
                <InlineUIContainer>
                    <!-- Metadata Suffix -->
                    <TextBlock tm:RichText.Text="{Binding Extended:metadata.Extended:metadataSuffix.System_Search_Contents}"
                               MaxLines="1"
                               TextWrapping="NoWrap"
                               Style="{CustomResource Resources.Shared.SerpSecondaryTextStyle}" />
                </InlineUIContainer>
            </Paragraph>
        </RichTextBlock>
    </Grid>
</ControlTemplate>