Difference between revisions of "Template:Rev"

From RobotX
Jump to navigation Jump to search
mediawiki>Shirayuki
m (dummy edit to update translation pages; see phab:T221119)
 
m (Text replacement - "<tvar|1>" to "")
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<languages />
 
<languages />
</noinclude>{{#switch:<translate></translate>
+
</noinclude>{{#switch:
 
| =
 
| =
 
{{#ifeq: {{#if:{{{1|}}}|{{{1}}}|<includeonly>?</includeonly>}} | ?
 
{{#ifeq: {{#if:{{{1|}}}|{{{1}}}|<includeonly>?</includeonly>}} | ?
  | <span class="plainlinks" title="<translate><!--T:1--> A revision number is wanted.</translate> <translate><!--T:2--> Click here to edit and add it!</translate>">[{{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 13: Line 13:
 
{{Rev/doc}}
 
{{Rev/doc}}
  
<translate>
+
 
== Usage == <!--T:3-->
+
== Usage ==  
</translate>
+
 
 
<pre>{{Rev}} / {{Rev|?}}</pre>
 
<pre>{{Rev}} / {{Rev|?}}</pre>
  
{{Rev|cat=no}} <translate><!--T:4--> (''categorizes into <tvar|1>{{ll|Category:Pages with a wanted revision number}}</>'')</translate>
+
{{Rev|cat=no}} (''categorizes into {{ll|Category:Pages with a wanted revision number}}'')
 
<pre>
 
<pre>
 
* {{Rev|1}}
 
* {{Rev|1}}
* {{Rev|54321|<translate><!--T:5--> woops</translate>}}
+
* {{Rev|54321| woops}}
 
</pre>
 
</pre>
 
* {{Rev|1}}
 
* {{Rev|1}}
* {{Rev|54321|<translate><!--T:6--> woops</translate>}}
+
* {{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}}}]]

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 Category:Pages with a wanted revision number )

* {{Rev|1}}
* {{Rev|54321| woops}}