Difference between revisions of "Template:Rev"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "</translate>" to "")
m (Text replacement - "<!--T:(.*)-->" to "")
Line 4: Line 4:
 
| =
 
| =
 
{{#ifeq: {{#if:{{{1|}}}|{{{1}}}|<includeonly>?</includeonly>}} | ?
 
{{#ifeq: {{#if:{{{1|}}}|{{{1}}}|<includeonly>?</includeonly>}} | ?
  | <span class="plainlinks" title="<!--T:1--> A revision number is wanted. <!--T:2--> 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}}]]}}
+
  | <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 == <!--T:3-->
+
== Usage ==  
  
 
<pre>{{Rev}} / {{Rev|?}}</pre>
 
<pre>{{Rev}} / {{Rev|?}}</pre>
  
{{Rev|cat=no}} <!--T:4--> (''categorizes into <tvar|1>{{ll|Category:Pages with a wanted revision number}}</>'')
+
{{Rev|cat=no}} (''categorizes into <tvar|1>{{ll|Category:Pages with a wanted revision number}}</>'')
 
<pre>
 
<pre>
 
* {{Rev|1}}
 
* {{Rev|1}}
* {{Rev|54321|<!--T:5--> woops}}
+
* {{Rev|54321| woops}}
 
</pre>
 
</pre>
 
* {{Rev|1}}
 
* {{Rev|1}}
* {{Rev|54321|<!--T:6--> woops}}
+
* {{Rev|54321| woops}}
 
}}
 
}}
  
 
[[Category:External link templates{{#translation:}}]]
 
[[Category:External link templates{{#translation:}}]]
 
</noinclude>
 
</noinclude>

Revision as of 14:33, 21 December 2019


[[phabricator:rSVN{{{1}}}|r{{{1}}}]]

Template documentation

This template can be used to link to a specific SVN revision.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
revision1

The SVN revision number, or “?” if unknown. “?” categorizes the page to “Pages with a wanted revision number”

Example
1234
Linerequired
link text2

Text of the revision link. Not used if the revision number is “?”

Default
r<revision ID>, e.g. r1234
Lineoptional


Usage

{{Rev}} / {{Rev|?}}

r? (categorizes into <tvar