Module:Page/doc

From Vampire Huntress Legend Series Wiki
Jump to navigation Jump to search

This is the documentation page for Module:Page

Sankofa.jpg
The wiki for all things in the Vampire Huntress Legend Series!
Check out the articles for all the novels, characters, comics and more!
About the series

The Vampire Huntress Legend Series (VHLS) is a twelve book series written by Leslie Banks under the pseudonym L.A. Banks. The series centers around a young twenty-something year old woman named Damali Richards who is a spoken word artist as well as The Neteru, a human who is born every thousand years to fight the Dark Realms. Her most dangerous and most constant enemy from The Dark Realms are vampires.

The entire series is based on the never ending struggle between good and evil. The Vampire Huntress Legend Series is also about the strong bonds of love. Love that exists in the form of family love, friendship love, love of self, love for the world (environment) and the love between man and woman.

The series spans the original twelve books, four part comic sequel, six short stories and a spin off book trilogy that remains unfinished due to the death of Banks in 2011. Additionally, the official Vampire Huntress Legend website contained additional between-the-books content, official character art, bios, dossiers and more. Read more...


Novels
Minion.jpg The Awakening (First Edition).jpg The Hunted (First Edition).jpg The Bitten (First Edition).jpg The Forbidden (First Edition).jpg The Damned (First Edition, First Print).png
01: Minion 02: The Awakening 03: The Hunted 04: The Bitten 05: The Forbidden 06: The Damned
The Forsaken (First Edition).jpg The Wicked (First Edition).jpg The Cursed (First Edition - BTB).jpg The Darkness (First Edition).jpg The Shadows (First Edition).jpg The Thirteenth (First Edition).jpg
07: The Forsaken 08: The Wicked 09: The Cursed 10: The Darkness 11: The Shadows 12: The Thirteenth
Anthologies Vampire Huntress: Dawn and Darkness
Stroke of Midnight cover art.jpg Love At First Bite.jpg Dawn and Darkness Ashes to Ashes original cover.jpg Dawn and Darkness Dust to Dust Half Cover.jpg Dawn and Darknes Bygones to Blood cover.jpg Dawn and Darkness Ride or Die cover.jpg
3.5: Make it Last Forever 7.5: Ride the Night Wind Book One: Ashes to Ashes Book Two: Dust to Dust Book Three: Bygones to Blood Book Four: Ride or Die
Neteru Academy Books Additional Content
Shadow Walker cover art.jpg Wiki.png Wiki.png Vampire Huntress Legend Sampler cover art.jpg Secret desires.jpg Wiki.png
01: Shadow Walker 02: Shadow Seekers (Unreleased) 03: Shadow Slayers (Unreleased) Vampire Huntress Legend Sampler Secret Desires Exotic Contraband:
LA Banks' VHL Concept Art Book
Official Website Content Promotional Stories
Wiki.png Wiki.png Wiki.png Wiki.png Nothing Like the First Time.png Atlantis Rising.png
Between the Books Damali's Journal Inside the Mind of a Vampire Carlos' Black Box Nothing Like the First Time Atlantis Rising
Featured Articles
Damali web.jpg
Damali Richards
Carlos Rivera profile.jpg
Carlos Rivera
Wiki.png
Vampire Council
Wiki.png
Vampires
Wiki.png
Guardians
Wiki community

How to help
Register
Please feel free to contribute by creating new articles or expanding on existing ones.
Check out the Projects page to see which pages are in need of work.
Feel free to use the Sandbox to test out large or complex edits before adding them to a page.
Register an account to keep track of your contributions.


Main page sections: Top · Flex · Bottom · Featured. Changes for the main page can be proposed here.

This module is meant to allow the goodies listed in mw:Extension:Scribunto/Lua reference manual § Title objects to be accessed by people who do not want to write a Lua module.

