Open main menu
Home
Random
Recent changes
Special pages
Community portal
Settings
About Porn Base Central
Disclaimers
Porn Base Central
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:SiteListModule
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.
Anti-spam check. Do
not
fill this in!
local p = {} local websites = { website1 = { url = "https://website1.com", modelPath = "/models/", updatePath = "/updates/", defaultPath = "", category = "[[:Category:Network1|Network1]]" }, website2 = { url = "https://website2.com", modelPath = "/people/", updatePath = "/scene/", defaultPath = "", category = "[[:Category:Network2|Network2]]" }, website3 = { url = "https://website3.com", modelPath = "/performers/", updatePath = "/videos/", defaultPath = "", category = "[[:Category:Network3|Network3]]" } } function p.site(frame) local siteKey = frame.args.site local id = frame.args.id or "" local sceneid = frame.args.sceneid or "" local alias = frame.args.alias or "" local notes = frame.args.notes or "N/A" if websites[siteKey] then local site = websites[siteKey] local siteURL = "" if id and sceneid then siteURL = site.url .. site.updatePath .. sceneid .. ".html" elseif id then siteURL = site.url .. site.modelPath .. id .. ".html" else siteURL = site.url end return string.format('[%s %s] <small>(%s)</small>', siteURL, siteKey, site.category) else return "None" end end function p.addCategory(frame) local namespace = mw.title.getCurrentTitle().namespace local category = "" if namespace == 0 then -- mainspace category = "[[Category:Articles in the mainspace using Template:SiteList]]" elseif namespace == 2 then -- userspace category = "[[Category:Articles in the userspace using Template:SiteList]]" elseif namespace == 118 then -- draft category = "[[Category:Drafts using Template:SiteList]]" end return category end return p
Summary:
Please note that all contributions to Porn Base Central 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
Porn Base Central:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Template used on this page:
Module:SiteListModule/doc
(
view source
)