Difference between revisions of "Template:Card infobox/inner"

From Artifact: The Dota Card Game Wiki
Jump to: navigation, search
(Includeonly)
 
Line 30: Line 30:
 
{{!}}-
 
{{!}}-
 
! colspan="2" {{!}} <div style="text-align: center;">{{{text}}}</div> }}
 
! colspan="2" {{!}} <div style="text-align: center;">{{{text}}}</div> }}
|}<!-- This is a parser function that fixes description summary being returned in sites like Google being just a bunch of infobox text which is pretty unreadable. -->{{#description2:{{{name}}} is a {{{rarity|}}} {{{color|}}} {{{type|}}} card in Artifact: The DOTA Card Game. {{{text|}}} }}{{#ifeq: {{{type|}}} | Hero | {{H|{{{name}}}}} | {{{name|}}} }} is a {{lcfirst:{{#if: {{{rarity|}}} | {{{rarity}}} | Basic}}}} {{#if: {{{color|}}} | {{{{{color|}}}}} | colorless}} {{{type|}}} card.
+
|}<!-- This is a parser function that fixes description summary being returned in sites like Google being just a bunch of infobox text which is pretty unreadable. -->{{#description2:{{{name}}} is a {{{rarity|}}} {{{color|}}} {{{type|}}} card in Artifact: The DOTA Card Game. {{{text|}}} }}{{#ifeq: {{{type|}}} | Hero | {{H|{{{name}}}}} | {{{name|}}} }} is a {{lcfirst:{{#if: {{{rarity|}}} | {{{rarity}}} | Basic}}}} {{#if: {{{color|}}} | {{{{{color|}}}}} | colorless}} {{{type|}}} card.</includeonly><noinclude>{{doc}}</noinclude>
</includeonly>
 

Latest revision as of 15:57, 14 December 2018

Template-info.png Documentation

This template is primarily called from Template:Card infobox and uses the parameters from that template, which are drawn from a card page's associated data page. This page feeds the data into their associated parameter slots and creates the styled infobox that is then returned to the cargo query and rendered on the page. It also generates the first line of text on the page describing what the card is. Furthermore, this templates sets a custom og:description attribute on the page so that search engines like Google don't parse the Card infobox as the search description.