Template:Preamble/doc

From Porn Base Central, the free encyclopedia of gay porn
Jump to navigation Jump to search

This template reads the Porn Base Data item linked to the current article and builds the lead sentence (preamble) in PBC style. It invokes Module:Preamble.

Usage

Place the template at the start of the article body, after the infobox:

{{preamble}}

The article must have a sitelink from its Porn Base Data item. Without that link the template cannot load the item. You can also pass an item id: {{preamble|from=Q1414}}.

Optional arguments:

  • from / qid / eid — item id if the page is not linked
  • nocat — do not add categories
  • noref — do not emit Cite footnotes from PBD (for reuse outside articles, e.g. Main Page)
  • nonotice — do not show the incomplete-preamble editor box
  • debug — always show the property checklist (also shown when required properties are missing)

Other modules should call require('Module:Preamble')._main{ from = qid, nocat = 'yes', noref = 'yes', nonotice = 'yes' }. Without those flags the lead is unchanged.

Lead order

The sentence is built in this order from Porn Base Data.

Name and parenthetical

Deceased people

If date of death (P247) is present, the verb is was; otherwise it is is.

The vital dates then look like: 3 November 1984, Russia — died 26 September 2024, Barcelona, Catalonia, Spain.

Nationality, orientation, occupation

If nationality is missing, a / an is taken from orientation or from the first occupation.

Categories

On main-namespace articles, category sitelinks from P20, P144, P131, P347 and P124 are added to the page. Place of death (P23) is never categorized this way.

Incomplete items

If a required property is missing (or the page has no item link), the template shows an editor notice listing what is missing and what is already filled, and adds [[Category:Articles with incomplete preamble]].