Template:Pfr2: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
(-ex)
Line 10: Line 10:


Example:
Example:
===[[Template:pfr2]]===
<div class="infobox" style="width:50%">PfRs for this project:<ul class="listify">{{Special:Prefixindex/OLPC:Projects for review/Template:pfr2}}</ul></div>
:{{la|Template:pfr2}} <includeonly>([[Template:Pfr2|View '''PfR''']])</includeonly><noinclude>([[OLPC:Projects for review/Log/2009 February#{{anchorencode:Template:pfr2}}|View '''PFR log''']])</noinclude>
: '''Submitter''': {{user|sj}} &nbsp; &nbsp; '''Location''':&nbsp;{{loc|&ndash;}}
:'''Request''':&nbsp;20 project submissions &nbsp; &nbsp; '''Duration''':&nbsp;unknown&nbsp; &nbsp; '''Completion''':&nbsp;10%
: A template!
<br/><br/>


----
----


</noinclude><includeonly>{{subst:</includeonly><includeonly>void|1={{error:not substituted|pfr2}}}}</includeonly>===[[{{{pg}}}]]===
<!-- {{<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>}}-->

{{<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><includeonly>{{subst:</includeonly><includeonly>void|1={{error:not substituted|pfr2}}}}</includeonly>

===[[{{{pg}}}]]===
:{{la|{{{pg}}}}} <inc<includeonly></includeonly>ludeonly>([[{{<includeonly>subst:</includeonly>FULLPAGENAME}}|View '''PfR''']])</inc<includeonly></includeonly>ludeonly><noinc<includeonly></includeonly>lude>([[OLPC:Projects for review/Log/{{<includeonly>subst:</includeonly>CURRENTYEAR}} {{<includeonly>subst:</includeonly>CURRENTMONTHNAME}}#{{anchorencode:{{{pg}}}}}|View '''PFR log''']])</noinc<includeonly></includeonly>lude>
:{{la|{{{pg}}}}} <inc<includeonly></includeonly>ludeonly>([[{{<includeonly>subst:</includeonly>FULLPAGENAME}}|View '''PfR''']])</inc<includeonly></includeonly>ludeonly><noinc<includeonly></includeonly>lude>([[OLPC:Projects for review/Log/{{<includeonly>subst:</includeonly>CURRENTYEAR}} {{<includeonly>subst:</includeonly>CURRENTMONTHNAME}}#{{anchorencode:{{{pg}}}}}|View '''PFR log''']])</noinc<includeonly></includeonly>lude>
: '''Submitter''': {{user|{{{submitter}}}}} &nbsp; &nbsp; '''Location''':&nbsp;{{loc|&ndash;}}
: '''Submitter''': {{user|{{{submitter}}}}} &nbsp; &nbsp; '''Location''':&nbsp;{{loc|&ndash;}}
:'''Request''':&nbsp;{{{req|&ndash;}}} &nbsp; &nbsp; '''Duration''':&nbsp;{{{duration|unknown}}}&nbsp; &nbsp; '''Completion''':&nbsp;{{{completion|0}}}%
:'''Request''':&nbsp;{{{req|&ndash;}}} &nbsp; &nbsp; '''Duration''':&nbsp;{{{duration|unknown}}}&nbsp; &nbsp; '''Completion''':&nbsp;{{{completion|0}}}%
: {{{text}}}
: {{{text}}}
<br/><br/>
<br/>

Revision as of 20:06, 13 February 2009


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

pg = the target page title. This can be a section link.
text = description of the project
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 %

Example:




[[{{{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) <includeonly>(View PfR)</includeonly><noinclude>(View PFR log)</noinclude>
Submitter: [[User:{{{submitter}}}|{{{submitter}}}]] ([[User talk:{{{submitter}}}|talk]] · [[Special:Contributions/{{{submitter}}}|contribs]])     LocationTemplate:Loc
Request: –     Duration: unknown    Completion: 0%
{{{text}}}