Template:Pageid to title/doc: Difference between revisions
Template page
More actions
Created page with "{{Documentation subpage}} {{Lua|Module:Page}} Returns the title (including namespace) of a page specified by its Page ID. Unlike the title, the Page ID does not change when a page is moved, which makes it a stable reference. == Usage == {{((}}Pageid to title|''Page ID''}} == Examples == {{Automarkup | {{((}}Pageid to title{{!}}21304840{{))}} | [[{{((}}Pageid to title{{!}}21304840{{))}}]] }} == See also == *{{tlp|Wikidata|title|Q776}}..." |
(No difference)
|
Latest revision as of 00:26, 17 February 2025
| This is a documentation subpage for Template:Pageid to title. It may contain usage information, categories and other content that is not part of the original template page. |
| Uses Lua: |
Returns the title (including namespace) of a page specified by its Page ID. Unlike the title, the Page ID does not change when a page is moved, which makes it a stable reference.
Usage
{{Pageid to title|Page ID}}
Examples
| Markup | Renders as |
|---|---|
{{Pageid to title|21304840}} |
Error: mw.title.new(21304840) failed |
[[{{Pageid to title|21304840}}]] |
[[Error: mw.title.new(21304840) failed]] |
See also
- {{Wikidata|title|Q776}} → Template:Wikidata
- {{Wikidata|title|linked|Q776}} → Template:Wikidata
- {{Wikidata|label|linked|Q776}} → Template:Wikidata