Template:PAGENAMEBASE/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(category update)
m (Update transclusion count)
Line 2: Line 2:
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{lua|Module:String|category=Lua String-based templates}}
{{lua|Module:String|category=Lua String-based templates}}
{{high-risk|530,000+}}
{{high-risk|725,000+}}


== Usage ==
== Usage ==

Revision as of 13:21, September 25, 2015

Usage

This template returns the current Template:Wikivar minus any disambiguation (text in parentheses).

e.g. {{PAGENAMEBASE}} on page Chiton (genus) returns Chiton

Can also pass an optional page parameter:

  • {{PAGENAMEBASE|foo (bar)}} → "foo"
  • {{PAGENAMEBASE|foo bar}} → "foo bar"

See also