Ir para o conteúdo

Predefinição:PAGENAMEBASE/doc

De DropWiki PoE 2
Revisão de 21h22min de 29 de janeiro de 2025 por 2804:7f0:b342:7285:2d1e:1c01:abfd:fada (discussão) (Criou página com '{{Documentation subpage}} {{Lua|Module:String}} This template returns the current page name without text in parentheses. If the page name has more than one set of parentheses, only the last one is removed. It is not to be confused with the magic word, <code><nowiki>{{BASEPAGENAME}}</nowiki></code>, which returns the page name without its subpages. ==Usage== <code><nowiki>{{PAGENAMEBASE}}</nowiki></code> The first unnamed parameter can be used to...')
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)

Lua logo

This template uses the following modules:

This template returns the current page name without text in parentheses. If the page name has more than one set of parentheses, only the last one is removed.

It is not to be confused with the magic word, {{BASEPAGENAME}}, which returns the page name without its subpages.

Usage

{{PAGENAMEBASE}}

The first unnamed parameter can be used to specify the page name. Otherwise, it defaults to {{PAGENAME}}.

Examples

{{PAGENAMEBASE|Blight (game mechanic)}} → Blight

{{PAGENAMEBASE|Blight league}} → Blight league

{{PAGENAMEBASE|Map:Harbinger Map (Low Tier) (Blight)}} → Map:Harbinger Map (Low Tier)

This predefinição was adapted from Template:PAGENAMEBASE on Wikipedia.
Adaptation is noted for reference and attribution only. This predefinição may differ from the original in function or in usage.