Difference between revisions of "Template:OOPM:Templates:Documentation:Shared:StandardDeprecationNotice"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 5: Line 5:
 
|purpose=
 
|purpose=
 
Used for template/article deprecation notices.<br/>
 
Used for template/article deprecation notices.<br/>
'''IMPORTANT NOTICE: Please note that in order to prevent infinite recursion, this template must never be deprecated.'''
 
  
 
This template should be included with any template/article that is considered deprecated.
 
This template should be included with any template/article that is considered deprecated.
Line 12: Line 11:
 
<pre>  
 
<pre>  
 
{{Template:OOPM:Templates:Documentation:Shared:StandardDeprecationNotice:1.0
 
{{Template:OOPM:Templates:Documentation:Shared:StandardDeprecationNotice:1.0
|template=<WikiUrn>
+
|origin=<WikiUrn>
 
|alternate=<WikiUrn>
 
|alternate=<WikiUrn>
 +
|message=<WikiMarkup>
 
}}
 
}}
 
</pre>
 
</pre>
Line 29: Line 29:
 
: E.g. Template:OOPM:Templates:Documentation:Shared:CategoryPageHeader:1.1
 
: E.g. Template:OOPM:Templates:Documentation:Shared:CategoryPageHeader:1.1
 
|preview=
 
|preview=
TBD preview
+
<div style="border: 2px solid black; background-color: yellow; font-size: 12pt; font-weight: bold; width: 80%; margin: auto; padding: 16px; margin-bottom: 2em;">
 +
'''DEPRECATION NOTICE''' FooBar has been deprecated.
 +
Please use the provided alternative <nowiki>[[BarsFooNeverWentTo]]</nowiki>.
 +
</div>
 
}}
 
}}
  
 
[[Category:OOPM:Templates:Documentation|Shared]]
 
[[Category:OOPM:Templates:Documentation|Shared]]
 
</noinclude><includeonly>
 
</noinclude><includeonly>
<div style="border: 2px solid red; background-color: white; font-size: 12pt; font-weight: bold; width: 90%; margin: auto; padding: 32px; margin-bottom: 2em;">
+
<div style="border: 2px solid black; background-color: yellow; font-size: 12pt; font-weight: bold; width: 80%; margin: auto; padding: 16px; margin-bottom: 2em;">
The template [[{{{template}}}]] has been deprecated.
+
'''DEPRECATION NOTICE''' [[{{{origin}}}]] has been deprecated.
{{#ifeq: {{{alternate}}} | | | Please use the provided alternative template [[{{{alternate}}}]].}}
+
{{#ifeq: {{{alternate}}} | | | Please use the provided alternative [[{{{alternate}}}]].}}
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Revision as of 23:11, 16 April 2009


Meta

Template Name Template:OOPM:Templates:Documentation:Shared:StandardDeprecationNotice
Author Carsten Klein "rts" <carsten.klein@abstraxion.de>
Created 2009-04-09
Edited 2009-004-16

Purpose

Used for template/article deprecation notices.

This template should be included with any template/article that is considered deprecated. Use the following wiki markup to include it with your template

 
{{Template:OOPM:Templates:Documentation:Shared:StandardDeprecationNotice:1.0
|origin=<WikiUrn>
|alternate=<WikiUrn>
|message=<WikiMarkup>
}}

Synopsis

{{Templates:OOPM:Templates:Documentation:Shared:StandardDeprecationNotice:1.0
|template=<WikiUrn>
|alternate=<WikiUrn>>
}}

Parameter Reference

  • template
The urn of the template. This will be used for display in for example the deprecation notice.
E.g. Template:OOPM:Templates:Documentation:Shared:CategoryPageHeader:1.0
  • alternate (optional)
The urn of the alternative template to be used instead. This will be used for display in
the deprecation notice.
E.g. Template:OOPM:Templates:Documentation:Shared:CategoryPageHeader:1.1

Preview

IMPORTANT NOTICE: Do not edit a/o create the below dummy links.

DEPRECATION NOTICE FooBar has been deprecated. Please use the provided alternative [[BarsFooNeverWentTo]].


Uses Template:OOPM:Templates:Documentation:Shared:StandardTemplateHeader

Personal tools