示例#1
0
        protected string SwikiTableRow(
            int itemNo,
            Entrant item)
        {
            var sb = new StringBuilder();

            sb.Append($"||  {WikiUtils.ColumnOf(3, itemNo.ToString())}  ");
            sb.Append($"||  {WikiUtils.ColumnOf(40, item.Name)}  ");
            sb.Append($"||  {WikiUtils.ColumnOf(20, item.Balls.ToString())}  ");
            sb.Append("||");
            sb.AppendLine();
            return(sb.ToString());
        }
示例#2
0
        protected string SwikiTableHeader(
            string itemName)
        {
            var sb = new StringBuilder();

            sb.AppendLine($"=== {itemName} Contenders ===");
            var tableHeader = $@"|| **#** ||  {
                WikiUtils.ColumnOf(40, "**Item**")
                }  ||  {
                WikiUtils.ColumnOf(20, "**Weighting**"
                )}  ||";

            sb.Append(tableHeader);
            return(sb.ToString());
        }