Template:Pfr2: Difference between revisions

From OLPC
Jump to navigation Jump to search
(variable)
(simpler)
Line 10: Line 10:


Example:
Example:



===[[Template talk:pfr2]]===
===[[Template talk:pfr2]]===
:{{la|Template talk:pfr2}} <includeonly>([[Template talk:Pfr2|View '''PfR''']])</includeonly><noinclude>([[OLPC:Projects for review/Log/2009 February#{{anchorencode:Template talk:pfr2}}|View '''PFR log''']])</noinclude>
:{{la|Template talk:pfr2}} <small>([[Template talk:Pfr2|'''PfR''']] | [[OLPC:Projects for review/Log/2009 February#{{anchorencode:Template talk:pfr2}}|'''monthly 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;20 project submissions &nbsp; &nbsp; '''Duration''':&nbsp;unknown&nbsp; &nbsp; '''Completion''':&nbsp;10%
Line 21: Line 20:
----
----


<!--
<!-- {{<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>}}
-->




Line 27: Line 28:


===[[{{{pg}}}]]===
===[[{{{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}}}}} <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>
: '''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}}}%

Revision as of 20:12, 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:

Template talk:pfr2

Template talk:pfr2 (edit|[[Talk:Template talk:pfr2|talk]]|history|links|watch|logs) (PfR | monthly PFR log)
Submitter: sj (talk · contribs)     Location: Earth
Request: 20 project submissions     Duration: unknown    Completion: 10%
A template!





[[{{{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: [[User:{{{submitter}}}|{{{submitter}}}]] ([[User talk:{{{submitter}}}|talk]] · [[Special:Contributions/{{{submitter}}}|contribs]])     Location: –
Request: –     Duration: unknown    Completion: 0%
{{{text}}}