Template:Repository: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 4: Line 4:
<pre>
<pre>
{{Repository
{{Repository
|RoR=
|Owner=          Comma Separated list of Teams or People who own the Repository
|Commit Location=
|RoR=             Repository of Record
|Mirrors=
|Commit Location= Location commits go (if different than the "RoR")
|Mirrors=         Comma Separated list of Mirrors of the repo
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.


{{{{PAGENAME}}
</noinclude><includeonly>{| cellpadding="3" style="float:right; border-spacing:0px; background-color:#fbfbff; font-size:95%; margin:0 0 0.5em 1em; width:28em;"
|RoR=https://hg.mozilla.org/build/tools
! colspan="2" style="color: black; background-color: #dddddd; font-weight: bold; text-align:center; font-size: larger; -moz-border-radius-topright: 10px; -moz-border-radius-topleft: 10px; border-left: 4px solid rgb(40, 40, 40); border-right: 4px solid rgb(40, 40, 40); border-top: 4px solid rgb(40, 40, 40);"  | {{SUBPAGENAME}} Repository
|Commit Location=https://hg.mozilla.org/build/tools
|- class="hiddenStructure"
|Mirrors=http://github.com/mozilla/build-tools,http://git.mozilla.org/build-tools
| colspan="2" align="center" bgcolor="#ffffff" style="border-left: 4px solid rgb(40, 40, 40); border-right: 4px solid rgb(40, 40, 40);" | Owner(s): {{#if: {{{Owner|}}} | {{#arraymap:{{{Owner|}}}|,|x|x|,&nbsp;}} | Unspecified }}
|-
!  colspan="2" style="color: black; background-color: #dddddd; font-weight: bold; text-align:center; border-left: 4px solid rgb(40, 40, 40); border-right: 4px solid rgb(40, 40, 40);" | Repository URLs
|- class="hiddenStructure" bgcolor="#fbfbff" valign="top"
| style="border-left: 4px solid rgb(40, 40, 40);" | '''Repository of Record:''' || style=" border-right: 4px solid rgb(40, 40, 40);" | {{RepoIcon|{{{RoR|}}}}} [[Is RoR::{{{RoR|}}}]]
{{#if: {{{Commit Location|}}}|
{{!}}- bgcolor="#fbfbff" valign="top"
{{!}} style="border-left: 4px solid rgb(40, 40, 40);" {{!}}'''Committable Repository:''' {{!}}{{!}} style=" border-right: 4px solid rgb(40, 40, 40);"{{!}} {{RepoIcon|{{{Commit Location|}}}}} {{{Commit Location|}}}|
}}
}}
</noinclude><includeonly>{| class="wikitable"
|-
! Repository of Record
!  colspan="2" style="color: black; background-color: #dddddd; font-weight: bold; text-align:center; border-left: 4px solid rgb(40, 40, 40); border-right: 4px solid rgb(40, 40, 40); " | Applications Using this Repo
| [[Is RoR::{{{RoR|}}}]]
|-
| colspan="2" align="center" bgcolor="#ffffff" style="border-left: 4px solid rgb(40, 40, 40); border-right: 4px solid rgb(40, 40, 40);" | '''''TODO'''''
|-
! colspan="2" style="color: #dddddd; background-color: #dddddd; font-weight: bold; text-align:center; -moz-border-radius-bottomright: 10px; -moz-border-radius-bottomleft: 10px; border-left: 4px solid rgb(40, 40, 40); border-right: 4px solid rgb(40, 40, 40); border-bottom: 4px solid rgb(40, 40, 40);" | &nbsp;
|}
{{#arraymap:{{{Owner|}}}|,|x|{{#set:Has Owner=x}}}}
{|
|-
|-
! Commit Location (optional)
! Mirrors
| [[Is Committable::{{{Commit Location|}}}]]  
| {{#arraymap:{{{Mirrors|}}}|,|@|{{RepoIcon|@}} [[Has Repo Mirror::@]]|<br />}}
|-
|-
| [[Has Repo Mirror::{{#replace:{{{Mirrors}}}|,|]]<br />[[Has Repo Mirror::}}</includeonly>
|}
|}


[[Category:Repositories]]
[[Category:Repositories]]
</includeonly>
</includeonly>

Latest revision as of 00:41, 6 December 2014

This is the "Repository" template. It should be called in the following format:

{{Repository
|Owner=           Comma Separated list of Teams or People who own the Repository
|RoR=             Repository of Record
|Commit Location= Location commits go (if different than the "RoR")
|Mirrors=         Comma Separated list of Mirrors of the repo
}}

Edit the page to see the template text.