ข้ามไปเนื้อหา

แม่แบบ:pagename

จาก วิกิพจนานุกรม พจนานุกรมเสรี

แม่แบบ:uses lua This is the proper substitute to be used in place of {{PAGENAME}} and {{SUBPAGENAME}}. It produces the logical pagename, which is the underlying pagename free of transformations to handle unsupported characters and mammoth pages (pages such as a that are too big are hence are split into subpages). The parser function {{PAGENAME}} produces the physical pagename, which includes those transformations and also has HTML-encoding of certain punctuation characters, which makes it unsuitable for passing directly to {{urlencode:}}.

In namespaces other than the mainspace, {{pagename}} produces the subpage, i.e. the pagename after the final slash if there is such a slash, and without the namespace prefix.

For example, it will return a on all of the following pages: