Template:Infobox television channel/doc
This is a documentation subpage for
Template documentation[edit]
Template sandbox and testcases for TEMPLATE_NAME[edit]Overview[edit]This page provides a clean workflow to safely edit and validate TEMPLATE_NAME:
Use this page to:
Quick links[edit]
How to test[edit]1. Edit the sandbox at Template:TEMPLATE_NAME/sandbox. 2. Open this test page and click “Show preview” to render the sandbox with inputs below. 3. Verify each testcase: Does the “Actual output” match the “Expected output”? 4. If all pass, consider copying sandbox to live using an edit summary like: “Sync from /sandbox: passes all /testcases as of YYYY-MM-DD.” Previewing tips[edit]
Test harness[edit]The following sections render the sandbox template against curated inputs. Each testcase shows:
Testcase A: Minimal invocation[edit]Parameters: {{TEMPLATE_NAME}} Expected output: [Minimal successful output with defaults: e.g., a neutral message or basic box] Actual output (sandbox): Character and language test sandbox This sandbox is used to test how Template:TEMPLATE NAME behaves with special characters (such as Greek letters) and language-specific spans. Basic examples[edit]
Within the template[edit]Below are example calls of the template using these characters as parameters. {{TEMPLATE NAME | title = Greek test: α γ | summary = Demonstrating Greek letters: α, β, γ, and entities like γ. | attr1 = Direct Greek: α β γ δ | attr2 = Entity Greek: α β γ δ | attr3 = German label: <span lang="de">A</span>, English label: A }} Preview the page to check if:
Notes[edit]
Testcase B: Common parameters[edit]Parameters: {{TEMPLATE_NAME | param1 = Alpha | param2 = Beta | flag = yes }} Expected output: [Example: shows "Alpha" and "Beta" in designated slots; flag toggles enhanced styling] Actual output (sandbox): Character and language test sandbox This sandbox is used to test how Template:TEMPLATE NAME behaves with special characters (such as Greek letters) and language-specific spans. Basic examples[edit]
Within the template[edit]Below are example calls of the template using these characters as parameters. {{TEMPLATE NAME | title = Greek test: α γ | summary = Demonstrating Greek letters: α, β, γ, and entities like γ. | attr1 = Direct Greek: α β γ δ | attr2 = Entity Greek: α β γ δ | attr3 = German label: <span lang="de">A</span>, English label: A }} Preview the page to check if:
Notes[edit]
Testcase C: Edge values and escaping[edit]Parameters: {{TEMPLATE_NAME | param1 = [[Linked target|Visible text]] | param2 = {{subst:CURRENTTIMESTAMP}} | raw = <code><span class="x">escaped</span></code> }} Expected output: [Links render correctly; timestamp subst is literal in expected; raw shows escaped markup] Actual output (sandbox): Character and language test sandbox This sandbox is used to test how Template:TEMPLATE NAME behaves with special characters (such as Greek letters) and language-specific spans. Basic examples[edit]
Within the template[edit]Below are example calls of the template using these characters as parameters. {{TEMPLATE NAME | title = Greek test: α γ | summary = Demonstrating Greek letters: α, β, γ, and entities like γ. | attr1 = Direct Greek: α β γ δ | attr2 = Entity Greek: α β γ δ | attr3 = German label: <span lang="de">A</span>, English label: A }} Preview the page to check if:
Notes[edit]
Testcase D: Internationalization (i18n)[edit]Parameters: {{TEMPLATE_NAME | lang = ja | text = こんにちは世界 }} Expected output: [Text displays correctly for non-ASCII; applies lang attribute or rtl/ltr where applicable] Actual output (sandbox): Character and language test sandbox This sandbox is used to test how Template:TEMPLATE NAME behaves with special characters (such as Greek letters) and language-specific spans. Basic examples[edit]
Within the template[edit]Below are example calls of the template using these characters as parameters. {{TEMPLATE NAME | title = Greek test: α γ | summary = Demonstrating Greek letters: α, β, γ, and entities like γ. | attr1 = Direct Greek: α β γ δ | attr2 = Entity Greek: α β γ δ | attr3 = German label: <span lang="de">A</span>, English label: A }} Preview the page to check if:
Notes[edit]
Testcase E: Error handling[edit]Parameters: {{TEMPLATE_NAME | param1 = | required = <!-- intentionally omitted --> }} Expected output: [Shows a gentle error or maintenance category; does not break page layout] Actual output (sandbox): Character and language test sandbox This sandbox is used to test how Template:TEMPLATE NAME behaves with special characters (such as Greek letters) and language-specific spans. Basic examples[edit]
Within the template[edit]Below are example calls of the template using these characters as parameters. {{TEMPLATE NAME | title = Greek test: α γ | summary = Demonstrating Greek letters: α, β, γ, and entities like γ. | attr1 = Direct Greek: α β γ δ | attr2 = Entity Greek: α β γ δ | attr3 = German label: <span lang="de">A</span>, English label: A }} Preview the page to check if:
Notes[edit]
Maintenance[edit]
Categories[edit]Copy-paste skeletons[edit]Below are ready-to-use skeletons for the sandbox and testcases subpages. Skeleton: Template:TEMPLATE_NAME/sandbox[edit]<!-- Sandbox for TEMPLATE_NAME --> <!-- Copy the entire template source here; edit safely. --> {{#if:{{{required|}}} | <!-- normal output --> <div class="tmpl"> <b>{{{param1|}}}</b> · <i>{{{param2|}}}</i> {{#if:{{{flag|}}}|<span class="flag">✓</span>|}} {{#if:{{{raw|}}}|<span class="raw">{{{raw}}}</span>|}} </div> | <!-- error / missing required --> <span class="error">TEMPLATE_NAME: missing required parameter</span> [[Category:Pages with TEMPLATE_NAME errors]] }} Skeleton: Template:TEMPLATE_NAME/testcases[edit]<!-- Testcases for TEMPLATE_NAME; render against /sandbox --> ; Minimal : {{TEMPLATE_NAME/sandbox}} ; Common params : {{TEMPLATE_NAME/sandbox | param1 = Alpha | param2 = Beta | flag = yes }} ; Edge and escaping : {{TEMPLATE_NAME/sandbox | param1 = [[Linked target|Visible text]] | param2 = 20250101T000000Z | raw = <code><span class="x">escaped</span></code> }} ; I18n : {{TEMPLATE_NAME/sandbox | lang = ja | text = こんにちは世界 }} ; Error handling : {{TEMPLATE_NAME/sandbox | required = }} Review checklist[edit]
Template:Terminate sentence ensures a sentence ends with a specified terminator (default: a period). It avoids adding duplicate terminators and can optionally trim trailing spaces. It attempts to ignore trailing closing quotes or brackets when deciding whether a terminator is already present. Usage[edit]Basic: {{Terminate sentence|This is a sentence}}
→ This is a sentence.
Named parameters: {{Terminate sentence
|text=He said "Hello"
|term=.
}}
→ He said "Hello".
Custom terminator: {{Terminate sentence|text=Warning|term=!}}
→ Warning!
Avoid duplicate terminator: {{Terminate sentence|text=Already done.|term=.}}
→ Already done.
Trim trailing spaces: {{Terminate sentence|text=Ends with space |trim=yes}}
→ Ends with space.
Skip processing: {{Terminate sentence|text=No changes here|skip=yes}}
→ No changes here
Append a note: {{Terminate sentence|text=Complete|note=(source: 2025)}}
→ Complete. (source: 2025)
Parameters[edit]
Behavior details[edit]
Examples[edit]
{{Terminate sentence|text=He whispered "hush"|term=.}}
→ He whispered "hush".
{{Terminate sentence|text=Complete (verified)|term=.}}
→ Complete (verified).
{{Terminate sentence|text=Alert|term=!}}
→ Alert!
{{Terminate sentence|text=Wait...|term=.|allowdup=yes}}
→ Wait.... Best practices[edit]
Lua-powered variant (optional)[edit]For more robust detection (including multilingual quotes and punctuation), create -- Module:TerminateUtil
local M = {}
local closing = {
[")"] = true, ["]"] = true, ["}"] = true,
['"'] = true, ["'"] = true, ["”"] = true, ["’"] = true, ["»"] = true, ["›"] = true
}
local function trimRight(s)
return (s:gsub("%s+$",""))
end
function M.lastVisibleChar(args)
local s = args.s or ""
s = trimRight(s)
local i = #s
while i > 0 do
local c = s:sub(i,i)
if closing[c] then
i = i - 1
else
return c
end
end
return ""
end
return M
Then update the template to call: {{#invoke:TerminateUtil|lastVisibleChar|s=text}}
This improves detection for closing quotes and brackets. See also[edit]It may contain usage information, categories and other content that is not part of the original template page. |
{{Infobox television channel}} can be used to provide at-a-glance comparative information on a television channel.
Usage
[edit]{{Infobox television channel
| name =
| logofile =
| logosize =
| logocaption =
| logoalt =
| logo2 =
| established =
| airdate =
| launch = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| closed date = <!-- {{End date|YYYY|MM|DD|df=y}} -->
| picture format =
| share =
| share as of =
| share source =
| network =
| owner =
| parent =
| slogan =
| motto =
| country =
| language =
| broadcast area =
| affiliates =
| headquarters =
| former names =
| replaced names =
| replaced by names =
| sister names =
| timeshift names =
| web = <!---{{url|}}--->
| terr serv 1 =
| terr chan 1 =
| sat serv 1 =
| sat chan 1 =
| cable serv 1 =
| cable chan 1 =
| sat radio serv 1 =
| sat radio chan 1 =
| iptv serv 1 =
| iptv chan 1 =
| online serv 1 =
| online chan 1 =
| 3gmobile serv 1 =
}}
Parameters
[edit]All parameters are optional.
| Parameter | Contents |
|---|---|
| name | The channel name, will be used as a heading Required |
| logofile | The image name, without the "[[image:" syntax |
| logosize | If the image will cause the infobox to stretch then use 200px for this parameter |
| logocaption | The caption for the logo, for example the years when the logo was used |
| logoalt | Alt text description of the image |
| launch | The date the channel was launched |
| closed date | The date the channel was closed |
| picture format | The picture format(s) available (e.g. 576i (SDTV) or 1080i (HDTV)) |
| share | The audience share |
| share as of | The date for which that audience share is appropriate |
| share source | The URL of a source for the share (e.g. BARB) |
| network | The parent network for the channel |
| owner | Who owns the channel (add the owner's parent company/companies if not a well known name) |
| parent | |
| slogan | |
| motto | |
| country | |
| language | |
| broadcast area | |
| affiliates | |
| headquarters | |
| former names | The former names of the channel (add dates of name change) |
| replaced names | The channel that this channel replaced, optionally linked to that channel's article |
| replaced by names | The channel this channel was replaced by |
| sister names | The name or names of sister channel(s) |
| timeshift names | The name or names of timeshift channel(s) |
| web | Link to website |
| availability note | Note on availability information, e.g. "At time of closure" or "Not yet launched, based on currently available information" or similar |
| terr serv 1 | Name of the 1st terrestrial service provider (optionally linked to the page for it) |
| terr chan 1 | Channel number on that service |
| terr serv 2 ... 20 | Name of the 2nd (and so on to 20th) terrestrial service provider (optionally linked to the page for it) |
| terr chan 2 ... 20 | Channel number on that service |
| sat avail | A note on satellite availability, most commonly: "Not available" |
| sat serv 1 | Name of the 1st satellite service provider (optionally linked to the page for it) |
| sat chan 1 | Channel number on that service |
| sat serv 2 ... 30 | Name of the 2nd (and so on to 30th) satellite service provider (optionally linked to the page for it) |
| sat chan 2 ... 30 | Channel number on that service |
| cable avail | A note on cable availability, most commonly: "Not available" |
| cable serv 1 | Name of the 1st cable service provider (optionally linked to the page for it) |
| cable chan 1 | Channel number on that service |
| cable serv 2 ... 20 | Name of the 2nd (and so on to 20th) cable service provider (optionally linked to the page for it) |
| cable chan 2 ... 20 | Channel number on that service |
| sat radio avail | A note on satellite radio availability, most commonly: "Not available" |
| sat radio serv 1 | Name of the 1st satellite radio service provider (optionally linked to the page for it) |
| sat radio chan 1 | Channel number on that service |
| sat radio serv 2 ... 20 | Name of the 2nd (and so on to 20th) satellite radio service provider (optionally linked to the page for it) |
| sat radio chan 2 ... 20 | Channel number on that service |
| iptv avail | A note on IPTV television service availability, most commonly: "Not available" |
| iptv serv 1 | Name of the 1st IPTV television service provider (optionally linked to the page for it) |
| iptv chan 1 | Channel number on that service |
| iptv serv 2 ... 20 | Name of the 2nd IPTV television service provider (optionally linked to the page for it) |
| iptv chan 2 ... 20 | Channel number on that service |
| online avail | A note on online watching availability, most commonly: "Not available" |
| online serv 1 | Name of the 1st online watching service provider (optionally linked to the page for it) |
| online chan 1 | Channel number on that service |
| online serv 2 ... 20 | Name of the 2nd (and so on to 20th) online watching service provider (optionally linked to the page for it) |
| online chan 2 ... 20 | Channel number on that service |
| 3gmobile avail | A note on mobile device via 3G mobile network watching availability, most commonly: "Not available" |
| 3gmobile serv 1 | Name of the 1st 3G mobile network watching service provider (optionally linked to the page for it) |
If you don't know what to type in, don't delete it, just leave it blank there, and it won't be shown.
Example
[edit]{{Infobox television channel
| name = Sky1
| logofile = No Photo Available.svg
| logosize = 200px
| logocaption = Sky1 logo (2001–present)
| logoalt = No Photo Available in blue on a light grey background
| launch = {{Start date|1982|04|26|df=y}}
| share = 0.9%
| share as of = November 2010
| share source = [http://www.barb.co.uk/report/monthlyViewing?period%5B%5D=20101101&button_submit=View+Figures BARB]
| owner = [[British Sky Broadcasting|BSkyB]]
| picture format = [[576i]] ([[16:9]] and [[4:3]]) ([[SDTV]]),<br>[[1080i]] ([[High-definition television|HDTV]])
| former names = {{plainlist|
* {{j|Satellite Television (1982–1984)}}
* Sky Channel (1984–1989)
* Sky One (1989–2008)
}}
| timeshift names =
| country = United Kingdom, Ireland
| sister names = [[Sky2]],<br>[[Sky3]],<br>[[Sky Living]],<br>[[Sky Arts]],<br>[[Sky Atlantic]],<br>[[Sky Box Office (UK & Ireland)|Sky Box Office]],<br>[[Sky Movies]],<br>[[Sky News]],<br>[[Sky Sports]],<br>[[Sky Sports News]]
| sat serv 1 = [[Sky (UK & Ireland)|Sky]]
| sat chan 1 = {{plainlist|
* Channel 106
* Channel 170 (HD)
}}
| cable serv 1 = [[Virgin Media]]
| cable chan 1 = {{plainlist|
* Channel 121
* Channel 122 (HD)
}}
| cable serv 2 = [[UPC Ireland]]
| cable chan 2 = Channel 114
| adsl serv 1 = [[TalkTalk TV]]
| adsl chan 1 = Channel 35
| online serv 1 = [[Sky Player]]
| online chan 1 = {{url|http://skyplayer.sky.com/vod/page/default/home.do|Watch live}} {{j|(UK and Ireland only)}}
| web = {{url|sky.com/sky1}}
}}
| Sky1 | |
|---|---|
| Launched | 26 April 1982 |
| Owned by | BSkyB |
| Picture format |
576i (16:9 and 4:3) (SDTV), 1080i (HDTV) |
| Audience share | 0.9% (November 2010, BARB) |
| Country | United Kingdom, Ireland |
| Formerly called |
|
| Sister channel(s) |
Sky2, Sky3, Sky Living, Sky Arts, Sky Atlantic, Sky Box Office, Sky Movies, Sky News, Sky Sports, Sky Sports News |
| Website |
sky |
Availability | |
| Satellite | |
| Sky |
|
| Cable | |
| Virgin Media |
|
| UPC Ireland | Channel 114 |
| IPTV | |
| TalkTalk TV | Channel 35 |
| Streaming media | |
| Sky Player | Watch live Template:J |
Closed date set
[edit]{{Infobox television channel
| name = Lifetime
| logofile = No Photo Available.svg
| logosize = 200px
| logocaption = Lifetime logo (2005–2010)
| logoalt = No Photo Available in blue on a light grey background
| launch = {{start date|1989|04|10|df=y}}
| closed date = {{end date|2010|12|01|df=y}}
| owner = [[A&E Television Networks]]
| picture format = [[576i]] ([[16:9]] and [[4:3]]) ([[SDTV]]),<br>[[1080i]] ([[High-definition television|HDTV]])
| former names = Life Network (1989-1999)
| timeshift names =
| country = United States
| sister names = [[A&E (TV channel)|A&E]], [[Disney Channel]], [[Crime & Investigation Network]]
| sat serv 1 = [[DirecTV]]
| sat chan 1 = Channel 1,<br>Channel 17 (HD)
| cable serv 1 = [[Comcast]]
| cable chan 1 = Channel 2,<br>Channel 21 (HD)
| cable serv 2 = [[TiVo]]
| cable chan 2 = Channel 3
| adsl serv 1 = [[TalkTalk TV]]
| adsl chan 1 = Channel 4
| online serv 1 =
| online chan 1 =
| web =
}}
| Lifetime | |
|---|---|
| Launched | 10 April 1989 |
| Closed | 1 December 2010 |
| Owned by | A&E Television Networks |
| Picture format |
576i (16:9 and 4:3) (SDTV), 1080i (HDTV) |
| Country | United States |
| Formerly called | Life Network (1989-1999) |
| Sister channel(s) | A&E, Disney Channel, Crime & Investigation Network |
Availability | |
| Satellite | |
| DirecTV |
Channel 1, Channel 17 (HD) |
| Cable | |
| Comcast |
Channel 2, Channel 21 (HD) |
| TiVo | Channel 3 |
| IPTV | |
| TalkTalk TV | Channel 4 |