Difference between revisions of "Template:DT Article Header"

From FollowTheScore
Jump to: navigation, search
(New page: <includeonly>__NOEDITSECTION__{{#vardefine:page|{{#if:{{#var:page}}|{{#var:page}}|{{{2}}}}}}}<!-- -->{{#vardefine:nr|{{#if:{{#var:nr}}|{{#expr:{{#var:nr}}+1}}|1}}}}<!-- -->{{#vardefine:url...)
 
 
Line 1: Line 1:
<includeonly>__NOEDITSECTION__{{#vardefine:page|{{#if:{{#var:page}}|{{#var:page}}|{{{2}}}}}}}<!--
+
<includeonly>__NOEDITSECTION__<!--
-->{{#vardefine:nr|{{#if:{{#var:nr}}|{{#expr:{{#var:nr}}+1}}|1}}}}<!--
+
    create headline for each object (except when used in text export);
 +
    assigns the calling article to the DocType Category
 +
-->{{#vardefine:page|{{#if:{{#var:page}}|{{#var:page}}|{{{2}}}}}}}<!-- page name
 +
-->{{#vardefine:nr|{{#if:{{#var:nr}}|{{#expr:{{#var:nr}}+1}}|1}}}}<!-- increment edit section sequence number
 
-->{{#vardefine:url|{{#replace:{{#var:page}}| |_}}}}<!--
 
-->{{#vardefine:url|{{#replace:{{#var:page}}| |_}}}}<!--
-->{{#ifeq:{{#var:page}}|{{{1}}}.text|
+
-->{{#if:{{{3|}}}|{{#if:{{#var:DtArticleSortKey}}|[[Category:{{{1}}}|{{#var:DtArticleSortKey}}]]|[[Category:{{{1}}}]]}}}}{{#ifeq:{{#var:header}}|no||<small>
|{{#if:{{{3|}}}|[[Category:{{{1}}}]]}}<p style="margin:0" align=right><small>[[:Category:{{{1}}}|list]]
+
{{(!}}style="margins:0px" width=100% cellspacing=0 cellpadding=0
&nbsp;[[Template:{{{1}}}.help|help]] &nbsp;[[Special:Call/DT Article copy,cat={{{1}}},from={{#var:page}}|copy]]
+
{{#ifeq:{{{refs|}}}|no||
&nbsp;{{#if:{{#var:refs}}|[[{{#var:page}}|no_ref's]]|[[Special:Call/DT Article show Refs,page={{#var:page}},refs=yes|ref's]]}}
+
{{!}}align=left{{!}}{{#if:{{#var:refs}}|[[{{#var:page}}|no_ref's]]|[[Special:Call/DT Article show Refs,page={{#var:page}},refs=yes|ref's]]}}}}
&nbsp; [[Special:Call/DT Articles list XML,type={{{1}}},title={{#var:page}}|als XML]]
+
{{!}}align=right{{!}}{{#if:{{#var:DtArticleSortKey}}|''({{#var:DtArticleSortKey}})''}} &nbsp; &nbsp;[[:Category:{{{1}}}|list]]&nbsp;[[Template:{{{1}}}.help|help]] &nbsp;[[Special:Call/DT Article copy,cat={{{1}}},from={{#var:page}},namespace={{NAMESPACE}}|copy]]&nbsp; [[Special:Call/DT Articles list XML,type={{{1}}},title={{#var:page}},namespace={{NAMESPACE}}|as XML]]&nbsp; [{{SERVER}}{{SCRIPTPATH}}/index.php?title={{NAMESPACE}}:{{#var:url}}&action=edit&section={{#var:nr}} edit]
&nbsp; [{{SERVER}}{{SCRIPTPATH}}/index.php?title={{#var:url}}&action=edit&section={{#var:nr}} edit]</small></p>}}</includeonly><noinclude>[[Category:DocTypeScript]]</noinclude>
+
{{!)}}</small>}}</includeonly><noinclude>[[Category:DocTypeScript]]</noinclude>

Latest revision as of 12:31, 25 November 2007