| @@ 592-598 (lines=7) @@ | ||
| 589 | * @param string $title |
|
| 590 | * @return string |
|
| 591 | */ |
|
| 592 | public static function pagename( $parser, $title = null ) { |
|
| 593 | $t = Title::newFromText( $title ); |
|
| 594 | if ( is_null( $t ) ) { |
|
| 595 | return ''; |
|
| 596 | } |
|
| 597 | return wfEscapeWikiText( $t->getText() ); |
|
| 598 | } |
|
| 599 | public static function pagenamee( $parser, $title = null ) { |
|
| 600 | $t = Title::newFromText( $title ); |
|
| 601 | if ( is_null( $t ) ) { |
|
| @@ 599-605 (lines=7) @@ | ||
| 596 | } |
|
| 597 | return wfEscapeWikiText( $t->getText() ); |
|
| 598 | } |
|
| 599 | public static function pagenamee( $parser, $title = null ) { |
|
| 600 | $t = Title::newFromText( $title ); |
|
| 601 | if ( is_null( $t ) ) { |
|
| 602 | return ''; |
|
| 603 | } |
|
| 604 | return wfEscapeWikiText( $t->getPartialURL() ); |
|
| 605 | } |
|
| 606 | public static function fullpagename( $parser, $title = null ) { |
|
| 607 | $t = Title::newFromText( $title ); |
|
| 608 | if ( is_null( $t ) || !$t->canTalk() ) { |
|
| @@ 620-626 (lines=7) @@ | ||
| 617 | } |
|
| 618 | return wfEscapeWikiText( $t->getPrefixedURL() ); |
|
| 619 | } |
|
| 620 | public static function subpagename( $parser, $title = null ) { |
|
| 621 | $t = Title::newFromText( $title ); |
|
| 622 | if ( is_null( $t ) ) { |
|
| 623 | return ''; |
|
| 624 | } |
|
| 625 | return wfEscapeWikiText( $t->getSubpageText() ); |
|
| 626 | } |
|
| 627 | public static function subpagenamee( $parser, $title = null ) { |
|
| 628 | $t = Title::newFromText( $title ); |
|
| 629 | if ( is_null( $t ) ) { |
|
| @@ 627-633 (lines=7) @@ | ||
| 624 | } |
|
| 625 | return wfEscapeWikiText( $t->getSubpageText() ); |
|
| 626 | } |
|
| 627 | public static function subpagenamee( $parser, $title = null ) { |
|
| 628 | $t = Title::newFromText( $title ); |
|
| 629 | if ( is_null( $t ) ) { |
|
| 630 | return ''; |
|
| 631 | } |
|
| 632 | return wfEscapeWikiText( $t->getSubpageUrlForm() ); |
|
| 633 | } |
|
| 634 | public static function rootpagename( $parser, $title = null ) { |
|
| 635 | $t = Title::newFromText( $title ); |
|
| 636 | if ( is_null( $t ) ) { |
|
| @@ 634-640 (lines=7) @@ | ||
| 631 | } |
|
| 632 | return wfEscapeWikiText( $t->getSubpageUrlForm() ); |
|
| 633 | } |
|
| 634 | public static function rootpagename( $parser, $title = null ) { |
|
| 635 | $t = Title::newFromText( $title ); |
|
| 636 | if ( is_null( $t ) ) { |
|
| 637 | return ''; |
|
| 638 | } |
|
| 639 | return wfEscapeWikiText( $t->getRootText() ); |
|
| 640 | } |
|
| 641 | public static function rootpagenamee( $parser, $title = null ) { |
|
| 642 | $t = Title::newFromText( $title ); |
|
| 643 | if ( is_null( $t ) ) { |
|
| @@ 648-654 (lines=7) @@ | ||
| 645 | } |
|
| 646 | return wfEscapeWikiText( wfUrlencode( str_replace( ' ', '_', $t->getRootText() ) ) ); |
|
| 647 | } |
|
| 648 | public static function basepagename( $parser, $title = null ) { |
|
| 649 | $t = Title::newFromText( $title ); |
|
| 650 | if ( is_null( $t ) ) { |
|
| 651 | return ''; |
|
| 652 | } |
|
| 653 | return wfEscapeWikiText( $t->getBaseText() ); |
|
| 654 | } |
|
| 655 | public static function basepagenamee( $parser, $title = null ) { |
|
| 656 | $t = Title::newFromText( $title ); |
|
| 657 | if ( is_null( $t ) ) { |
|