Difference between revisions of "Template:Main-panel-with-icon/output"

From Wikispooks
Jump to navigation Jump to search
(Use urlencode of pagename if pagenamee is not available)
(fix code)
Line 19: Line 19:
 
|style="border-bottom:1px solid #dedede;"|{{#if: {{{5|}}}|[[Image:Stub.png|link=:category:stubs|x32px]]}}
 
|style="border-bottom:1px solid #dedede;"|{{#if: {{{5|}}}|[[Image:Stub.png|link=:category:stubs|x32px]]}}
 
|style="border-bottom:1px solid #dedede;"|{{#if: {{{6|}}}| {{#ifexpr: {{#time: U | now }} - {{#time: U| {{{6|}}}}} < 60*60*24*7 |[[Image:new.png|link=:concept:New pages|x32px]]}}}}
 
|style="border-bottom:1px solid #dedede;"|{{#if: {{{6|}}}| {{#ifexpr: {{#time: U | now }} - {{#time: U| {{{6|}}}}} < 60*60*24*7 |[[Image:new.png|link=:concept:New pages|x32px]]}}}}
|style="border-bottom:1px solid #dedede;"|{{#if: {{{8|}}}|<span class="plainlinks">[[image:XML-26px.png|x26px|link=Special:Export/{{{8}}}]]</span>|<span class="plainlinks">[[image:XML-26px.png|x26px|link=Special:Export/
+
|style="border-bottom:1px solid #dedede;"|<span class="plainlinks">[[image:XML-26px.png|x26px|link=Special:Export/{{#if: {{{8|}}}|{{{8}}}|{{urlencode:{{{1|}}}|WIKI}}}}]]</span>
{{urlencode:{{{1|}}}|WIKI}}]]</span>}}
+
|style="border-bottom:1px solid #dedede;"|<span class="plainlinks">[[image:RDF-26px.png|x26px|link=Special:ExportRDF/{{#if: {{{8|}}}|{{{8}}}|{{urlencode:{{{1|}}}|WIKI}}}}]]</span>
|style="border-bottom:1px solid #dedede;"|{{#if: {{{8|}}}|<span class="plainlinks">[[image:RDF-26px.png|x26px|link=Special:ExportRDF/{{{8}}}]]</span>|<span class="plainlinks">[[image:RDF-26px.png|x26px|link=Special:ExportRDF/
 
{{urlencode:{{{1|}}}|WIKI}}]]</span>}}
 

Revision as of 09:55, 16 July 2015

This template formats the output for Template:Main-panel-with-icon.

|- |style="border-bottom:1px solid #dedede;"|link={{{8}}}   |style="border-bottom:1px solid #dedede;"| |style="border-bottom:1px solid #dedede;"| |style="border-bottom:1px solid #dedede;"| |style="border-bottom:1px solid #dedede;"| |style="border-bottom:1px solid #dedede;"|XML-26px.png |style="border-bottom:1px solid #dedede;"|RDF-26px.png