Difference between revisions of "Template:IBDB title/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(create)
 
imported>Zyxw
(additional tests)
Line 25: Line 25:
 
}}
 
}}
  
== Name with embedded and trailing apostrophes ==
+
== Title with embedded and trailing apostrophes ==
 
{{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|title=''Ain't Misbehavin''' (unnamed parameters)
 
{{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|title=''Ain't Misbehavin''' (unnamed parameters)
 
|code=<nowiki>{{__TEMPLATENAME__|4058|Ain't Misbehavin'}}</nowiki>
 
|code=<nowiki>{{__TEMPLATENAME__|4058|Ain't Misbehavin'}}</nowiki>
Line 31: Line 31:
 
{{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|title=''Ain't Misbehavin''' (named parameters)
 
{{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|title=''Ain't Misbehavin''' (named parameters)
 
|code=<nowiki>{{__TEMPLATENAME__|id=4058|title=Ain't Misbehavin'}}</nowiki>
 
|code=<nowiki>{{__TEMPLATENAME__|id=4058|title=Ain't Misbehavin'}}</nowiki>
 +
}}
 +
 +
== Title using template for non-italic text ==
 +
{{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|title=''The Seagull'' (1938 production) (unnamed parameters)
 +
|code=<nowiki>{{__TEMPLATENAME__|7945|The Seagull {{noitalic|(1938 production)}}}}</nowiki>
 +
}}
 +
{{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|title=''The Seagull'' (1938 production) (named parameters)
 +
|code=<nowiki>{{__TEMPLATENAME__|id=7945|title=The Seagull {{noitalic|(1938 production)}}}}</nowiki>
 +
}}
 +
 +
== Title using <nowiki>''</nowiki> for non-italic text ==
 +
NOTE: This does not display correctly, but output is the same from both templates. Use the {{tl|noitalic}} template instead, as shown in the prior tests.
 +
{{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|title=''The Seagull'' (1938 production) (unnamed parameters)
 +
|code=<nowiki>{{__TEMPLATENAME__|7945|The Seagull ''(1938 production)''}}</nowiki>
 +
}}
 +
{{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|title=''The Seagull'' (1938 production) (named parameters)
 +
|code=<nowiki>{{__TEMPLATENAME__|id=7945|title=The Seagull ''(1938 production)''}}</nowiki>
 
}}
 
}}
  

Revision as of 16:49, 3 April 2019

ID only

ID (unnamed parameters)
{{IBDB title|2211}}
{{IBDB title}} Template:PAGENAMEBASE at the Internet Broadway Database
[https://www.ibdb.com/broadway-production/2211 ''[[:Template:PAGENAMEBASE]]''] at the [[Internet Broadway Database]]
{{IBDB title/sandbox}} Template:PAGENAMEBASE at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".
[https://www.ibdb.com/broadway-production/2211 ''[[:Template:PAGENAMEBASE]]''] at the [[Internet Broadway Database]]<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-2">Script error: No such module &quot;EditAtWikidata&quot;.</span></strong>
ID (named parameters)
{{IBDB title|id=2211}}
{{IBDB title}} Template:PAGENAMEBASE at the Internet Broadway Database
[https://www.ibdb.com/broadway-production/2211 ''[[:Template:PAGENAMEBASE]]''] at the [[Internet Broadway Database]]
{{IBDB title/sandbox}} Template:PAGENAMEBASE at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".
[https://www.ibdb.com/broadway-production/2211 ''[[:Template:PAGENAMEBASE]]''] at the [[Internet Broadway Database]]<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-3">Script error: No such module &quot;EditAtWikidata&quot;.</span></strong>

ID and title

ID and title (unnamed parameters)
{{IBDB title|2211|The Crucible}}
{{IBDB title}} The Crucible at the Internet Broadway Database
[https://www.ibdb.com/broadway-production/2211 ''The Crucible''] at the [[Internet Broadway Database]]
{{IBDB title/sandbox}} The Crucible at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".
[https://www.ibdb.com/broadway-production/2211 ''The Crucible''] at the [[Internet Broadway Database]]<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-4">Script error: No such module &quot;EditAtWikidata&quot;.</span></strong>
ID and title (named parameters)
{{IBDB title|id=2211|title=The Crucible}}
{{IBDB title}} The Crucible at the Internet Broadway Database
[https://www.ibdb.com/broadway-production/2211 ''The Crucible''] at the [[Internet Broadway Database]]
{{IBDB title/sandbox}} The Crucible at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".
[https://www.ibdb.com/broadway-production/2211 ''The Crucible''] at the [[Internet Broadway Database]]<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-5">Script error: No such module &quot;EditAtWikidata&quot;.</span></strong>

Title with leading apostrophe

'night, Mother (unnamed parameters)
{{IBDB title|4214|'night, Mother}}
{{IBDB title}} 'night, Mother at the Internet Broadway Database
[https://www.ibdb.com/broadway-production/4214 '''night, Mother''] at the [[Internet Broadway Database]]
{{IBDB title/sandbox}} 'night, Mother at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".
[https://www.ibdb.com/broadway-production/4214 '''night, Mother''] at the [[Internet Broadway Database]]<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-6">Script error: No such module &quot;EditAtWikidata&quot;.</span></strong>
'night, Mother (named parameters)
{{IBDB title|id=4214|title='night, Mother}}
{{IBDB title}} 'night, Mother at the Internet Broadway Database
[https://www.ibdb.com/broadway-production/4214 '''night, Mother''] at the [[Internet Broadway Database]]
{{IBDB title/sandbox}} 'night, Mother at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".
[https://www.ibdb.com/broadway-production/4214 '''night, Mother''] at the [[Internet Broadway Database]]<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-7">Script error: No such module &quot;EditAtWikidata&quot;.</span></strong>

Title with embedded and trailing apostrophes

Ain't Misbehavin' (unnamed parameters)
{{IBDB title|4058|Ain't Misbehavin'}}
{{IBDB title}} Ain't Misbehavin' at the Internet Broadway Database
[https://www.ibdb.com/broadway-production/4058 ''Ain't Misbehavin'''] at the [[Internet Broadway Database]]
{{IBDB title/sandbox}} Ain't Misbehavin' at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".
[https://www.ibdb.com/broadway-production/4058 ''Ain't Misbehavin'''] at the [[Internet Broadway Database]]<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-8">Script error: No such module &quot;EditAtWikidata&quot;.</span></strong>
Ain't Misbehavin' (named parameters)
{{IBDB title|id=4058|title=Ain't Misbehavin'}}
{{IBDB title}} Ain't Misbehavin' at the Internet Broadway Database
[https://www.ibdb.com/broadway-production/4058 ''Ain't Misbehavin'''] at the [[Internet Broadway Database]]
{{IBDB title/sandbox}} Ain't Misbehavin' at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".
[https://www.ibdb.com/broadway-production/4058 ''Ain't Misbehavin'''] at the [[Internet Broadway Database]]<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-9">Script error: No such module &quot;EditAtWikidata&quot;.</span></strong>

Title using template for non-italic text

The Seagull (1938 production) (unnamed parameters)
{{IBDB title|7945|The Seagull {{noitalic|(1938 production)}}}}
{{IBDB title}} The Seagull (1938 production) at the Internet Broadway Database
[https://www.ibdb.com/broadway-production/7945 ''The Seagull '"`UNIQ--templatestyles-00000012-QINU`"'<span class="noitalic">(1938 production)</span>''] at the [[Internet Broadway Database]]
{{IBDB title/sandbox}} The Seagull (1938 production) at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".
[https://www.ibdb.com/broadway-production/7945 ''The Seagull '"`UNIQ--templatestyles-00000014-QINU`"'<span class="noitalic">(1938 production)</span>''] at the [[Internet Broadway Database]]<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-10">Script error: No such module &quot;EditAtWikidata&quot;.</span></strong>
The Seagull (1938 production) (named parameters)
{{IBDB title|id=7945|title=The Seagull {{noitalic|(1938 production)}}}}
{{IBDB title}} The Seagull (1938 production) at the Internet Broadway Database
[https://www.ibdb.com/broadway-production/7945 ''The Seagull '"`UNIQ--templatestyles-00000017-QINU`"'<span class="noitalic">(1938 production)</span>''] at the [[Internet Broadway Database]]
{{IBDB title/sandbox}} The Seagull (1938 production) at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".
[https://www.ibdb.com/broadway-production/7945 ''The Seagull '"`UNIQ--templatestyles-00000018-QINU`"'<span class="noitalic">(1938 production)</span>''] at the [[Internet Broadway Database]]<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-11">Script error: No such module &quot;EditAtWikidata&quot;.</span></strong>

Title using '' for non-italic text

NOTE: This does not display correctly, but output is the same from both templates. Use the {{noitalic}} template instead, as shown in the prior tests.

The Seagull (1938 production) (unnamed parameters)
{{IBDB title|7945|The Seagull ''(1938 production)''}}
{{IBDB title}} The Seagull (1938 production)' at the Internet Broadway Database
[https://www.ibdb.com/broadway-production/7945 ''The Seagull ''(1938 production)''''] at the [[Internet Broadway Database]]
{{IBDB title/sandbox}} The Seagull (1938 production)' at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".
[https://www.ibdb.com/broadway-production/7945 ''The Seagull ''(1938 production)''''] at the [[Internet Broadway Database]]<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-12">Script error: No such module &quot;EditAtWikidata&quot;.</span></strong>
The Seagull (1938 production) (named parameters)
{{IBDB title|id=7945|title=The Seagull ''(1938 production)''}}
{{IBDB title}} The Seagull (1938 production)' at the Internet Broadway Database
[https://www.ibdb.com/broadway-production/7945 ''The Seagull ''(1938 production)''''] at the [[Internet Broadway Database]]
{{IBDB title/sandbox}} The Seagull (1938 production)' at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".
[https://www.ibdb.com/broadway-production/7945 ''The Seagull ''(1938 production)''''] at the [[Internet Broadway Database]]<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-13">Script error: No such module &quot;EditAtWikidata&quot;.</span></strong>