Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Schjessu wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
LE SCHOOL SYSTEMS BLOCKING OUR GOOD WIKI! 1984 1984 1984!
mayb ill do smth abt it
Editing
Module
:
Tw
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Once you make an edit, a temporary account will be created for you.
Learn more
.
Log in
or
create an account
to continue receiving notifications after this account expires, and to access other features.
Anti-spam check. Do
not
fill this in!
local p = {} local MAX_DISPLAYED = 5 function p.main(frame) local pframe = frame:getParent() local args = pframe.args local items = {} local i = 1 while true do local v = args[i] if v == nil then break end if v ~= '' then table.insert(items, v) end i = i + 1 end if #items == 0 then return '' end local visible, hidden = {}, {} for idx, v in ipairs(items) do if idx <= 2 then table.insert(visible, v) elseif idx <= MAX_DISPLAYED then table.insert(hidden, v) else break end end local visibleText = table.concat(visible) local hiddenText = table.concat(hidden) -- collapse/expand should probably be fixed, i don't give a shit about it though local out = {} table.insert(out, visibleText) table.insert(out, '<div class="collapsibletoggle center"><span style="color: blue;">[<span class="mw-customtoggle-tw showhidetext"><span class="collapsibletoggletext hiddentext">Collapse</span></span>]</span></div>') table.insert(out, '<div id="mw-customcollapsible-tw" class="mw-collapsible mw-collapsed noexcerpt">') table.insert(out, hiddenText) table.insert(out, '</div>') return table.concat(out, '\n') end return p
Summary:
Please note that all contributions to Schjessu wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Schjessu wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Page included on this page:
Module:Tw/doc
(
edit
)
Search
Search
Editing
Module
:
Tw
Add topic