Usage is: {{#invoke:Page|function|parameters}}

Functions[edit source]

In the usage above, function is one of the following fields or functions for title objects:

  • id: The page_id. 0 if the page does not exist.
  • interwiki: The interwiki prefix, or the empty string if none.
  • namespace: The namespace number.
  • fragment: The fragment, or the empty string. May be assigned.
  • nsText: The text of the namespace for the page.
  • subjectNsText: The text of the subject namespace for the page.
  • text: The title of the page, without the namespace or interwiki prefixes.
  • prefixedText: The title of the page, with the namespace and interwiki prefixes.
  • fullText: The title of the page, with the namespace and interwiki prefixes and the fragment.
  • rootText: If this is a subpage, the title of the root page without prefixes. Otherwise, the same as title.text.
  • baseText: If this is a subpage, the title of the page it is a subpage of without prefixes. Otherwise, the same as title.text.
  • subpageText: If this is a subpage, just the subpage name. Otherwise, the same as title.text.
  • canTalk: Whether the page for this title could have a talk page.
  • exists: Whether the page exists. Alias for fileExists for Media-namespace titles.
  • fileExists: Whether the file exists. For File- and Media-namespace titles, this is expensive.
  • isContentPage: Whether this title is in a content namespace.
  • isExternal: Whether this title has an interwiki prefix.
  • isLocal: Whether this title is in this project. For example, on the English Wikipedia, any other Wikipedia is considered "local" while Wiktionary and such are not.
  • isRedirect: Whether this is the title for a page that is a redirect.
  • isSpecialPage: Whether this is the title for a possible special page (i.e. a page in the Special: namespace).
  • isSubpage: Whether this title is a subpage of some other title.
  • isTalkPage: Whether this is a title for a talk page.
  • isSubpageOf( title2 ): Whether this title is a subpage of the given title.
  • inNamespace( ns ): Whether this title is in the given namespace. Namespaces may be specified by anything that is a key found in mw.site.namespaces.
  • inNamespaces( ... ): Whether this title is in any of the given namespaces. Namespaces may be specified by anything that is a key found in mw.site.namespaces.
  • hasSubjectNamespace( ns ): Whether this title's subject namespace is in the given namespace. Namespaces may be specified by anything that is a key found in mw.site.namespaces.
  • contentModel: The content model for this title, as a string.
  • basePageTitle: The same as mw.title.makeTitle( title.namespace, title.baseText ).
  • rootPageTitle: The same as mw.title.makeTitle( title.namespace, title.rootText ).
  • talkPageTitle: The same as mw.title.makeTitle( mw.site.namespaces[title.namespace].talk.id, title.text ), or nil if this title cannot have a talk page.
  • subjectPageTitle: The same as mw.title.makeTitle( mw.site.namespaces[title.namespace].subject.id, title.text ).
  • subPageTitle( text ): The same as mw.title.makeTitle( title.namespace, title.text .. '/' .. text ).
  • partialUrl(): Returns title.text encoded as it would be in a URL.
  • fullUrl( query, proto ): Returns the full URL (with optional query table/string) for this title. proto may be specified to control the scheme of the resulting url: "http", "https", "relative" (the default), or "canonical".
  • localUrl( query ): Returns the local URL (with optional query table/string) for this title.
  • canonicalUrl( query ): Returns the canonical URL (with optional query table/string) for this title.
  • getContent(): Returns the (unparsed) content of the page, or nil if there is no page.

Parameters[edit source]

Page selection[edit source]

  • id = Page ID of the page to load and evaluate. If this parameter is specified, then other page selection parameters are ignored.
  • page = name of the page to load and evaluate. This is parameter "text" passed to mw.title.new or "title" passed to mw.title.makeTitle in the Mediawiki documentation.
    • Leave page blank to call mw.title.getCurrentTitle() and thus default to the page presently being viewed.
  • makeTitle = Set this to any nonblank value to call mw.title.makeTitle. Otherwise mw.title.new is called. The functions available for these and for getCurrentTitle() are generally (exactly?) the same.
  • namespace = This parameter is passed to new/makeTitle to define what page to open.
  • fragment = This parameter is passed to makeTitle per the MediaWiki documentation.
  • interwiki = This parameter is passed to makeTitle per the MediaWiki documentation.

Title object function parameters[edit source]

  • p1 is the first parameter passed to the functions within the title object.
    • "title2" for isSubPageOf
    • "ns" for inNamespace
    • (first parameter) of inNameSpaces
    • "ns" for hasSubjectNamespace
    • "text" for subpageTitle
    • "query" for fullUrl, localUrl, canonicalUrl
  • p2 is the second parameter passed to the functions within the title object.
    • (second parameter) of inNameSpaces
    • "proto" for fullUrl
  • p3 to p9 are collected and passed to the functions, but should only affect inNamespaces.

Postprocessing[edit source]

  • as = Changes how contents of a page is returned when function getContent() is called.
    • "pre" (default) to wrap the page's content inside <pre></pre>.
    • "nowiki" to wrap the page's content inside <nowiki></nowiki>
    • "expand" to expand the page's content
    • "raw" (or any other unrecognized value) to return the page content without any wrapping