Jump to content
This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

Template:DPL: Difference between revisions

1,733 bytes removed ,  2 years ago
m
Undo revision 1281 by FrozenPlum (talk)
imported>FrozenPlum
m (Retest a swap to DPLvar, the underscore was problematic before)
imported>FrozenPlum
m (Undo revision 1281 by FrozenPlum (talk))
Line 1:
<onlyinclude><includeonly>[[{{#dplvarswitch:set|page2 {{{1}}}<!--
-->{{#vardefine:page|
{{#switch: {{{1}}}
| #dplvar = Dplvar
| #dplnum = Dplnum
Line 137 ⟶ 135:
| dplcacheperiod = Other parameters
 
| URL parameters =<!-- General usageuse and invocation syntax -->
| #default =
| syntax = General usage and invocation syntax
}}}}<!--
 
| #default = {{{1}}}
-->{{#ifeq:{{#dplvar:page}}|<!--
}}{{#switch: {{{1|test}}}
-->|{{#dplvar:set|page2|
| #dplvar
{{#switch: {{{1}}}
| #dplnum
<!-- Other pages These links will have a different formatting than the links in the list above-->
| #dplreplace
| Characters with special meaning
| #dplmatrix
| Scrolling
| #dplchapter =
| URL parameters = General usage and invocation syntax
| #default = &#35;{{{1}}}
 
-->}}|{{#ifeq:{{#dplvar:page1}}|||</span>}}]]</includeonly></onlyinclude>
| userformat
| VARIABLES = Controlling output format
 
| Select articles based on REVISION dates
| REVISION
| Criteria for page selection
| selection criteria = Criteria for page selection
 
| #default =
}}}}
|<span class=dpl3><!-- Those found in the first list (dpl parameters and functions) will be formatted differently than those found in the second list
-->}}<!--
 
-->{{#ifeq:{{#dplvar:page}}{{#dplvar:page2}}|<!-- if not on either list
-->|{{#if:{{#pos:{{lc:{{{1}}}}}|example}}{{#pos:{{lc:{{{1}}}}}|test}}<!-- if either an example or a test (on another page)
-->|{{ifexists|Example:_{{{1}}} <!-- calls a dpl which may be slower? than the previous {{#if:{{#pos statement
-->|[[Example:_{{{1}}}|{{{2|{{{text|{{{1}}}}}}}}}]]<!-- only if the page exists
-->|{{#tag:span|{{{1}}} not found|style=color:red}} <!-- <-if {{{1}}} isn't on the list, and the page doesn't exist.
-->}}<!--
-->|{{ifexists|{{{1}}} <!-- calls a dpl which may be slower? than the previous {{#if:{{#pos statement
-->|[[{{{1}}}|{{{2|{{{text|{{{1}}}}}}}}}]]<!-- only if the page exists
-->|{{#tag:span|'{{{1}}}' not found|style=color:red}} <!-- <-if {{{1}}} isn't on the list, and the page doesn't exist.
-->}}<!--
-->}}<!--
-->|{{#if:{{#pos:{{{1}}}|#dpl}}<!--
-->|[[{{#dplvar:page}}|{{{2|{{{text|{{{1}}}}}}}}}]]<!-- DPL functions
-->|[[{{#dplvar:page}}{{#dplvar:page2}}#{{{1}}}|<!--
-->{{#forargs:|p|v|}}{{#if:{{#dplvar:p}}<!-- check for usage of "=" in parameters
-->|{{{2|{{{text|{{{1}}}}}}}}}<!--
-->|{{{1|}}}={{#dplvar:v}}}}<!--
-->]]<!--
-->}}<!--
 
-->}}<!--
-->{{#ifeq:{{#dplvar:page}}|||</span>}}</includeonly></onlyinclude>
{{Documentation}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.