Module:Icon/table
Appearance
This module creates a test case template using data aggregated from Module:Icon/data and Module:Icon/data/sandbox. It is intended to be displayed at Template:Icon/testcases.
Usage
{{#invoke:icon/table|main}}
Output
Code | Template | Sandbox | Type |
---|---|---|---|
![]() |
![]() |
Wikinews page | |
![]() |
![]() |
Featured sound | |
![]() |
![]() |
Featured portal candidate | |
![]() |
![]() |
Original barnstar | |
![]() |
![]() |
Wikidata page | |
![]() |
![]() |
Phabricator | |
![]() |
![]() |
Wikiversity page | |
![]() |
![]() |
Failed featured list candidate | |
![]() |
![]() |
Featured article review | |
![]() |
![]() |
Delisted good article | |
![]() |
![]() |
Featured picture candidate | |
![]() |
![]() |
Four Award | |
![]() |
![]() |
Did You Know? | |
![]() |
![]() |
Disambiguation page | |
![]() |
![]() |
Peer review | |
![]() |
![]() |
Stub-Class article | |
Guild of Copy Editors | |||
![]() |
![]() |
Wikispecies page | |
![]() |
![]() |
Failed A-Class article candidate | |
![]() |
![]() |
Administrator | |
![]() |
![]() |
Featured article removal candidate | |
![]() |
![]() |
B-Class review | |
![]() |
![]() |
Outline | |
![]() |
![]() |
Bplus-Class article | |
![]() |
![]() |
Featured picture candidate | |
![]() |
![]() |
Audited article of limited subject matter | |
![]() |
![]() |
Project page | |
![]() |
![]() |
Good article | |
![]() |
![]() |
Featured article | |
![]() |
![]() |
Alert | |
![]() |
![]() |
Failed good article nominee | |
![]() |
![]() |
Quality image on Wikimedia Commons | |
![]() |
![]() |
Wikibooks page | |
![]() |
![]() |
Non-article page | |
![]() |
![]() |
Wikipedia book | |
![]() |
![]() |
Failed featured article candidate | |
![]() |
![]() |
Former featured topic | |
![]() |
![]() |
Four Award | |
![]() |
![]() |
Failed good article nominee | |
![]() |
![]() |
Former featured list | |
![]() |
![]() |
Wikitech | |
![]() |
![]() |
Wikisource page | |
![]() |
![]() |
Category | |
![]() |
![]() |
Wiktionary page | |
![]() |
![]() |
Former featured sound | |
![]() |
![]() |
Failed A-Class article candidate | |
![]() |
![]() |
Former featured topic | |
![]() |
![]() |
Did You Know? | |
![]() |
![]() |
A-Class article | |
![]() |
![]() |
C-Class article | |
![]() |
![]() |
B-Class article | |
![]() |
![]() |
A-Class article candidate | |
![]() |
![]() |
Featured topic removal candidate | |
![]() |
![]() |
Good topic removal candidate | |
![]() |
![]() |
Wikivoyage page | |
![]() |
![]() |
Former featured portal | |
![]() |
![]() |
Good article on hold | |
![]() |
![]() |
Featured list candidate | |
![]() |
![]() |
Cleanup work | |
![]() |
![]() |
Vital article | |
![]() |
![]() |
Unknown-Class article | |
![]() |
![]() |
Redirect | |
![]() |
![]() |
Information | |
![]() |
![]() |
Featured topic candidate | |
![]() |
![]() |
Phabricator | |
![]() |
![]() |
Module | |
![]() |
![]() |
Featured list candidate | |
![]() |
![]() |
Million Award | |
![]() |
![]() |
Disambiguation page | |
![]() |
![]() |
Picture of the Day | |
![]() |
![]() |
Valued image on Wikimedia Commons | |
![]() |
![]() |
Administrator | |
![]() |
![]() |
Meta-wiki page | |
![]() |
![]() |
Wikiquote page | |
![]() |
![]() |
Featured list | |
![]() |
![]() |
Black alert | |
![]() |
![]() |
Question | |
![]() |
![]() |
Good article nominee | |
![]() |
![]() |
Featured sound candidate | |
![]() |
![]() |
Featured portal review | |
![]() |
![]() |
Good topic candidate | |
![]() |
![]() |
WikiProject | |
![]() |
![]() |
In The News | |
![]() |
![]() |
Featured topic candidate | |
![]() |
![]() |
Good topic candidate | |
![]() |
![]() |
A-Class article candidate | |
![]() |
![]() |
Commons page | |
![]() |
![]() |
Today's Featured List | |
![]() |
![]() |
Valued picture | |
![]() |
![]() |
Good topic | |
![]() |
![]() |
Demoted A-Class article | |
![]() |
![]() |
Good article nominee | |
![]() |
![]() |
Featured article candidate | |
![]() |
![]() |
Good article, 2nd opinion | |
![]() |
![]() |
List-Class article | |
![]() |
![]() |
Bplus-Class article | |
![]() |
![]() |
Template | |
![]() |
![]() |
Category | |
![]() |
![]() |
Featured picture | |
![]() |
![]() |
Template | |
![]() |
![]() |
Original barnstar hires | |
![]() |
![]() |
Black, white, and red alert | |
![]() |
![]() |
Wikipedia page | |
![]() |
![]() |
Disambiguation page | |
![]() |
![]() |
Featured list removal candidate | |
![]() |
![]() |
Former featured list | |
![]() |
![]() |
Portal peer review | |
![]() |
![]() |
Failed featured list candidate | |
![]() |
![]() |
Demoted A-Class article | |
![]() |
![]() |
A-Class article candidate | |
![]() |
![]() |
File | |
![]() |
![]() |
Valued picture candidate | |
![]() |
![]() |
On This Day | |
![]() |
![]() |
List-Class article | |
![]() |
![]() |
Redirect | |
![]() |
![]() |
Green alert | |
![]() |
![]() |
Template | |
![]() |
![]() |
Good article reassessment | |
![]() |
![]() |
Featured topic | |
![]() |
![]() |
Redirect | |
![]() |
![]() |
Question | |
![]() |
![]() |
Demoted article | |
![]() |
![]() |
Needed article | |
![]() |
![]() |
Essay | |
![]() |
![]() |
Featured list removal candidate | |
![]() |
![]() |
Disambiguation page | |
![]() |
![]() |
Today's Featured Article | |
![]() |
![]() |
Before the featured portal process ceased in 2017, this had been designated as a featured portal. | |
![]() |
![]() |
Failed good article nominee | |
![]() |
![]() |
Category | |
![]() |
![]() |
Portal | |
![]() |
![]() |
User-Class article | |
![]() |
![]() |
Failed good article nominee | |
![]() |
![]() |
Discussion | |
![]() |
![]() |
Featured article candidate | |
![]() |
![]() |
B-Class review | |
![]() |
![]() |
Draft-Class article | |
![]() |
![]() |
Former featured picture | |
![]() |
![]() |
File | |
![]() |
![]() |
Failed featured article candidate | |
![]() |
![]() |
Start-Class article | |
![]() |
![]() |
Former featured article | |
![]() |
![]() |
MediaWiki | |
![]() |
![]() |
Former featured article |
-- Create a table of icons to display on the template test case page
local p = {}
local m_iconData = mw.loadData("Module:Icon/data")
local m_iconSandboxData = mw.loadData("Module:Icon/data/sandbox")
local function mergeTables(...)
local ret = {}
for _, t in ipairs{...} do
for k, v in pairs(t) do
ret[k] = v
end
end
return ret
end
function p.main(frame)
local iconDataCollection = mergeTables(m_iconData, m_iconSandboxData)
local ret = {
'{| class="wikitable sortable"',
'|+ style="padding-bottom: 0.3em; font-size: 150%; font-weight: normal" |',
'! Code',
'! [[Template:Icon|Template]]',
'! [[Template:Icon/sandbox|Sandbox]]',
'! Type',
}
for code, iconData in pairs(iconDataCollection) do
if code ~= "_DEFAULT" then
table.insert(ret, '|- style="text-align: center;"')
table.insert(ret, '| ' .. frame:expandTemplate{title = 'icon', args = {code}})
table.insert(ret, '| ' .. frame:expandTemplate{title = 'icon/sandbox', args = {code}})
table.insert(ret, "| '''" .. iconData.tooltip .. "'''")
end
end
table.insert(ret, '|}')
return table.concat(ret, '\n')
end
return p