Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in or
create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision |
Your text |
| Line 63: |
Line 63: |
| end | | end |
|
| |
|
| -- ── welcome() ──────────────────────────────────────────────────── | | -- ── hero() ──────────────────────────────────────────────────────── |
| function p.welcome( frame )
| |
| local articles = mw.site.stats.articles
| |
| local formatted = tostring( articles ):reverse():gsub( '(%d%d%d)', '%1,' ):reverse():gsub( '^,', '' )
| |
| | |
| local logo = frame:preprocess( '[[File:BSG-WIKI SM.png|40px|link=Main Page|alt=Battlestar Wiki]]' )
| |
| | |
| local desc = frame:preprocess(
| |
| "The free, non-corporate encyclopedia on all things " ..
| |
| "''Battlestar Galactica'' \226\128\148 " ..
| |
| formatted .. "\194\160articles and counting."
| |
| )
| |
| | |
| local inner =
| |
| '<div class="bsw-welcome-logo">' .. logo .. '</div>' ..
| |
| '<div class="bsw-welcome-text">' ..
| |
| '<div class="bsw-welcome-title">Battlestar Wiki</div>' ..
| |
| '<div class="bsw-welcome-desc">' .. desc .. '</div>' ..
| |
| '</div>' ..
| |
| '<div class="bsw-welcome-links">' ..
| |
| frame:preprocess( '[[Special:Random|Random article]]' ) ..
| |
| frame:preprocess( '[[Battlestar_Wiki:About|About]]' ) ..
| |
| frame:preprocess( '[[Battlestar_Wiki:Community_portal|Community]]' ) ..
| |
| '</div>'
| |
| | |
| return '<div class="bsw-welcome">' .. inner .. '</div>'
| |
| end
| |
| | |
| | |
| function p.hero( frame ) | | function p.hero( frame ) |
| local args = frame.args | | local args = frame.args |