Bản mẫu:Wikivar

Bách khoa toàn thư mở Wikipedia
Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

This template facilitates the displaying of Wikipedia variables and built-in "magic word" (i.e. pseudo-template) names and, optionally, their :parameters. The variable/magic-word names are automatically uppercased:

{{wikivar|PAGENAME}} and {{wikivar|pagename}} both produce: {{PAGENAME}}

The second parameter supplied will be treated as the variable or magic word's parameter/s. For example:

{{wikivar|DEFAULTSORT|Kusanagi, Motoko}} produces: {{DEFAULTSORT:Kusanagi, Motoko}}

To convert the variable or magic word's name into a link to the "Variables" section in Help:Magic words, set the first parameter as "linked". For example:

{{wikivar|linked|PAGENAME}} produces: {{PAGENAME}}

Xem thêm[sửa mã nguồn]