Template:Dai: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
No edit summary
Line 25: Line 25:
|novelisation)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(novelisation)|}}]]''
|novelisation)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(novelisation)|}}]]''
|video game)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(video game)|}}]]''
|video game)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(video game)|}}]]''
|webcast)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(webcast)|}}]]''
|escape game)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(escape game)|}}]]''
|omnibus)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(omnibus)|}}]]''
|omnibus)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(omnibus)|}}]]''
|CON episode)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(CON episode)|}}]]''
|CON episode)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(CON episode)|}}]]''
Line 30: Line 32:
|documentary)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(documentary)|}}]]''
|documentary)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(documentary)|}}]]''
|documentary series)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(documentary)|}}]]''
|documentary series)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(documentary)|}}]]''
|webcast)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(webcast)|}}]]''
|home media)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(home media)|}}]]''
|home media)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(home media)|}}]]''
|VHS box set)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(VHS box set)|}}]]''
|VHS box set)=''[[{{{1|}}}|{{#replace:{{{1|}}}|(VHS box set)|}}]]''

Revision as of 01:42, 12 April 2020

Instructions for {{Dai}}
{{dai}} — which stands for dab away italics — is a little template that's used by other templates to check for disambiguation terms, strip them, and then pass a linked, italicized version. Because most infoboxes render italics through the infobox code itself, the most useful place for this template is within SMW templates and tables — which do not automatically render italics.

Its most common use would probably be in the listing of a person's credits.

For instance, if you wanted to list all of cinematographer Stephan Pehrsson credits, you'd create a simple list by doing the following:

{{#ask: [[DOP::Stephan Pehrsson]]
| format = ul
| link = none
| template= dai
}}

This would result in:

If you just used {{da}}, the standard form of this template, you'd get a linked, but un-italicized, version of the story title.

See also

  • {{da smw}} for a specialised version used in some very specialized SMW circumstances