Template:OBX source: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (slimming)
(testing some color status)
Line 1: Line 1:
{{OBX boilerplate params
{{OBX boilerplate params
| logo = {{{2|GIT}}} <!-- whatever wiki text is appropriate (including images) -->
| logo = {{{2|GIT}}} <!-- whatever wiki text is appropriate (including images) -->
| info = [[:Category:XO source{{!}}sources]] in {{{1|[http://dev.laptop.org/ dev.laptop.org]}}} <!-- whatever wiki text is appropriate (images not recommended) -->
| info = [[:Category:XO source{{!}}sources]] in {{{1|[http://dev.laptop.org/ dev.laptop.org]}}}
| logo-background = {{ #switch: {{{status|}}} | abandoned=#d84b18 | #default=#6cbe42 }}
| info-background = {{ #switch: {{{status|}}} | abandoned=#f96735 | #default=#8ad962 }}
}}<includeonly>[[Category:XO source|{{PAGENAME}}]]</includeonly><noinclude>{{-}}
}}<includeonly>[[Category:XO source|{{PAGENAME}}]]</includeonly><noinclude>{{-}}

<pre>
real
| logo-background = {{ #switch: {{{status|}}} | abandoned=#d84b18 | #default=#6cbe42 }}
| info-background = {{ #switch: {{{status|}}} | abandoned=#f96735 | #default=#8ad962 }}
test
| logo-background = {{ #switch: {{{status|}}} | abandoned=#6cbe42 | #default=#d84b18 }}
| info-background = {{ #switch: {{{status|}}} | abandoned=#8ad962 | #default=#f96735 }}
</pre>


== Usage ==
== Usage ==
Line 15: Line 27:
| style="font-size:80%; font-style:fixed; " | <nowiki>{{OBX source|wiki-url-to-source|type}}</nowiki>
| style="font-size:80%; font-style:fixed; " | <nowiki>{{OBX source|wiki-url-to-source|type}}</nowiki>
| style="font-size:80%;" | <tt><nowiki>|source{{!}}wiki-url-to-source{{!}}type|</nowiki></tt>
| style="font-size:80%;" | <tt><nowiki>|source{{!}}wiki-url-to-source{{!}}type|</nowiki></tt>
|-
| {{OBX source|{{{wiki-url-to-source}}}|{{{type}}}|status=abandoned}}
| style="font-size:80%; font-style:fixed; " | <nowiki>{{OBX source|wiki-url-to-source|type|status=abandoned}}</nowiki>
| style="font-size:80%;" | <tt><nowiki>|source{{!}}wiki-url-to-source{{!}}type{{!}}status=abandoned|</nowiki></tt>
|}
|}




[[Category:OBX templates|Source]]
[[Category:OBX templates|Source]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 22:28, 12 September 2007

GIT sources in dev.laptop.org


 real
 | logo-background = {{ #switch: {{{status|}}} | abandoned=#d84b18 | #default=#6cbe42 }}
 | info-background = {{ #switch: {{{status|}}} | abandoned=#f96735 | #default=#8ad962 }}
 
 test
 | logo-background = {{ #switch: {{{status|}}} | abandoned=#6cbe42 | #default=#d84b18 }}
 | info-background = {{ #switch: {{{status|}}} | abandoned=#8ad962 | #default=#f96735 }}

Usage

Categorizes the including page into the Category:XO sources.

Result Stand alone {{olpcboxmacro}} code
{{{type}}} sources in {{{wiki-url-to-source}}}
{{OBX source|wiki-url-to-source|type}} |source{{!}}wiki-url-to-source{{!}}type|
{{{type}}} sources in {{{wiki-url-to-source}}}
{{OBX source|wiki-url-to-source|type|status=abandoned}} |source{{!}}wiki-url-to-source{{!}}type{{!}}status=abandoned|