Template:Transcript: Difference between revisions

Changing the template so that the default usage is inline (most common and simplest case), and text-block usage needs to be declared explicitly.
No edit summary
(Changing the template so that the default usage is inline (most common and simplest case), and text-block usage needs to be declared explicitly.)
Line 1: Line 1:
{{#if:{{{inline|}}}||<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:{{{inline|}}}||</div>}}<noinclude>
{{#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>


==Info==
==Info==
Line 9: Line 9:
|-
|-
! 1
! 1
| '''Yes''' ||  || Transcript || The transcript text. You can use <code><nowiki>{{ }}</nowiki></code> to transcribe text from the "Notes:" namespace.
| '''Yes''' ||  || Transcript || The transcript text. You can transcribe text from a page in the "Notes" namespace by writing something like <code><nowiki>{{Notes:Breadbug/louie}}</nowiki></code>.
|-
|-
! 2
! 2
| No ||  || Source || Description of the source.
| 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
! indent
| No ||  || Indent block || If this has a value, like "y", the transcript becomes a block, and is placed a bit to the right.
| No ||  || Indent block || If this has a value, like "y", the transcript will be indented forward, if it is a block of text.
|-
! inline
| No ||  || Inline text || If this has a value, like "y", the transcript will be in the same line as the surrounding text.
|}
|}


==Skeleton==
==Skeleton==
<pre>
<pre>
{{transcript|<text>|<source>|indent=<indent?>|inline=<inline?>}}
{{transcript|<text>|<source>|block=<block?>|indent=<indent?>}}
</pre>
</pre>