Template:Transcript: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(Changing the template so that the default usage is inline (most common and simplest case), and text-block usage needs to be declared explicitly.)
(I sincerely hope this works.)
Line 1: Line 1:
{{#if:{{{block|}}}|<div style="{{#if:{{{indent|}}}|margin-left:2em}}">}}<span style="font-size:150%; font-family:'Times New Roman',serif; font-style:normal; line-height:1">“</span><span style="font-style:italic; display:inline">{{{1}}}</span><span style="font-size:150%; font-family:'Times New Roman',serif; font-style:normal; line-height:1">”</span>{{#if:{{{2|}}}|&#32;&ndash; {{{2}}}}}{{#if:{{{block|}}}|</div>}}<noinclude>
<{{#if:{{{block|}}}|div|span}} style="{{#if:{{{indent|}}}|margin-left:2em}} font-size:150%; font-family:'Times New Roman',serif; font-style:normal; line-height:1; display: inline">“{{#if:{{{block|}}}|</div><div|</span><span}} style="font-style:italic; display:inline">{{{1}}}{{#if:{{{block|}}}|</div><div|</span><span}} style="font-size:150%; font-family:'Times New Roman',serif; font-style:normal; line-height:1">”</{{#if:{{{block|}}}|div|span}}>{{#if:{{{2|}}}|&#32;&ndash; {{{2}}}}}<noinclude>


==Info==
==Info==

Revision as of 19:44, March 12, 2021

{{{1}}}

Info

This template automatically stylizes a transcript, so that all pieces of transcript text across the wiki have a consistent display. Write the text on the first parameter.

Parameters

Parameter Mandatory Default Purpose Detailed description
1 Yes Transcript The transcript text. You can transcribe text from a page in the "Notes" namespace by writing something like {{Notes:Breadbug/louie}}.
2 No Source Source of the citation, if needed.
block No Use text block If this has a value, like "y", the transcript becomes a block of text instead of being inline. This is needed in order to transcribe text with multiple lines.
indent No Indent block If this has a value, like "y", the transcript will be indented forward, if it is a block of text.

Skeleton

{{transcript|<text>|<source>|block=<block?>|indent=<indent?>}}

Examples

Code Result
{{transcript|Treasure! Treasure! Treasure! Money! Money! Money!|The Hocotate ship}}
Treasure! Treasure! Treasure! Money! Money! Money! – The Hocotate ship