You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Phabricator project: #foo

Template:Ptag/doc: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
imported>BryanDavis
(Strip translation support)
 
imported>Gergő Tisza
No edit summary
 
Line 6: Line 6:
:<nowiki>{{ptag|foo}}</nowiki>
:<nowiki>{{ptag|foo}}</nowiki>
{{ptag|foo}}
{{ptag|foo}}
== TemplateData ==
<templatedata>
{
"params": {
"1": {
"label": "tag",
"description": "Phabricator tag name (what's seen in the URL after clicking on a Phabricator tag)",
"example": "mediawiki-extensions-pluggable-auth",
"type": "string",
"required": true
},
"2": {
"label": "tag",
"description": "more tags",
"type": "string"
},
"3": {
"label": "tag",
"description": "more tags",
"type": "string"
}
},
"description": "Show the Phabricator project(s) relevant to this page as a status indicator in the top right corner.",
"format": "inline"
}
</templatedata>


== See also ==
== See also ==
Line 12: Line 39:
* [[Template:Phabricator]] - similar to <code><nowiki>[[</nowiki>phab:T''nnn'']]</code>
* [[Template:Phabricator]] - similar to <code><nowiki>[[</nowiki>phab:T''nnn'']]</code>
* [[Template:PhabT]] - similar to <code><nowiki>[[</nowiki>phab:T''nnn'']]</code> but without requiring the "T"
* [[Template:PhabT]] - similar to <code><nowiki>[[</nowiki>phab:T''nnn'']]</code> but without requiring the "T"
* [[Template:Ptag2]] - similar to Ptag but displays an inline badge instead of a page-level badge

Latest revision as of 21:44, 4 August 2022

This page sets a page status indicator with the name "phabricator-project" and the specified project name (first parameter).

Example "Foo" used on this page.

{{ptag|foo}}


TemplateData

<templatedata> { "params": { "1": { "label": "tag", "description": "Phabricator tag name (what's seen in the URL after clicking on a Phabricator tag)", "example": "mediawiki-extensions-pluggable-auth", "type": "string", "required": true }, "2": { "label": "tag", "description": "more tags", "type": "string" }, "3": { "label": "tag", "description": "more tags", "type": "string" } }, "description": "Show the Phabricator project(s) relevant to this page as a status indicator in the top right corner.", "format": "inline" } </templatedata>

See also