Template:Pfr2: Difference between revisions

From OLPC
Jump to navigation Jump to search
(check it)
No edit summary
Line 26: Line 26:
== Subst example ==
== Subst example ==


<include>
===[[Template talk:pfr2]]===
===[[{{{pg}}}]]===
:{{la|Template talk:pfr2}} <small>(View [[Template talk:Pfr2|'''PfR''']] | [[OLPC:Projects for review/Log/2009 February#{{anchorencode:Template:pfr2}}|'''PFR log''']])</small>
:{{la|{{{pg}}}}} <small>(View [[Template:Pfr2|'''PfR''']] | [[OLPC:Projects for review/Log/2009 February#{{anchorencode:{{{pg}}}}}|'''PFR log''']])</small>
: '''Submitter''': {{user|sj}} &nbsp; &nbsp; '''Location''':&nbsp;Earth
: '''Submitter''': {{user|sj}} &nbsp; &nbsp; '''Location''':&nbsp;Earth
:'''Request''':&nbsp;20 project submissions &nbsp; &nbsp; '''Duration''':&nbsp;unknown&nbsp; &nbsp; '''Completion''':&nbsp;10%
:'''Request''':&nbsp;200 XOs for February &nbsp; &nbsp; '''Duration''':&nbsp;&nbsp; &nbsp; '''Completion''':&nbsp;10%
: This is a template talk page.
: This is a project to distribute a hundred+
XOs a month to worthy community projects.
''Comments''
* ...
<br/>
<br/>


----
----


</noinclude><includeonly>
<!-- old wikicode...
{{<includeonly>subst:</includeonly>#ifeq:{{<includeonly>subst:</includeonly>SUBPAGENAME}}|{{{pg}}}||<div class="infobox" style="width:50%">PfRs for this project:<ul class="listify">{{Special:Prefixindex/OLPC:Projects for review/{{{pg}}}}}</ul></div>}}
-->

</noinclude><include>
===[[{{{pg}}}]]===
===[[{{{pg}}}]]===
:{{la|{{{pg}}}}} <small>(View [[{{<includeonly>subst:</includeonly>FULLPAGENAME}}|'''PfR''']] | [[OLPC:Projects for review/Log/{{<includeonly>subst:</includeonly>CURRENTYEAR}} {{<includeonly>subst:</includeonly>CURRENTMONTHNAME}}#{{anchorencode:{{{pg}}}}}|'''PFR log''']])</small>
:{{la|{{{pg}}}}} <small>(View [[{{<includeonly>subst:</includeonly>FULLPAGENAME}}|'''PfR''']] | [[OLPC:Projects for review/Log/{{<includeonly>subst:</includeonly>CURRENTYEAR}} {{<includeonly>subst:</includeonly>CURRENTMONTHNAME}}#{{anchorencode:{{{pg}}}}}|'''PFR log''']])</small>
Line 48: Line 48:
* ...
* ...
<br/>
<br/>
</includeonly>


<!-- old wikicode...
{{<includeonly>subst:</includeonly>#ifeq:{{<includeonly>subst:</includeonly>SUBPAGENAME}}|{{{pg}}}||<div class="infobox" style="width:50%">PfRs for this project:<ul class="listify">{{Special:Prefixindex/OLPC:Projects for review/{{{pg}}}}}</ul></div>}}
-->

Revision as of 20:49, 13 February 2009


This is a substituted template. It has a few variables:

pg = the target page title. This can be a section link.
submitter = the project submitter, preferably their wiki username
loc = location of the project, city and state
req = the support and materials requested
completion = the project's current completion level, in %
text = description of the project

Nosubst example

{{subst:pfr2
|page = Contributors program
|submitter = sj
|loc = Earth
|duration =
|completion = 10 
|req = 200 XOs for February 
|text = This is a project to distribute a hundred+ 
XOs a month to worthy community projects.
}}

Subst example

<include>

[[{{{pg}}}]]

[[{{{pg}}}]] ([{{fullurl:{{{pg}}}|action=edit}} edit]|[[Talk:{{{pg}}}|talk]]|[{{fullurl:{{{pg}}}|action=history}} history]|[{{fullurl:Special:Whatlinkshere/{{{pg}}}|limit=999}} links]|[{{fullurl:{{{pg}}}|action=watch}} watch]|logs) (View PfR | PFR log)
Submitter: sj (talk · contribs)     Location: Earth
Request: 200 XOs for February     Duration:     Completion: 10%
This is a project to distribute a hundred+

XOs a month to worthy community projects. Comments

  • ...



FULLPAGENAME}}|PfR]] | PFR log)

Submitter: [[User:{{{submitter}}}|{{{submitter}}}]] ([[User talk:{{{submitter}}}|talk]] · [[Special:Contributions/{{{submitter}}}|contribs]])     Location: –
Request: –     Duration: unknown    Completion: 0%
{{{text}}}

Comments

  • ...


</includeonly>