Difference between revisions of "User:Anonguy9"

From FollowTheScore
Jump to: navigation, search
m (New page: * Issue:Call to a member function getPrefixedDBkey() on a non-object still sortof a problem. ** It's not so important since the functionality which is causing it is something I've alre...)
 
m
 
Line 1: Line 1:
 +
= Cut-and-paste documentation =
 +
 +
SIMPLE instructions for everyday usage.
 +
 +
I use DPL for only one thing right now, so I have complete documentation for that one activity.
 +
 +
== Displaying notes from pages ==
 +
 +
Problem to solve:
 +
* Many pages are tagged with a template.
 +
* Each page's template-tag also has a note in the form of <nowiki>{{template|my note}}</nowiki>
 +
* I want to create a list of those pages and their notes.
 +
 +
 +
1. Create your template [[Template:DynamicPageList-test]]:
 +
 +
(arbitrary content/functionality)
 +
 +
 +
2. In [[DynamicPageList-test|any article(s)]], add your template with a parameter:
 +
 +
<pre>
 +
<code>
 +
(arbitrary content)
 +
 +
{{DynamicPageList-test|hey there!}}
 +
</code>
 +
</pre>
 +
 +
 +
3. In your list article, add this code:
 +
 +
<pre>
 +
<code>
 +
{{#dpl:
 +
|namespace=
 +
|uses=Template:DynamicPageList-test
 +
|include={DynamicPageList-test}:1
 +
|table=,,Text
 +
}}
 +
</code>
 +
</pre>
 +
 +
 +
Your output will become:
 +
{{#dpl:
 +
|namespace=
 +
|uses=Template:DynamicPageList-test
 +
|include={DynamicPageList-test}:1
 +
|table=,,Text
 +
}}
 +
 +
NOTE: To avoid cluttering the DPL wiki, I have not created the template nor have I created test pages which use that template.  So this example is kindof empty.  =)
 +
 +
NOTE2: Consider this DPL use case to be supported.  Any questions/comments are welcomed.  Edit this page or my discussion page to email me.
 +
 +
= Notes / Todo =
 +
 
* [[Issue:Call to a member function getPrefixedDBkey() on a non-object]] still sortof a problem.
 
* [[Issue:Call to a member function getPrefixedDBkey() on a non-object]] still sortof a problem.
 
** It's not so important since the functionality which is causing it is something I've already wanted to repair in my wiki.  So basically this issue will go away for me.
 
** It's not so important since the functionality which is causing it is something I've already wanted to repair in my wiki.  So basically this issue will go away for me.
* Documentation is opaque.  There needs to be a proper cut-and-paste simple guide for common tasks.
 
** My offline notes should help.  Port them here.
 

Latest revision as of 05:03, 25 March 2009

Cut-and-paste documentation

SIMPLE instructions for everyday usage.

I use DPL for only one thing right now, so I have complete documentation for that one activity.

Displaying notes from pages

Problem to solve:

  • Many pages are tagged with a template.
  • Each page's template-tag also has a note in the form of {{template|my note}}
  • I want to create a list of those pages and their notes.


1. Create your template Template:DynamicPageList-test:

(arbitrary content/functionality)


2. In any article(s), add your template with a parameter:

<code>
(arbitrary content)

{{DynamicPageList-test|hey there!}}
</code>


3. In your list article, add this code:

<code>
{{#dpl:
 |namespace=
 |uses=Template:DynamicPageList-test
 |include={DynamicPageList-test}:1
 |table=,,Text
}}
</code>


Your output will become:

Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.

NOTE: To avoid cluttering the DPL wiki, I have not created the template nor have I created test pages which use that template. So this example is kindof empty. =)

NOTE2: Consider this DPL use case to be supported. Any questions/comments are welcomed. Edit this page or my discussion page to email me.

Notes / Todo