Difference between revisions of "Template:Rev"
Jump to navigation
Jump to search
Template documentation
Joelmartin (talk | contribs) m (Text replacement - "</translate>" to "") |
Joelmartin (talk | contribs) m (Text replacement - "<tvar|1>" to "") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
| = | | = | ||
{{#ifeq: {{#if:{{{1|}}}|{{{1}}}|<includeonly>?</includeonly>}} | ? | {{#ifeq: {{#if:{{{1|}}}|{{{1}}}|<includeonly>?</includeonly>}} | ? | ||
− | | <span class="plainlinks" title=" | + | | <span class="plainlinks" title=" A revision number is wanted. Click here to edit and add it!">[{{fullurl:{{FULLPAGENAME}}|action=edit}} r<sup>'''?'''</sup>]</span> {{#if: {{{cat|}}} || [[Category:Pages with a wanted revision number{{#translation:}}|{{PAGENAME}}]]}} |
| [[phabricator:rSVN{{trim|{{{1}}}}}|{{trim| {{#if:{{{2|}}} | {{{2}}} | r{{trim|{{{1}}}}} }} }}]] | | [[phabricator:rSVN{{trim|{{{1}}}}}|{{trim| {{#if:{{{2|}}} | {{{2}}} | r{{trim|{{{1}}}}} }} }}]] | ||
}} | }} | ||
Line 14: | Line 14: | ||
− | == Usage == | + | == Usage == |
<pre>{{Rev}} / {{Rev|?}}</pre> | <pre>{{Rev}} / {{Rev|?}}</pre> | ||
− | {{Rev|cat=no}} | + | {{Rev|cat=no}} (''categorizes into {{ll|Category:Pages with a wanted revision number}}'') |
<pre> | <pre> | ||
* {{Rev|1}} | * {{Rev|1}} | ||
− | * {{Rev|54321| | + | * {{Rev|54321| woops}} |
</pre> | </pre> | ||
* {{Rev|1}} | * {{Rev|1}} | ||
− | * {{Rev|54321| | + | * {{Rev|54321| woops}} |
}} | }} | ||
[[Category:External link templates{{#translation:}}]] | [[Category:External link templates{{#translation:}}]] | ||
</noinclude> | </noinclude> |
Latest revision as of 18:05, 21 December 2019
[[phabricator:rSVN{{{1}}}|r{{{1}}}]]

This template can be used to link to a specific SVN revision.
Parameter | Description | Type | Status | |
---|---|---|---|---|
revision | 1 | The SVN revision number, or “?” if unknown. “?” categorizes the page to “Pages with a wanted revision number”
| Line | required |
link text | 2 | Text of the revision link. Not used if the revision number is “?”
| Line | optional |
Usage
{{Rev}} / {{Rev|?}}
r? (categorizes into Category:Pages with a wanted revision number )
* {{Rev|1}} * {{Rev|54321| woops}}